I believe its a ptc maybe wrong never tried this
UnlockCursor
Well i want that my Mouse can move ingame like i already drawed a point on the mouse position but ingame i cant move the mosepoint bcuz its always where the aimpoint is, so in the middle. Does any1 know how to enable him so that i can move him to my menu ?
Thanks
I believe its a ptc maybe wrong never tried this
UnlockCursor
Sydney (11-07-2010)
UnlockCursor = 1 (Actived)
UnlockCursor = 0 (Desactived)
So you turn the tables, let 0, then the bottom one, because if he had entered the game activated
The PTC doesn't work. Don't even try lol. When you are in game, press ESC on your key board and then your mouse is unlocked.
Hotkeys version.
OBS: false will receive 0, so do not enter the game enabled .. insert will be pressed to activate.Code:bool unlockcursor= false; if(GetAsyncKeyState(VK_INSERT)<0){ if(unlockcursor){ PTC("CursorCenter 0"); unlockcursor = false; } else { PTC("CursorCenter 1"); unlockcursor = true; } }
Menu now depends on what you said.
This is what your looking for?Code:void UnlockArrow() { HMODULE hMyMod = NULL; hMyMod = GetModuleHandle("USER32.dll"); if(hMyMod){ DWORD dwTemp = NULL; dwTemp = (DWORD)GetProcAddress(hMyMod, "SetCursorPos"); if(dwTemp){ DWORD dwProtect; VirtualProtect((void*)dwTemp, 3, PAGE_EXECUTE_READWRITE, &dwProtect); memcpy((void*)dwTemp, &UnlockMouse, 3); VirtualProtect((void*)dwTemp, 3, dwProtect, &dwProtect);
Thanks, /Solved
Last edited by Sydney; 11-07-2010 at 11:30 AM.
Thanks Cosmos