Jump to content

Just Funny Keep Away Script


Starfish41
 Share

Recommended Posts

I want to present you my >keep them away from your pc< tool

its simple but effective!

code is explained so test it

#include <misc.au3>
#NoTrayIcon
$P=1
While 1
    if (_IsPressed ("01") and _IsPressed ("02") and _IsPressed ("04")) or $P Then;to exit script you have to hold the buttons half a second
        Sleep (500) 
        if _IsPressed ("01") or _IsPressed ("02") Then $P=0;if left/rigth mousebutton is klicked start beepthing
        if _IsPressed ("01") and _IsPressed ("02") and _IsPressed ("04") Then Exit;if left+right+third mousebutton is klicked exit script
    Else
        $Mouse = MouseGetPos()
        $Frequenz =($Mouse[0]/18+10)*($Mouse[1]/18+10);different sounds for mouse coords
        if _IsPressed ("01") then $Frequenz +=100 
        if _IsPressed ("02") then $Frequenz +=200;higher sound if left/right mousebutton clicked
        Beep($Frequenz, 50)
    Endif
WEnd
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...