Im looking for script which will press ctrl and up arrow key then wait 1 second and press ctrl and down arrow key then wait 14 mins and repeat.
It have to press both ctrl and up arrow key in the same time. same with ctrl and down arrow key.
I did with something like this but it just press up and down arrow key without holding the ctrl key.
Code: Select all
SetTitleMatchMode 2
SetTitleMatchMode Slow
SendMode Input
;
; Start script running using CTRL+L
; Pause script using ALT+L
;
!l::pause
^l::
;
; Start of the script and also used as the goto point
;
Start:
;
; Set the name of the window you want the script to run in
;
WindowName := "game"
#Persistent
SetTimer, DBL, 1400000
return
DBL:
ControlSend, , ^{Up}, game
sleep, 1000
ControlSend, , ^{Down}, game
;
; Used goto instead of a loop as this allows us to easily check if the window is still activated
;
goto, start