• Log in or sign up for an account here: https://www.sythe.org/login

Sprry! Didn't know where to put this! (I need scripting help!)

ruudiluca

Newcomer
Joined
Oct 13, 2009
Sythe Gold
0
Messages
1
Totally new to scripting. I am using AutoIt v3 to make a little bot.

What have I done wrong?

While 1=1
Send (“LEFT”)
Send (“RIGHT”)
WEnd
$i = 0
While $i <= 1000
$i = $i + 1
WEnd

I am trying to make a bot that presses the left and right arrow key over and over again.
 
Never used AutoIT nor saw any code for it, but if it is similar to most other languages:

While 1=1
Send (&#8220;LEFT&#8221;)
Send (&#8220;RIGHT&#8221;)
WEnd

is an endless loop because 1 will always equal 1. You would need to use a variable and increment it to get out of the loop.

$x = 1
While 1=$x
Send (&#8220;LEFT&#8221;)
Send (&#8220;RIGHT&#8221;)
$x = 2
WEnd
 
Runescape Gamblingrunescape gambling
Back
Top