Is Pause - Random Delay Option broken?
Moderator: Pulover
-
- Posts: 4
- Joined: 02 Aug 2020, 14:57
Is Pause - Random Delay Option broken?
Hi. I am just poking around in the tool to see what it can do and cant seem to get the "random delay" option to work in the Pause command. If I tick the random option and enter a min and max value the code created is just a sleep command with the min value I entered. Nothing is added to generate a random sleep.
Re: Is Pause - Random Delay Option broken?
I have to up this. It still looks to be the same in code now, in 2024
-
- Posts: 82
- Joined: 12 Nov 2022, 15:47
Re: Is Pause - Random Delay Option broken?
I'm using the following code and it's seems to be working for me. Differing pause intervals between "hi" messages.2ndprotocol wrote: ↑10 Aug 2021, 06:22Hi. I am just poking around in the tool to see what it can do and cant seem to get the "random delay" option to work in the Pause command. If I tick the random option and enter a min and max value the code created is just a sleep command with the min value I entered. Nothing is added to generate a random sleep.
Re: Is Pause - Random Delay Option broken?
If you export to ahk and run it standalone, it no longer randomizes. I am new to ahk and pulover so i may be wrongrockitdontstopit wrote: ↑09 Apr 2024, 15:25I'm using the following code and it's seems to be working for me. Differing pause intervals between "hi" messages.2ndprotocol wrote: ↑10 Aug 2021, 06:22Hi. I am just poking around in the tool to see what it can do and cant seem to get the "random delay" option to work in the Pause command. If I tick the random option and enter a min and max value the code created is just a sleep command with the min value I entered. Nothing is added to generate a random sleep.
delay.png
Re: Is Pause - Random Delay Option broken?
Crazy idea from a non-Pulover (but AutoHotkey) user: If you export it to AHK v1 code anyway, the Random command (or a related user-defined function) should be easy to test and debug with a few AHK basics. I even heard that there is an official AHK support forum somewhere nearby.
You could start with a minimal (exported) script to check...
You could start with a minimal (exported) script to check...
-
- Posts: 82
- Joined: 12 Nov 2022, 15:47
Re: Is Pause - Random Delay Option broken?
You probably should have mentioned that in your first post. Anywho, it's a rain day so no bicycle ride. I have a little time.If you export to ahk and run it standalone, it no longer randomizes. I am new to ahk and pulover so i may be wrong
Yes PMC is not exporting the code correctly.
Incorrect exported code:
Code: Select all
Loop
{
Sleep, 10
MsgBox, 0, , hi
}
F8::ExitApp
Code: Select all
Loop
{
Random, rand, 10, 5000
Sleep, %rand%
MsgBox, 0, , hi
}
F8::ExitApp
Re: Is Pause - Random Delay Option broken?
I did that, that's why i said i believe it does not work properly upon export. But then again, i just started ahk/pulover 3 days ago and i may have done something wrong on export and overall i don't quite know what i am doing.gregster wrote: ↑11 Apr 2024, 11:38Crazy idea from a non-Pulover (but AutoHotkey) user: If you export it to AHK v1 code anyway, the Random command (or a related user-defined function) should be easy to test and debug with a few AHK basics. I even heard that there is an official AHK support forum somewhere nearby.
You could start with a minimal (exported) script to check...
Re: Is Pause - Random Delay Option broken?
Sure, your fellow Pulover user rockitdontstopit seems to confirm this problem with the exported script (posting actual code like above, if available, is usually helpful). So just edit the AHK file according to v1 syntax rules and then save and run it.
I have no idea if PMC will get any updates in the future but this topic might help to improve it. If not, AHK v2 is recommended since AHK v1 is deprecated now.
Return to “Pulovers Macro Creator”
Who is online
Users browsing this forum: No registered users and 20 guests