Hi guys here is my hypothetical code, Does ahk have Odds*?
My idea is that Somehow i can get AHK to flip and imaginary coin before executing a command to determine if it will execute it or not.
F1::
Loop
{
;;;Chance to execute next line 50%;;;;<--------- =HOW??
Send, 12345678910a
Sleep, 1000
;;;Chance to execute next line 50%;;;;
Send, 01987654321b
Sleep, 1000
;;;Chance to execute next line 50%;;;;
Send, 01987654321c
Sleep, 1000
Continue
}
Hope to hear from you all soon!
Please HELP Random% Question
-
- Posts: 18
- Joined: 19 Sep 2017, 04:14
Re: Please HELP Random% Question
Code: Select all
F1::
Loop
{
Random, Rand, 1, 100
if (Rand <= 50)
Send, 12345678910a
Sleep, 1000
Random, Rand, 1, 100
if (Rand <= 50)
Send, 01987654321b
Sleep, 1000
Random, Rand, 1, 100
if (Rand <= 50)
Send, 01987654321c
Sleep, 1000
Continue
}
-
- Posts: 18
- Joined: 19 Sep 2017, 04:14
Re: Please HELP Random% Question
ILY This is perfect THANK YOU SO MUCHboiler wrote:Code: Select all
F1:: Loop { Random, Rand, 1, 100 if (Rand <= 50) Send, 12345678910a Sleep, 1000 Random, Rand, 1, 100 if (Rand <= 50) Send, 01987654321b Sleep, 1000 Random, Rand, 1, 100 if (Rand <= 50) Send, 01987654321c Sleep, 1000 Continue }
Who is online
Users browsing this forum: OrangeCat and 286 guests