Jump to content
Sign in to follow this  
SilentCurse

a Little Help please (Code inside)

Recommended Posts

SilentCurse

while 1
    If WinActive("SRO_Client") and PixelGetColor(60,162) = 0x000000 then
        ControlSend( "SRO_Client", "", "Edit1", "{END}")
        sleep (500)
        ControlSend( "SRO_Client", "", "Edit1", "{END}")
        sleep (500)
        ControlSend( "SRO_Client", "", "Edit1", "{Home}")
        sleep (500)
        MouseClick ("left", 381, 208, 2)
        sleep (700)
        send ("{2}")
        sleep (100)
        send ("{2}")
        sleep (100)
        send ("{8}")
        sleep (100)
        send ("{0}")
        ControlSend( "SRO_Client", "", "Edit1", "{INS}")
        sleep (3500)
        ControlSend( "SRO_Client", "", "Edit1", "{END}")
        sleep (1000)
        MouseClick ("left", 70, 162, 2)
        sleep (500)
        ControlSend( "SRO_Client", "", "Edit1", "{1}")
        sleep (200)
        ControlSend( "SRO_Client", "", "Edit1", "{1}")
        sleep (200)
        ControlSend( "SRO_Client", "", "Edit1", "{2}")
        sleep (1000) 
        ControlSend( "SRO_Client", "", "Edit1", "{2}")
        sleep (1000)
        MouseClick ("left", 381, 208, 2)
        sleep (700)
        Send ("{2}")
        sleep (100)
        send ("{3}")
        sleep (100)
        send ("{1}")
        sleep (100)
        send ("{1}")
        sleep (500)
        ControlSend( "SRO_Client", "", "Edit1", "{INS}")
        ControlSend( "SRO_Client", "", "Edit1", "{INS}")
        sleep (200)
        ControlSend( "SRO_Client", "", "Edit1", "{Home}")
        sleep (100000)
    EndIf
    WEnd

This is my code i am trying to have a pop up window that i can type the send command numbers in

send ("{2}")
        sleep (100)
        send ("{2}")
        sleep (100)
        send ("{8}")
        sleep (100)
        send ("{0}")

so i can type for example 2388 instead o 2280 and then to have another pop up, and to ask me again which number to revert as u can see from

Send ("{2}")
        sleep (100)
        send ("{3}")
        sleep (100)
        send ("{1}")
        sleep (100)
        send ("{1}")

Share this post


Link to post
Share on other sites
Innovative

What exactly is your question ? I can't see any questions ..

Share this post


Link to post
Share on other sites
SilentCurse

What exactly is your question ? I can't see any questions ..

I need to know how to make a pop up window to type the 2nd code and revert back to the 3rd code?

Share this post


Link to post
Share on other sites
Innovative

If i'm not wrong , you're trying to say that you want the script to prompt what to SEND to a window ?

If so ,

$Input = InputBox("Title", "Enter the key you want to send to a specified window?", "{ESC}", "")
Send($Input)

Share this post


Link to post
Share on other sites
SilentCurse

xVivoCity please check your Inbox

Edited by SilentCurse

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  

×