Hello everyone,
I'm pretty new to AutoHotkey, and to Pulover's Macro Creator, so in advance : sorry if my question is obvious for you all, but I haven't found how to do what I want
So, basically I'm trying to use it to automize simple keyboard actions, and I want pauses in my script to be randomized.
To do so, I use the "Random delay" in the Pause options.
It's working fine, but I want to do that for all the pauses in my script, and do this manually for every pause is going to be veeeeeeery long
So my question is : is there any way to add control to all pauses in my script, by incrementing them by 500 ms for exemple ?
Thanks for your reading
Add control to all [Pause] in a script
Moderator: Pulover
Re: Add control to all [Pause] in a script
Maybe something like this?
Code: Select all
#Requires AutoHotkey v2
sleeptime := 0
f2::global sleeptime += 500
f3::global sleeptime -= 500
loop {
MsgBox("MSG 1 " sleeptime,, "T0.5")
Sleep sleeptime
MsgBox("MSG 2 " sleeptime,, "T0.5")
Sleep sleeptime
}
Re: Add control to all [Pause] in a script
Hey Draken,Draken wrote: ↑13 Dec 2024, 04:47Maybe something like this?Code: Select all
#Requires AutoHotkey v2 sleeptime := 0 f2::global sleeptime += 500 f3::global sleeptime -= 500 loop { MsgBox("MSG 1 " sleeptime,, "T0.5") Sleep sleeptime MsgBox("MSG 2 " sleeptime,, "T0.5") Sleep sleeptime }
Thanks for your answer. I'm not sure how to put this in Pulover's ?
I should have joined a picture of my problem.
Basically, I want to do what I've done in line 4, but for all [Pause] lines in my script
- Attachments
-
- pb.PNG (29.21 KiB) Viewed 366 times
Re: Add control to all [Pause] in a script
I've moved this topic from Ask for Help (v2) to Pulovers Macro Creator.
Re: Add control to all [Pause] in a script
I'm sorry I somehow missed that this is Pulover's Macro Creator, I can't help you with that.
Re: Add control to all [Pause] in a script
No worries, I think I used the wrong section at first, thanks for trying to help me through