Autohotkey script multiple functions

Posted by Vince on Super User See other posts from Super User or by Vince
Published on 2011-01-12T22:51:02Z Indexed on 2011/01/12 22:55 UTC
Read the original article Hit count: 342

Filed under:
|
|
|

Is it possible to use this bottom script but add a second hotkey and function that goes with it.

;DoOver.ini
;[Settings]
;record={LCtrl}{F12} ;hotkey to start and stop recording
;playback={LCtrl}{F5} ;hotkey to start playback
;keydelay=10 ;ms to wait after sending a keypress
;windelay=100 ;ms to wait after activating a window
;movemouseafter=1 ;move the mouse to original pos after playback 1=yes 0=no

[Settings]
record={LCtrl}{F12}
playback={LCtrl}{F5}
keydelay=10
windelay=100
movemouseafter=1
macro={WinActive}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{LCTRL Down}{Right}{Right}{LCTRL Up}{LSHIFT Down}{End}{LSHIFT Up}{LCTRL Down}{c}{LCTRL Up}{MouseClick,L,236,116,1,0,D}{MouseClick,L,54,116,1,0,U}{LCTRL Down}{LCTRL Up}{MouseClick,L,474,64,1,0,D}{MouseClick,L,474,64,1,0,U}{MouseClick,L,451,77,1,0,D}{MouseClick,L,451,77,1,0,U}{MouseClick,L,44,225,1,0,D}{MouseClick,L,44,225,1,0,U}

OR

playback={LCtrl}{F7}
keydelay=10
windelay=100
movemouseafter=1
macro={WinActive}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{LCTRL Down}{Right}{Right}{LCTRL Up}{LSHIFT Down}{End}{LSHIFT Up}{LCTRL Down}{c}{LCTRL Up}{MouseClick,L,236,116,1,0,D}{MouseClick,L,54,116,1,0,U}{LCTRL Down}{LCTRL Up}{MouseClick,L,474,64,1,0,D}{MouseClick,L,474,64,1,0,U}{MouseClick,L,451,77,1,0,D}{MouseClick,L,451,77,1,0,U}{MouseClick,L,44,225,1,0,D}{MouseClick,L,44,225,1,0,U}

Maybe add something like what is printed in bold here. I know the coding isnt right here, but i think this is the best way to describe what I am looking for.

Anybody?

© Super User or respective owner

Related posts about script

Related posts about autohotkey