Jump to content

Mouse Fast -- Mouse Slow -- Moause Fast...


JamesOD
 Share

Recommended Posts

Will someone pls write me a script that speeds up the mouse to the fastest possible and then one to bring it back to a 'normal' set value. I'm trying to use a cordless bluetooth keyboard, then back to normal keyboard gracefully, but have to fumble around my pc and adjust sensitivity to stand up and present on the big screen ...then back again when I sit down...its a such a hassle!

So I want to stick two mouse icons in a sidebar app launcher and link them back to the scripts. Unless someone has a better idea? Thanks!

Link to comment
Share on other sites

from start --> run you can open the mouse control panel by entering:

"control mouse" (without the double quotes.)

next thing you can use is the AU3 Recorder (if you have installed scite + tools on top of your AutoIt installation, you have this tool in tools/au3recorder in scite.)

you can run the "control mouse" command in AU3 Recorder, record the mousemovements and keyboard text, press record, stop when finished and try your code again :D

read the helpfiles on how to work with AU3recorder. I can easily write this for you but I might bump into a few problems like (1) different language OS, this will cause to indefinately wait for a "window title" to appear but it never does as the language is different 2) dififferent looking control panel item ,...)

so try writing this yourself and let us know if you got this working.

PS. your code will look something like this :D

#region --- ScriptWriter generated code Start --- 
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('control mouse')
WinWait("Mouse Properties","")
If Not WinActive("Mouse Properties","") Then WinActivate("Mouse Properties","")
WinWaitActive("Mouse Properties","")
MouseMove(215,291)
MouseDown("left")
MouseMove(255,291)
MouseUp("left")
MouseMove(359,461)
MouseDown("left")
MouseUp("left")
MouseMove(247,292)
MouseDown("left")
MouseMove(207,294)
MouseUp("left")
MouseMove(364,452)
MouseDown("left")
MouseUp("left")
MouseMove(275,456)
MouseDown("left")
MouseUp("left")
#endregion --- ScriptWriter generated code End ---
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...