Click to See Complete Forum and Search --> : Simulating user input
honae
March 24th, 2006, 11:47 AM
I need execute remotely a program that have user input. Then I want make a program that simulates the user input. I knew there is forms to make this programaticaly, but I don't know how. Can someone show me some code or tell me where can I find information about this?
Thanks all.....
j0nas
March 24th, 2006, 12:07 PM
For console programs, you can use stdin/stdout redirection using pipes.
For GUI programs, it a lot harder.... If you just need to paste text (not fully screen scraping) you can use the Win32 clipboard-functions (OpenClipboard etc, see MSDN) in combination with FindWindow.
golanshahar
March 24th, 2006, 12:53 PM
I need execute remotely a program that have user input. Then I want make a program that simulates the user input. I knew there is forms to make this programaticaly, but I don't know how. Can someone show me some code or tell me where can I find information about this?
Thanks all.....
How can I emulate keyboard events in an application? (http://www.codeguru.com/forum/showthread.php?t=377393)
Cheers
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.