hotkey macro
hotkey macro
(OP)
Hi all,
F9 hides feature manager, F10 hides toolbars, Crtl-F1 hides design library.
Can a macro do all three, and undo with one key? Not having luck creating. Thanks
SW2009 sp3.0
F9 hides feature manager, F10 hides toolbars, Crtl-F1 hides design library.
Can a macro do all three, and undo with one key? Not having luck creating. Thanks
SW2009 sp3.0






RE: hotkey macro
Or install http://www.autohotkey.com/...software version of a keyboard recorder. Then you assign some keystroke to playback the recording.
I have both a programmable keypad and Autohotkey installed, and I use one or the other daily.
RE: hotkey macro
AutoHotKey is a great program and it's free. My brother uses it quite a bit and has hotkeyed a ton of stuff on keyboard. He can type my email address out by just entering my initials.
Or you can assign Design library key as F8 and press all three at once no need for a macro.
Michael
RE: hotkey macro
For keystroke macros, I use EZ Macros until I can find a method to apply a native method.
Matt Lorono
Lorono's SolidWorks Resources & SolidWorks Legion
&
RE: hotkey macro
Unfortunately T cant get to autohotkey and download beacause of company restrictions. ill have to use the three exiting keys for now, thanks
RE: hotkey macro
-handleman, CSWP (The new, easy test)
RE: hotkey macro
CODE
Dim wait As Double
wait = Timer
While Timer < wait + 0.5
DoEvents
Wend
SendKeys "{F9}{F10}^{F1}", True
End Sub
Map this macro to a shortcut key.
There is an 0.5 second delay timer in there. The reason for it is to make sure you have let up on the shortcut key before the macro sends the keystrokes. If you are still holding down a modifier key (shift, ctrl, alt, etc) that modifier will be added to the keys sent by the macro, and the wrong key will be sent.
-handleman, CSWP (The new, easy test)
RE: hotkey macro
the macro works but the first three times I hit the shortcut hides each one at a time, the fourth time on the shortcut brings them all back.
I'm no API wizard but doesnt the code instruct all off at the same time?
RE: hotkey macro
Matt Lorono
Lorono's SolidWorks Resources & SolidWorks Legion
&
RE: hotkey macro
-handleman, CSWP (The new, easy test)
RE: hotkey macro