|
-
May 24th, 2009, 05:36 PM
#1
Reading keyboard within a sub
Is there any way to read the keyboard WITHIN a sub that I create? I really only want to see if somone pushes the "a" or "A" key to abort a lengthy operation. I am trying to avoid DO EVENTS at all cost. I just rewrote a bunch of code to remove doevents after it almost gave me an ulcer---all works great now., but I lost the abort ability.
Just wondering if reading the keyboard with a function or call is even possible.
I suppose I could dice up the lenghty operation into multiple calls of my sub using statics & thus allow a click event to "jump in between calls" to effect an abort.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|