Help with script

Get help with using AutoHotkey and its commands and hotkeys
ktfroy
Posts: 3
Joined: 31 Jul 2020, 13:37

Help with script

31 Jul 2020, 13:52

Hello,
I have created some working scripts with AHK that I use daily but wish to have something with a little more complexity. I am hoping for some help, or perhaps direction to a similar one that is available to work with.

I am needing to send to a particular application : F11(pause for 2 seconds), Crtl + F11 . I would need this script to run every x seconds (120000 milliseconds?).
Any help would be much appreciated.

thanks - Roy
rommmcek
Posts: 1050
Joined: 15 Aug 2014, 15:18

Re: Help with script

31 Jul 2020, 15:44

Try:

Code: Select all

loop {
    Send {F11}
    Sleep 2000
    Send ^{F11}
    Sleep 120000
}

Esc:: ExitApp
ktfroy
Posts: 3
Joined: 31 Jul 2020, 13:37

Re: Help with script

31 Jul 2020, 20:19

Thank you .
How do I direct it to the target application?
rommmcek
Posts: 1050
Joined: 15 Aug 2014, 15:18

Re: Help with script

01 Aug 2020, 05:12

Try:

Code: Select all

loop {
    ControlSend,, {F11}, Target App ; Title of Target App (case sensitive)
    Sleep 2000
    ControlSend,, ^{F11}, Target App ; Title of Target App (case sensitive)
    Sleep 120000
}

Esc:: ExitApp
ktfroy
Posts: 3
Joined: 31 Jul 2020, 13:37

Re: Help with script

03 Aug 2020, 13:32

It Works great - thanks again!

Return to “Ask For Help”

Who is online

Users browsing this forum: braunbaer, GamesOfFreak, kintar0e, Lorien, mikeyww, teadrinker, Xtra and 56 guests