Sign in to follow this  
Followers 0
hookLine

Using the MouseClickDelay (Option) Function

4 posts in this topic

Can anyone explain how to use this? I looked it up in the Help file and read it, but it didn't explain where to use it in a script.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Basically this sets a global options for yoru script so that if you issue two

mouse click commands this is the pause inbetween them.

Opt("MouseClickDelay", 20)
;20 being the pause in milliseconds
MouseClick()
MouseClick()
MouseClick()
MouseClick()

It's the same as

MouseClick()
Sleep(20)
MouseClick()
Sleep(20)
MouseClick()
Sleep(20)
MouseClick()

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

Basically this sets a global options for yoru script so that if you issue two

mouse click commands this is the pause inbetween them.

Opt("MouseClickDelay", 20)
;20 being the pause in milliseconds
MouseClick()
MouseClick()
MouseClick()
MouseClick()

It's the same as

MouseClick()
Sleep(20)
MouseClick()
Sleep(20)
MouseClick()
Sleep(20)
MouseClick()

Kenny

Thank you very much! This makes my script 1/2 the length :)

Share this post


Link to post
Share on other sites

ur welcome :)


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
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
Sign in to follow this  
Followers 0