Click to See Complete Forum and Search --> : sending mouse clicks to specified position upon receiving keyboard input


deadalous
November 6th, 2008, 05:36 PM
Hey there,
Basicly i am trying to make an application using VB.NET 2005 which Sends a mouse click to any given position ( even if its not in my application's area) upon pressing the SPACE keyStroke.
the bad thing is it works for 1 iteration :/
i mean when the click is outside the application's area, the application becomes minimized so when i HIT SPACE key again the input wont be sent to my application to make it send another click:/
how can i always make sure that my Keystroke will reach my application even if it is not ON TOP, i dont mind if there is a way to keep it always on top i only want to use my keystroke as many times i want ...
i tried


Me.TopMost = True

it does keep it in the foreground but not ACTIVE.
any help is apreciated
sorry for my bad english but i am very sleepy atm after hours of searching
thanks

GremlinSA
November 7th, 2008, 04:50 AM
Lookup keyboard hooking, there are several articles and threads detailing this here on CG...

Gremmy..

deadalous
November 16th, 2008, 05:54 AM
I am still fighting it with no luck... i wish you could fire me up with some link it would be more helpful.
thanks

jasonli
November 20th, 2008, 02:16 PM
I am still fighting it with no luck... i wish you could fire me up with some link it would be more helpful.
thanks

FYI
http://www.codeguru.com/forum/showthread.php?p=1759011