Jump to content

MouseClick----->controls


Recommended Posts

$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

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

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

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...