![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Richard, Stefan
You can simulate the VB sendkeys using
*Post message*
The PostMessage function places (posts) a message in the message queue
associated with the thread that created the specified window and then
returns without waiting for the thread to process the message. Messages
in a message queue are retrieved by calls to the GetMessage or
PeekMessage function.
BOOL PostMessage(
HWND hWnd, // handle of destination window
UINT Msg, // message to post
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
Also of interest might be* keybd_event*
The keybd_event function synthesizes a keystroke. The system can use
such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN
message. The keyboard driver's interrupt handler calls the keybd_event
function.
VOID keybd_event(
BYTE bVk, // virtual-key code
BYTE bScan, // hardware scan code
DWORD dwFlags, // flags specifying various function options
DWORD dwExtraInfo // additional data associated with keystroke
);
They are available in the win32 SDK help file or online at
http://msdn.microsoft.com/default.aspx
Regards
Rob
Stefan Schmiedl wrote:
>Richard Owlett (2005-01-26 14:35):
>
>
>
>>I wasn't aware there was a "sendkeys" in SwiftForth.
>>
>>
>
>I don't know ... is there?
>
>
>
>>Where might it be found?
>>I've used that in VB and would *very much* like to use it in SwiftForth=
>>
>>
> .
>
>MSDN tells me that there is SendInput in user32.dll, which
>"synthesizes keystrokes, mouse motions, and button clicks".
>
>I could imagine worse starting points for messing around with this :-)
>
>
>
>
>
>
>
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Mon Jan 31 2005 - 05:40:51 PST
This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 03:04:24 PST