Kradon Posted June 29, 2011 Share Posted June 29, 2011 hi guys i've been trying to learn how to use pixels to my advantage but i've come across something that i do not understand. Here is my script: AutoItSetOption("PixelCoordMode", "2") AutoItSetOption("MouseCoordMode", "2") While 1 $test = PixelGetColor(408, 453) $test1 = PixelGetColor(703, 264) If $test == 0x885544 Then sleep(3000) MouseClick("Left", 509, 298, 1) ElseIF $test1 == 0xFFCC11 Then Sleep(5000) Send("z") Sleep(2000) Send("{TAB}") Sleep(1000) Send("z") Sleep(1000) Send("{ENTER}") EndIf WEnd every works fine, the mouseclicks clicks where its intended BUT the Send Functions arent working...or shall i say only the send functions with "z" isn't working, the {TAB} and {ENTER} seems to be working fine. why? Link to comment Share on other sites More sharing options...
smartee Posted June 29, 2011 Share Posted June 29, 2011 Your Send() syntax seems fine. Exactly what window are you trying to send text to? Link to comment Share on other sites More sharing options...
Kradon Posted June 29, 2011 Author Share Posted June 29, 2011 Your Send() syntax seems fine. Exactly what window are you trying to send text to?i was trying to send it to mozilla firefox Link to comment Share on other sites More sharing options...
smartee Posted June 29, 2011 Share Posted June 29, 2011 Oh, that's my favorite browser Sending "z" to Firefox works fine for me. Maybe you're using a particular website or some specific flash application? Give more specific details, maybe I can do some testing and better help you Link to comment Share on other sites More sharing options...
Kradon Posted June 29, 2011 Author Share Posted June 29, 2011 hmm its like my script gets stuck at a line randomly for the pixel functions such as ElseIf $test1 == 0xaddress and never moves on. dunno why this is happening. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 29, 2011 Share Posted June 29, 2011 See Language Reference - Operators in the Help file. There is a difference between = and ==. This may be the problem here. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now