Jump to content

a Little Help please (Code inside)


Recommended Posts

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}")
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...