Send not sending

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
FatCatsUnite
Posts: 1
Joined: 20 Sep 2018, 12:32

Send not sending

20 Sep 2018, 12:56

I have a program that i worked on for a while, i have been searching for an answer to why it is not working for about two hours now (pressing F9 does nothing) , but i havent worked it out yet. I was wondering if someone could help me out

Code: Select all

F9::
{
loop
{

global n
global a
global b
global c

random, n, 0, 100
random, a, 28000,35000
random, b, 1000, 5000
random, c, 30100, 35000

if (%n% <= 80) {
Send, {!}
Send, work
Send, {Enter}
Sleep, 2000
Send, {!}
Send, deposit all
Send, {Enter}
Sleep, %a%
}

else {
Send, {!}
Send, withdraw 
Send, %b%
Send, {Enter}
Sleep, 1000
Send, {!}
Send, roulette 
Send, %b%
Send, red
Send, {Enter}
Sleep, %c%
Send, {!}
Send, deposit all
Send, {Enter}
}

}

Return
}
Guest

Re: Send not sending

28 Sep 2018, 02:02

Don't wrap variables in %% when using them in function calls, so change it to

Code: Select all

if (n <= 80)
See https://autohotkey.com/docs/FAQ.htm#percent

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 230 guests