Jump to content

Another Help Topic


Recommended Posts

could someone tell me what is wrong in this part of my script? ive been rewriting this part over and over in different ways but can't seem to get it. oh yah im a total novice in script writing so this might be very simple to some of you guys out there.

MouseMove( 1000, 1000, 1 )

$__a_ = MouseGetPos ( )

$x = $__a_[0]

$y = $__a_[1]

if ($x, 799) then Bot()

if NOt ($x, 799) then Resfix()

when ever i try to run it, it says something about me missing a right ")" bracket

oh btw i like this smiley :D

Interest is only a word for self reasurance

Link to comment
Share on other sites

Hm Thx McDope you did what i couldn't do for hours.

oh btw i did what you told and it still didn't work said something about else statment Error but i quickly resolved that issue

MouseMove( 1000, 1000, 1 )

$__a_ = MouseGetPos ( )

$x = $__a_[0]

$y = $__a_[1]

if ($x = 799) then Bot()

if ($x <> 799) then Resfix()

Thx again :D

Interest is only a word for self reasurance

Link to comment
Share on other sites

Hm Thx McDope you did what i couldn't do for hours.

oh btw i did what you told and it still didn't work said something about else statment Error but i quickly resolved that issue

MouseMove( 1000, 1000, 1 )

$__a_ = MouseGetPos ( )

$x = $__a_[0]

$y = $__a_[1]

if ($x = 799) then Bot()

if ($x <> 799) then Resfix()

Thx again :wacko:

Just for the sake of clean code: things in an array are already variables and don't have to be read out to other variables. Anywhere you would normally use a variable like $x, you can put an array reference:

$__a_ = MouseGetPos( )
if $__a_[0] = 799 Then
   Bot()
Else
   Resfix()
EndIfoÝ÷ Øò¢æ«zåÊ)íz·¬µçbÞ¡ûayÊ(­Ø§j׬ì_®®®

:D

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...