View previous topic :: View next topic |
Author |
Message |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Wed Jun 25, 2008 11:34 am Post subject: [C++] Mouse clicks |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Jun 25, 2008 11:39 am Post subject: |
|
|
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 |
|
 |
avril18 Master Cheater
Reputation: 0
Joined: 11 Apr 2007 Posts: 380 Location: En san salvador, El Salvador
|
Posted: Wed Jun 25, 2008 11:49 am Post subject: |
|
|
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 |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Wed Jun 25, 2008 11:51 am Post subject: |
|
|
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 |
|
 |
avril18 Master Cheater
Reputation: 0
Joined: 11 Apr 2007 Posts: 380 Location: En san salvador, El Salvador
|
Posted: Wed Jun 25, 2008 11:52 am Post subject: |
|
|
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 |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Wed Jun 25, 2008 12:10 pm Post subject: |
|
|
I think you should learn C++ first .
|
|
Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Jun 25, 2008 12:26 pm Post subject: |
|
|
noz3001 wrote: | I think you should learn C++ first . |
Finally, someone else who tell's him this other then me.
Maybe he'll listen now.
_________________
|
|
Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Thu Jun 26, 2008 10:57 am Post subject: |
|
|
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 |
|
 |
|