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 


if mouse click O_o

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Mar 05, 2008 1:08 pm    Post subject: if mouse click O_o Reply with quote

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
View user's profile Send private message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Wed Mar 05, 2008 1:13 pm    Post subject: Reply with quote

SetWindowsHookEx
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Mar 05, 2008 1:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Mar 05, 2008 2:59 pm    Post subject: Reply with quote

VK_LBUTTON ?
Back to top
View user's profile Send private message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Wed Mar 05, 2008 2:59 pm    Post subject: Reply with quote

Yes, and you can handle all clicks and mouse movement with SetWindowsHookEx.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Mar 05, 2008 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Thu Mar 06, 2008 1:09 am    Post subject: Reply with quote

thanks Smile
but i still wonder why left changes to right lulz Shocked

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Mar 06, 2008 1:37 am    Post subject: Reply with quote

Try to use:
Code:
GetKeyState(VK_LBUTTON)<0
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