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 


[C++] Mouse clicks

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

Joined: 17 Dec 2006
Posts: 786

PostPosted: Wed Jun 25, 2008 11:34 am    Post subject: [C++] Mouse clicks Reply with quote

Best way would be

PostMessageA(WM_MOUSEDOWN);
PostMessageA(WM_MOUSEUP);

right?

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Jun 25, 2008 11:39 am    Post subject: Reply with quote

No.

1. There are no WM_MOUSEDOWN and WM_MOUSEUP Messages.
2. PostMessage has 4 Parameters

You have to start making an attempt of searching MSDN.

_________________
Back to top
View user's profile Send private message
avril18
Master Cheater
Reputation: 0

Joined: 11 Apr 2007
Posts: 380
Location: En san salvador, El Salvador

PostPosted: Wed Jun 25, 2008 11:49 am    Post subject: Reply with quote

Code:
int temp = System::Int32::Parse(label1->Text);
temp++;
label1->Text = temp.ToString();


i gues is something like this
if u click label put the text will show how many clicks u did

_________________


Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Wed Jun 25, 2008 11:51 am    Post subject: Reply with quote

What about WM_LBUTTONDOWN and WM_LBUTTONUP?

I know those exist.

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
avril18
Master Cheater
Reputation: 0

Joined: 11 Apr 2007
Posts: 380
Location: En san salvador, El Salvador

PostPosted: Wed Jun 25, 2008 11:52 am    Post subject: Reply with quote

ElectroFusion wrote:
What about WM_LBUTTONDOWN and WM_LBUTTONUP?

I know those exist.


ok man lurc is right try to make some research before asking (MSDN)

_________________


Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Wed Jun 25, 2008 12:10 pm    Post subject: Reply with quote

I think you should learn C++ first Embarassed.
Back to top
View user's profile Send private message MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Jun 25, 2008 12:26 pm    Post subject: Reply with quote

noz3001 wrote:
I think you should learn C++ first Embarassed.


Finally, someone else who tell's him this other then me.
Maybe he'll listen now. Rolling Eyes

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

Joined: 21 Mar 2008
Posts: 131

PostPosted: Thu Jun 26, 2008 10:57 am    Post subject: Reply with quote

Taken from my AutoClick bot function:

GetCursorPos(&CursorCoords);
PostMessageX(MSHWND, WM_LBUTTONDBLCLK, MK_LBUTTON, MAKELPARAM(CursorCoords.x, CursorCoords.y));
Sleep(10);
PostMessageX(MSHWND, WM_LBUTTONUP, MK_LBUTTON, MAKELPARAM(CursorCoords.x, CursorCoords.y));
Sleep(10);
Back to top
View user's profile Send private message AIM Address
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