Sign in to follow this  
Followers 0
bb01

How to exit a screensaver / video etc by moving mouse

3 posts in this topic

I'm try to create a few scripts etc.. for screensavers & video players.. and need it to exit when the mouse is moved...

Any ideas how to do this??

Or is it even possible?

Share this post


Link to post
Share on other sites



$pos = MouseGetPos (1)

while 1
    sleep (50)
    $check = mousegetpos (1)
    if $pos <> $check Then
        msgbox (0, '' , "you moved")
        exit
    endif
    wend


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

You can check mouse move with MouseGetPos() or GUIGetCursorInfo().

Just have a look to the help file.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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