balajinagaraju has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I am working on automating a win32 GUI application using some perl modules and uptill now i have been running the application in foreground mode and all my scripts are running fine , but now i would like to make changes to my script to make my application run in background while the user can be able to do other jobs in the foreground.
I am using Postmessage and Sendmessage commands to send commands to a particular window and this works perfectly fine if i am running in background but i want to enter data into an edit control in background and i am not able to find a solution for this. I have been using SendKeys to send key strokes but this requires the application to be in foreground.How can i enter data to an edit control when my application is running in background?. I have tried using the below commands but its not working. Any suggestions are appreciated.
PostMessage($URLDialog,WM_SETTEXT,0,"Test"); SendMessage($URLDialog, WM_SETTEXT, 0, "Test");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending a message to Win32 Dialog in background.
by BrowserUk (Patriarch) on Oct 31, 2012 at 10:07 UTC | |
by nikosv (Deacon) on Nov 01, 2012 at 09:21 UTC | |
by BrowserUk (Patriarch) on Nov 01, 2012 at 09:43 UTC | |
|
Re: Sending a message to Win32 Dialog in background.
by Anonymous Monk on Oct 31, 2012 at 09:58 UTC | |
by Corion (Patriarch) on Oct 31, 2012 at 10:05 UTC | |
by balajinagaraju (Sexton) on Oct 31, 2012 at 10:10 UTC | |
by Corion (Patriarch) on Oct 31, 2012 at 10:15 UTC | |
by Anonymous Monk on Nov 11, 2012 at 08:00 UTC | |
by Anonymous Monk on Oct 31, 2012 at 10:04 UTC |