| View previous topic :: View next topic |
| Author |
Message |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
Posted: Wed Mar 05, 2008 1:08 pm Post subject: if mouse click O_o |
|
|
well i trying to make a basic thing but it dosent work -.- (delphi)
if Odd(GetAsyncKeyState(MOUSEEVENTF_LEFTDOWN)) then begin
LEFTDOWN = left button right?
but when i click left nothing happening but if i click right button it works
and if i chaneg it to
RIGHTDOWN
it wont work at all
i use use mouse up it dosent work eighter
why does left changes to right and right dosent work at all ? lulz ..
if there any other command i should use to get mouse clicks? (not only in my app)
_________________
dont complain about my english...
1*1 = 2? |
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Wed Mar 05, 2008 1:13 pm Post subject: |
|
|
| SetWindowsHookEx
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
Posted: Wed Mar 05, 2008 1:34 pm Post subject: |
|
|
| Renkokuken wrote: | | SetWindowsHookEx |
i dont need to hook anything it is just a basic click on desktop/notepad etc
example
if mouse click then save mouse position but the keys are fucked and i cant figure it out O_o
_________________
dont complain about my english...
1*1 = 2? |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Mar 05, 2008 2:59 pm Post subject: |
|
|
| VK_LBUTTON ?
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Wed Mar 05, 2008 2:59 pm Post subject: |
|
|
| Yes, and you can handle all clicks and mouse movement with SetWindowsHookEx.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Mar 05, 2008 7:20 pm Post subject: |
|
|
GetAsyncKeyState( VK_LBUTTON ); will work.
Also if you want to handle it through WM_HOTKEY you could try
ATOM Hotkey1 = GlobalAddAtom( L"Mouse" );
RegisterHotKey( hWnd, Hotkey1, NULL, VK_LBUTTON ); dunno if it will work though, always good to try.
_________________
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Thu Mar 06, 2008 1:37 am Post subject: |
|
|
Try to use: | Code: | | GetKeyState(VK_LBUTTON)<0 |
|
|
| Back to top |
|
 |
|