1
VB and the development of wizards / Detect button pressed
« on: April 09, 2008, 09:55:54 AM »
Hi to all of you,
Is it possible with VB to detect whether or not a button is pressed?
I am writing a routine for manual parting on my lathe
What I want it to do is the following:
When I press the arrow up key the parting move starts (at feedrate in the -X direction)
This should go on as long as I keep the arrow up key pressed
When I release the arrow up key, the parting move should stop, and backoff a little bit (to clear the workpiece)
How can I detect if the arrow up key is depressed in VB?
(I cannot find anything on this topic on the forum)
Any help is appreciated
Jan
Is it possible with VB to detect whether or not a button is pressed?
I am writing a routine for manual parting on my lathe
What I want it to do is the following:
When I press the arrow up key the parting move starts (at feedrate in the -X direction)
This should go on as long as I keep the arrow up key pressed
When I release the arrow up key, the parting move should stop, and backoff a little bit (to clear the workpiece)
How can I detect if the arrow up key is depressed in VB?
(I cannot find anything on this topic on the forum)
Any help is appreciated
Jan