sshrum Posted September 14, 2006 Share Posted September 14, 2006 (edited) One of the guys I work with is right handed but he sets his mouse to right button primary.Rule around work is when a person is on vacation, we get to prank him (since he's out, it gives us time to set up booby traps). I want to write a script that would swap his mouse buttons. I can set up a timer that would switch it at random intervals but I need the code to do the swapping without actually popping up the mouse control panel.I already hit him with my execute app (allows a person to execute commands on other PCs by monitoring a launch file) so he'll know what is going on if I hit him with that again.If anybody has any other prank-like ideas/code...throw it my way...I need to get this guy back for when I was on vacation. TIA Edited September 14, 2006 by sshrum Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 14, 2006 Moderators Share Posted September 14, 2006 You could use the SwapMouseButton api call in the user32.dll. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
sshrum Posted September 14, 2006 Author Share Posted September 14, 2006 You could use the SwapMouseButton api call in the user32.dll.Help me out...what is the call that would do it.TIA Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 14, 2006 Moderators Share Posted September 14, 2006 (edited) Help me out...what is the call that would do it.TIAI don't know, I hadn't used it... look it up on MSDN, or do a search for SwapMouseButton to see if anyones done it yet.Edit:http://www.autoitscript.com/forum/index.ph...SwapMouseButton Edited September 14, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
sshrum Posted September 14, 2006 Author Share Posted September 14, 2006 Excellent! Thanks for the link. If anybody has other ideas for prank programs, let me know. Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
jvanegmond Posted September 14, 2006 Share Posted September 14, 2006 #NoTrayIcon HotKeySet("{space}", "Block") While 1 Sleep(100) Wend Func Block() BlockInput(1) Sleep(1500) BlockInput(0) EndFunc github.com/jvanegmond Link to comment Share on other sites More sharing options...
Danny35d Posted September 15, 2006 Share Posted September 15, 2006 Excellent! Thanks for the link.If anybody has other ideas for prank programs, let me know.Take a look to this post, I use a lot SHIFTER.... AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now