Swap Mouse Buttons
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
7 posts
Page 1 of 1
While updating the description for my YouTube videos I came across an old video I did on swapping your mouse buttons in Batch programming, and I thought I'd put this here, just encase anyone wants to prank their friends, or family.
So here's the code below, which is pretty self explanatory, just don't forget to change 32 to 64 if you're a 64bit user, or want it to run on a 64bit computer.
Anyway there you guys go, and hopefully you get some good laughs, I know I did
The project file is no longer available for download!
So here's the code below, which is pretty self explanatory, just don't forget to change 32 to 64 if you're a 64bit user, or want it to run on a 64bit computer.
Code: Select all
Next just save it as .bat and you can begin pranking people. You can use the Bat to Exe Converter (It's a portable app btw so you can run it off your flash drive) to convert your batch program to an executable application and Linux users can run it threw wine, and not worry about the .NET Framework, unless of course you do this in VB.@echo off
RunDLL32 User32 ,SwapMouseButton
Anyway there you guys go, and hopefully you get some good laughs, I know I did

The project file is no longer available for download!
Last edited by mikethedj4 on Fri Jul 08, 2011 7:15 am, edited 1 time in total.
unless of course you do this in VBYes you can actually:
Code: Select all
<DllImport("user32.dll")> Shared Function SwapMouseButton(ByVal fSwap As Boolean) As Boolean
End Function
iLenkaa wrote:uhmn. Why are you (half)naked?I usually don't have my shirt on, and I don't think about it, or notice it really when I'm doing my tutorials.
iLenkaa wrote:I mean, your hot XDThanks

Cheatmasterbw wrote:Seems like a cool prank!It's so fun to prank people with this. Except my dad, cause he's ambidextrous.
I can't seem to get this to work on my 64 bit computer, even by changing the 32s to 64s. Could you help me with this.
I ran this on my dad's 64bit Vista machine, and I didn't have a problem at all it ran smoothly even with the 32bit version. So to be quite honest I don't know what it maybe. You may need to run it in windows XP compatibility mode, and/or as administrator.
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023