SilentCurse Posted January 8, 2009 Posted January 8, 2009 expandcollapse popupwhile 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}")
Innovative Posted January 8, 2009 Posted January 8, 2009 What exactly is your question ? I can't see any questions ..
SilentCurse Posted January 8, 2009 Author Posted January 8, 2009 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?
Innovative Posted January 8, 2009 Posted January 8, 2009 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)
SilentCurse Posted January 8, 2009 Author Posted January 8, 2009 (edited) xVivoCity please check your Inbox Edited January 8, 2009 by SilentCurse
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