Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Sleep, % Random Syntax error

$
0
0
I am having difficulty with some syntax regarding the sleep and random function. I am running V1.1.36.02

From what I've seen from documentation/other scripts this should be right:

CODE:

Sleep, % Random(2000, 5000)


but it gives the error - Call to nonexistent function, specifically: Random(2000,5000)

changing it to this:

CODE:

Sleep, % Random (2000, 5000)

removes the error. Why does the space remove the error and is this syntax now correct?

Statistics: Posted by rubeusmalfoy — Today, 09:37



Viewing all articles
Browse latest Browse all 579

Trending Articles