PgDn key
Chris Hall (132) 3554 posts |
How can I fool ArtWorks (from my own application) into thinking I have pressed the PageDown key on the keyboard? I will just have sent ArtWorks a DataLoad message (as if a draw file had been dragged onto its open window from the filer) and the SHIFT key will be sellotaped down at that point (unless I can find another way to simulate a SHIFT-drag) so it will have the input focus. If I insert a PgDn key code (don’t know what that is but down-arrow is 138) into the keyboard buffer, how do I make sure the OS does not mungle that into a scroll window down request? |
Chris Hall (132) 3554 posts |
Possibly a SYS “Wimp_ProcessKey”,&19E (from PRM 3-173 and 3-123) would do the key press, independently of whether SHIFT is held down? I note that SHIFT-downarrow (&19E) is identical to PgDn (&19E) and downarrow (&18E) is identical to SHIFT-PgDn according to the PRM but, in fact, SHIFT-PgDn is (somewhere) intercepted by the OS as scroll wiondow down. Puzzling. |
Chris Hall (132) 3554 posts |
Sad though it is to answer my own post, a PgDn key press passed to ArtWorks will be translated to a scroll down request (internally to ArtWorks) if the SHIFT key is held down. Thanks to Martin for explaining this one. |