New to AutoHotkey willing to make a simple script.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Phsimontk
Posts: 1
Joined: 24 Apr 2018, 05:45

New to AutoHotkey willing to make a simple script.

24 Apr 2018, 05:52

Hello,

I am new to autohotkey I use to do macros with Jibit Macrorecorder but I want to learn more of automation script.

Here is a simple script I want to try and I just don't know where to start.

1: Send commands in a specifif program (window)
2: Press 3 every 120 seconds
3: Press 4 once
4: Press 5 & 6 every 625 seconds
5: Press 7 every 375 seconds
6: Press 8 every 185 seconds
7: While the loop up there is still going, between pressing each keys, always hold down space bar.

Simple as that I just really don't know how to get it started.

Thanks for your help!
TinyDancer

Re: New to AutoHotkey willing to make a simple script.

24 Apr 2018, 06:02

1: Send commands in a specifif program (window)

what commands?

2: Press 3 every 120 seconds

For this use a timer
settimer, sendthree, 120000
send, 3

3: Press 4 once

send, 4

4: Press 5 & 6 every 625 seconds

time again that you start when script starts
settimer, sendff, 625000
send, 5 6

5: Press 7 every 375 seconds

timer again

6: Press 8 every 185 seconds

timer again

7: While the loop up there is still going, between pressing each keys, always hold down space bar.

add

Send {Space down}

as much as you need where you need it

to bring it back up add

Send {Space up}, you will have to do this before sending your other keys or you will be sending spaces too (i think so)
jekko1976
Posts: 97
Joined: 10 Oct 2014, 07:03

Re: New to AutoHotkey willing to make a simple script.

24 Apr 2018, 07:59

you could start to look at the commands controlsend, and the autoIT window spy

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 188 guests