diikee Posted April 11, 2008 Share Posted April 11, 2008 $ip = InputBox("IP Entry", "Enter Camera IP address:", "") MouseClick("primary") -->> this doesn't work ds() func ds() msgbox(4096, "DS", "DS=2") mouseclick("left") ---->>>doesn't click the mouse button $rc = _RunDos("start c:\test\iq -ds 2 $ip") ---->>This doesn't work sleep(5000) endfunc what am I doing wrong?? how do I pass the $ip to the $rc command so that I don't have to assign static IP Address Link to comment Share on other sites More sharing options...
Swift Posted April 11, 2008 Share Posted April 11, 2008 (edited) Here something to remember. When using variables or functions inside a string, you cannot include them inside the string. You must use a & sign to signify, your stopping the string, and beggining a variable or function. Example: _RunDoes("start C;\test\iq -ds 2 " & $ip) EDIT: Your other problem. You cant use primary. Use either: "left" or "right" to send a mouse click. Edited April 11, 2008 by Swift Link to comment Share on other sites More sharing options...
diikee Posted April 11, 2008 Author Share Posted April 11, 2008 $ip = InputBox("IP Entry", "Enter Camera IP address:", "") Sleep(2000) ControlClick($ip, "Ok", 2) MouseClick("right") MouseClick("right" [,0,0 [, 1 [, 1]]]) none of the mouseclick actions work or cause the ok button to be clicked what else am I missing?? do I need an include file?? Link to comment Share on other sites More sharing options...
rudi Posted April 11, 2008 Share Posted April 11, 2008 Hi. $ip = InputBox("IP Entry", "Enter Camera IP address:", "") ; The script will remain at the line above *UNTIL* the dialog is exited. ; so the lines below *CANNOT* interact with that input box. If you want to automate the input and [OK] of that particular dialog box you would need to run a 2nd script doing so. But this isn't making much sense, as qou would have to check for the first 3 bytes of the IP address if they are valid, but for the final byte your 2nd script would have to guess when the input is done: It coud be "1", "12", or "123". Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! 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