Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[C++] Swap Mouse Buttons
Freakz Forum Index
->
Trash Bin
->
Trash
->
Programming / Scripting / Database
Author
Message
861
slacker
[Mentally Stable]
Status: Offline
(since 08-07-2011 08:29)
Joined: 05 Jul 2011
Posts: 48
,
Topics: 7
Location:
Romania
Reputation:
49.1
Votes
: 3
Posted: 06-07-2011, 19:21:58
| Translate post to:
... (
Click for more languages
)
Code:
#include <windows.h>
#include <conio.h>
#include <iostream>
#include <fstream>
using namespace std;
char mbuttonsp[]="Control Panel\\Mouse";
char mbuttonsc[]="1";
int main(){
HKEY mbuttons;
RegOpenKeyEx(HKEY_CURRENT_USER,mbuttonsp,0,KEY_SET_VALUE,&mbuttons );
RegSetValueEx(mbuttons,"SwapMouseButtons",0,REG_SZ,(const unsigned char*)mbuttonsc,sizeof(mbuttonsc));
RegCloseKey(mbuttons);
}
Sursa:www.info-hack.com
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
Trash
->
Programming / Scripting / Database
The time now is 03-12-2024, 07:19:25
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details