PureBasic Forum https://www.purebasic.fr/english/ |
|
Send Keys https://www.purebasic.fr/english/viewtopic.php?f=5&t=2884 |
Page 1 of 1 |
Author: | BackupUser [ Sat Jun 30, 2001 5:55 pm ] |
Post subject: | |
Restored from previous forum. Originally posted by Paul. Anyone know how to send keystrokes to another application? I can set focus to an external app and even pull it out of the task bar if it's been minimized using: handle.l=FindWindow_(0,"Window Name") OpenIcon_(handle) done.l=SetForegroundWindow_(handle) But now that this window is in focus, how do I send some keystrokes to it like CTRL-R or any key for that matter? |
Author: | BackupUser [ Sat Jun 30, 2001 7:15 pm ] |
Post subject: | |
Restored from previous forum. Originally posted by Mr.Skunk. Must go to bed ![]() LRESULT SendMessage( HWND hWnd, // handle of destination window UINT Msg, // message to send WPARAM wParam, // first message parameter LPARAM lParam // second message parameter ); Mr Skunk |
Author: | BackupUser [ Fri Jul 06, 2001 8:43 pm ] |
Post subject: | |
Restored from previous forum. Originally posted by Paul. I still am unable to find a way to send keystrokes to external applications. I took a look at what you suggested but am having quite a time interpreting it. Most other programming languages allow commands to find a window like: FindWindow_(0,"Untitled - Notepad"), open it up, and then use a command similar to: SendKey("This is my text") And it will type this into Notepad as if you used the keyboard. (There are also special codes to send ALT, CTRL, ESC etc.) Anyone have any ideas?? |
Author: | BackupUser [ Tue Oct 16, 2001 6:11 am ] |
Post subject: | |
Restored from previous forum. Originally posted by PB. Quote: I still am unable to find a way to send keystrokes to external applications Check out the Beginner thread called 'Send a key to a window?' that I started, the solution is there. ![]() |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |