diikee Posted April 11, 2008 Share Posted April 11, 2008 $ip = InputBox("IP Entry", "Enter Camera IP address:", "") Sleep(2000) MouseClick("right") MouseClick("") MouseClick("Right") MouseClick("right") MouseClick("Left") MouseClick("left") MouseDown("left") MouseDown("right") Try the calls above and confirm they don't work. -Do I need any includes?? -What needs to be modified?? Link to comment Share on other sites More sharing options...
covaks Posted April 11, 2008 Share Posted April 11, 2008 All of the commands work fine. They do exactly what they are supposed to do. After you close the inputbox, it sleeps for 2 seconds, then does all the mouseclicks. What exactly are you trying to do? Link to comment Share on other sites More sharing options...
diikee Posted April 11, 2008 Author Share Posted April 11, 2008 I am trying to mouse click on the inputbox <OK> button. I don't want to manually click the OK on the input box Link to comment Share on other sites More sharing options...
covaks Posted April 12, 2008 Share Posted April 12, 2008 The script pauses when you use the InputBox() function until it is closed. If you want to click on it, you would have to create a second script that looks for it to become active, and then clicks on one of the buttons. Your script doesn't make any sense either. Are you trying to automate some other program? You should probably look in the help at the ControlSend and ControlClick commands if so. Link to comment Share on other sites More sharing options...
d4rk Posted April 12, 2008 Share Posted April 12, 2008 The script pauses when you use the InputBox() function until it is closed. If you want to click on it, you would have to create a second script that looks for it to become active, and then clicks on one of the buttons. Your script doesn't make any sense either. Are you trying to automate some other program? You should probably look in the help at the ControlSend and ControlClick commands if so.yes, this's quite exactly ! have a little code to prove it HotKeySet("{esc}","Quit") Func Quit() Exit 1;Thoat khoi chuong trinh khi nhan delete EndFunc do $id=inputbox("Enter your ID","ID : ","","",100,100) until $id<>"" right when the input box open, and even you press ESC, the program won't quit immediatly, you have to close the input box by choosing "Ok" or "Cancel" and then, the script will quit [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys 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