2 registered members (TipmyPip, AndrewAMD),
1,151
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Simple way to simulate mouse-click with a key
#397211
03/16/12 15:33
03/16/12 15:33
|
Joined: Nov 2003
Posts: 433 The Netherlands
Toon
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 433
The Netherlands
|
Is there a simple way to 'simulate' a mouse-click (for clicking buttons) by pressing a key on the keyboard? Btw; I understand that if I check the selected button with button-over event and start the function based on that it is possible too, but I want it the simple way if possible... Thanks for reading.
|
|
|
Re: Simple way to simulate mouse-click with a key
[Re: Toon]
#397223
03/16/12 18:35
03/16/12 18:35
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
Im no expert ,thinking send a windows message maby sys_message or how bout butten_state
Compulsive compiler
|
|
|
Re: Simple way to simulate mouse-click with a key
[Re: PadMalcom]
#397713
03/22/12 16:52
03/22/12 16:52
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Noone heard somethignfrom windows apis? ^^ Try them.
mouse_event(MOUSEEVENT_LEFTDOWN, x, y, 100, 100)); mouse_event(MOUSEEVENT_LEFTDOWN, x, y, 200, 200));
|
|
|
Re: Simple way to simulate mouse-click with a key
[Re: Rei_Ayanami]
#397726
03/22/12 20:06
03/22/12 20:06
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
You probably also want to send a MOUSEEVENT_LEFTUP event afterwards =/
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|