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
Contributors
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Swap Mouse Buttons
mikethedj4
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.
Code: Select all
@echo off

RunDLL32 User32 ,SwapMouseButton
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.

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.
User avatar
iLenkaa
Top Poster
Top Poster
Posts: 170
Joined: Mon Nov 01, 2010 1:17 pm

Re: Swap Mouse Buttons
iLenkaa
uhmn. Why are you (half)naked?
I mean, your hot XD
Image
Image
Image
Image
Image
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Swap Mouse Buttons
mandai
unless of course you do this in VB
Yes you can actually:
Code: Select all
    <DllImport("user32.dll")> Shared Function SwapMouseButton(ByVal fSwap As Boolean) As Boolean
    End Function
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Swap Mouse Buttons
Cheatmasterbw
Seems like a cool prank!
http://www.megaapps.tk/
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Swap Mouse Buttons
mikethedj4
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 XD
Thanks :D lol
Cheatmasterbw wrote:
Seems like a cool prank!
It's so fun to prank people with this. Except my dad, cause he's ambidextrous.
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Swap Mouse Buttons
Cheatmasterbw
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.
http://www.megaapps.tk/
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Swap Mouse Buttons
mikethedj4
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
Return to “Tutorials”