Jump to content

Errors !


Recommended Posts

Func junk()
$lol = PixelGetColor ( 400 , 700 )
$lol1 = PixelGetColor ( 434 , 146 )

if $lol = 0x37375F and $lol1 = 0xAE4040 then MouseClick ( "left" , 400 , 700 , 1 , 0  )
    
EndFunc
Func crap()
$hihi = PixelGetColor ( 225/315 , 300/385 )
    
If $hihi = 0x000000 then MouseClick ( "left" , 225/315 , 300/385 , 1 , 250  )
EndFunc

I don't get it lol how can I get this to work?

I keep getting errors

badly formatted func statement?

anyone please ^

Edited by BadBoyDeGekste
Link to comment
Share on other sites

alright thanks

but its still not doing anything :)

it opens and closes at the same time -.-

Everything is wrong...you can't just create functions without naming them, and you aren't calling them either. Read the help file...

http://www.autoitscript.com/autoit3/docs/i...g_functions.htm

WRONG:

Func

;do stuff

EndFunc

CORRECT:

myFunction()

Func myFunction()

;do stuff

EndFunc

Link to comment
Share on other sites

Everything is wrong...you can't just create functions without naming them, and you aren't calling them either. Read the help file...

http://www.autoitscript.com/autoit3/docs/i...g_functions.htm

WRONG:

Func

;do stuff

EndFunc

CORRECT:

myFunction()

Func myFunction()

;do stuff

EndFunc

I have that ofc but didn't edit it in my first post -.-

if I didn't had function calls I would get an error but I don't get an error it opens and closes again -.-

Link to comment
Share on other sites

@BadBoyDeGekste...Please post your script (Wrap it in code tags)

I am really new to this -.-

Func junk()
$lol = PixelGetColor ( 400 , 700 )
$lol1 = PixelGetColor ( 434 , 146 )

if $lol = 0x37375F and $lol1 = 0xAE4040 then MouseClick ( "left" , 400 , 700 , 1 , 0  )
    
EndFunc
Func crap()
$hihi = PixelGetColor ( 225/315 , 300/385 )
    
If $hihi = 0x000000 then MouseClick ( "left" , 225/315 , 300/385 , 1 , 250  )
EndFunc

thats all I got lol -.-

should there be more?

Link to comment
Share on other sites

this script is not going to do anything, as the functions are never being called.

Check the help file on functions.

or just remove the function tags from your code to get it to do something.

$lol = PixelGetColor ( 400 , 700 )
$lol1 = PixelGetColor ( 434 , 146 )

if $lol = 0x37375F and $lol1 = 0xAE4040 then MouseClick ( "left" , 400 , 700 , 1 , 0  )
    
$hihi = PixelGetColor ( 225/315 , 300/385 )
    
If $hihi = 0x000000 then MouseClick ( "left" , 225/315 , 300/385 , 1 , 250  )

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

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...