generate random number

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
dentopolis
Posts: 125
Joined: 06 May 2016, 16:28

generate random number

25 Oct 2021, 13:25

how can I write down a variable in AHK 2?

Code: Select all

^r::
{
number := Random(1000, 9999)
SendInput %number%
}
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: generate random number

25 Oct 2021, 13:36

get rid of the percent signs. they evaluate arbitrary expressions
RomAnT
Posts: 21
Joined: 23 Sep 2021, 13:19

Re: generate random number

26 Oct 2021, 11:54

swagfag wrote:
25 Oct 2021, 13:36
get rid of the percent signs. they evaluate arbitrary expressions
What are arbitrary expressions by the way.

I also seen some use of msgbox "value is %myvar%" could never understand how to use this.

could you point to where in AHK manual they describe the usage?

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Noitalommi_2 and 35 guests