Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Cancel Macro - Pro Wildfire 3

ProGearMan

New member
I frequently find myself starting commands then decideding I don't want to use them. As a result I get mouse finger fatigue for having to click cancel out of several menus. I managed to create a macro to cancel me all teh way out of sketcher mode however I am looking for 1 universal macro that will cancel me all the way out of whatever menu I am in.


Anybody have anything like that?


Cheers


Steve
 
I have this mapkey on the F1 botton. Close to ESC.


It works for eksample, when you are in a skech, or other places. I call it my CANCEL botton.

mapkey $F1 @MAPKEY_LABELCANCEL SKETCH etc;\
mapkey(continued) ~ FocusOut `main_dlg_cur` `maindashInst0.constr_offset_menu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.stdbtn_2`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Windows`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Windows.psh_win_activate`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `no`;~ FocusIn `UI Message Dialog` `yes`;\
mapkey(continued) ~ Activate `UI Message Dialog` `yes`;~ Activate `0_std_confirm` `OK`;
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `View`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `View.psh_view_repaint`;\
mapkey(continued) ~ Activate `new_compplace` `cancelbutton`;~ Activate `0_std_confirm` `OK`;\
 
Oh


Forgot to mention. If you want to record the mapkey yourself ,the trick is:


Activate window and cancel all the way.


Record from different situations and combine the mapkeys in Notepad.


Btw I have also a similar botton: F2. Its ACCEPT in stead of cancel. I use it like after redefining a sketch to get al the way out of the sketch with accept.


Its created similar to F1. Only with Accept in stead of Cancel.



mapkey $F2 @MAPKEY_LABEL ACCEPT SKETCH OK;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdSketDone.sket_r`;\
mapkey(continued) ~ Activate `Odui_Dlg_01` `stdbtn_1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.Done`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdViewRefit.view`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;~ Activate `new_compplace` `okbutton`;\
mapkey(continued) ~ Activate `mod_exp` `okbutton`;#DONE/RETURN;


Best regards, Gunnar
 

Sponsor

Articles From 3DCAD World

Back
Top