Simulating a Keypress in OI (OpenInsight 32-Bit)
At 15 OCT 2005 03:32:09AM David E Schranz wrote:
I wish to force a Page Down keypress or a CTRL-L or any other keypress on an OLE control/object.
How can this be done.
Tks
DAvid Schranz
At 16 OCT 2005 04:28PM Karl Pozmann wrote:
Go to Microsoft and search for "keybd_event" - it is part of user32.dll, but is not prototyped in "DLL_USER32". If you prototype it, then setting focus to the window and then using keybd_event with the scan code should do what you want.
At 18 OCT 2005 05:32PM David E Schranz wrote:
I Need Help!
I cannot understand what I have to do to get the keybd_event to work within OI 7.1.1
I would appreciate a step by step explanation how to get this to work.
Tks
David Schranz
1)
Go to Microsoft and search for "keybd_event" - it is part of user32.dll, but is not prototyped in "DLL_USER32". If you prototype it, then setting focus to the window and then using keybd_event with the scan code should do what you want