Sign in to follow this  
Followers 0
Kradon

[Help] Send Function not working

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



Your Send() syntax seems fine. Exactly what window are you trying to send text to?

Share this post


Link to post
Share on other sites

Your Send() syntax seems fine. Exactly what window are you trying to send text to?

i was trying to send it to mozilla firefox

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0