Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


mouse cursor hack

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
sulidude
Cheater
Reputation: 0

Joined: 23 Aug 2007
Posts: 37

PostPosted: Sat Aug 25, 2007 4:46 pm    Post subject: mouse cursor hack Reply with quote

can some one tell me if they can enlarge the area the mouse selects in one click i know i can drag but i need it to be enlarged and work in a larger area
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sat Aug 25, 2007 5:27 pm    Post subject: Reply with quote

Install a mouse hook then send a mouse_event to every pixel inside a certain area around the click.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
sulidude
Cheater
Reputation: 0

Joined: 23 Aug 2007
Posts: 37

PostPosted: Sun Aug 26, 2007 7:46 am    Post subject: Reply with quote

can you give me a link and a little bit of info how to do this
Back to top
View user's profile Send private message
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Sun Aug 26, 2007 7:55 am    Post subject: Reply with quote

http://msdn2.microsoft.com/en-us/library/ms644990.aspx
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
sulidude
Cheater
Reputation: 0

Joined: 23 Aug 2007
Posts: 37

PostPosted: Sun Aug 26, 2007 8:08 am    Post subject: Reply with quote

well the thats the info but i cant find the download. can you send it plz?

so can i duplicate my mouse with this?
Back to top
View user's profile Send private message
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Sun Aug 26, 2007 8:24 am    Post subject: Reply with quote

Download? wtf?
No, you can install a windows mouse hook....

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
sulidude
Cheater
Reputation: 0

Joined: 23 Aug 2007
Posts: 37

PostPosted: Sun Aug 26, 2007 8:29 am    Post subject: Reply with quote

sry i'm a noob Very Happy

how can i install it ?
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Aug 26, 2007 8:45 am    Post subject: Reply with quote

he wants you to make the program and give it to him o.o

what the fuck, lol

_________________
Back to top
View user's profile Send private message
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Sun Aug 26, 2007 9:23 am    Post subject: Reply with quote

Code:
#include "windows.h"

HHOOK hHOOK = NULL;

LRESULT __declspec(dllexport)__stdcall CALLBACK MouseProc( int nCode,WPARAM wParam,LPARAM lParam )
{
   if (nCode > 0)
   {   
      if ( wParam == WM_LBUTTONDOWN )
      {
         MOUSEHOOKSTRUCT *MouseHook = (MOUSEHOOKSTRUCT *)lParam;
         SendMessage( MouseHook->hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MAKELONG(MouseHook->pt.x+100, MouseHook->pt.y+100));
      }
   }
   return  CallNextHookEx( hHOOK, nCode, wParam, lParam );
}

BOOL APIENTRY DllMain( HMODULE hModule, DWORD ulReason, LPVOID lpReserved )
{
   if ( ul_reason_for_call == DLL_PROCESS_ATTACH )
      hHOOK = SetWindowsHookEx(WH_MOUSE,(HOOKPROC)MouseProc,hModule,0);
else if ( ul_reason_for_call == DLL_PROCESS_DETACH )
   UnhookWindowsHookEx(hHOOK);
    return TRUE;
}


Thats basically what you want no? I cant be bothered to test it

_________________


Last edited by the_undead on Sun Aug 26, 2007 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Aug 26, 2007 9:43 am    Post subject: Reply with quote

Code:

else if ( ul_reason_for_call == DLL_PROCESS_DETACH )
   UnhookWindowsHookEx(hHOOK);
Back to top
View user's profile Send private message
sulidude
Cheater
Reputation: 0

Joined: 23 Aug 2007
Posts: 37

PostPosted: Sun Aug 26, 2007 9:59 am    Post subject: Reply with quote

thank you for youre help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites