From: <h2...@ie...> - 2006-04-07 23:51:44
|
Hi, I need to take the number that irfanview (a windows app distributed without sources) displays to the left of properties on top toolbar, and make it available via an HTTP request. I've got the HTTP request figured out (use HTTP::Daemon), but : How do I get the current value of the text? Do I have to get the widgets handle for that? How would I get it, and once I have it, how do I use it to retrieve current value? thanks a bunch, JJ PS: do I need activePerl for this, or can I keep using cygwin perl? |
From: Jeremy W. <jez...@ho...> - 2006-04-09 11:39:15
|
> I need to take the number that irfanview (a windows app >distributed without sources) displays to the left of >properties on top toolbar, and make it available via an HTTP >request. I've got the HTTP request figured out (use >HTTP::Daemon), but : > > How do I get the current value of the text? > > Do I have to get the widgets handle for that? How would I >get it, and once I have it, how do I use it to retrieve >current value? If the irfanview data you need is an actual windows control, then you will be able to get the information. You have to get the handle then use Win32-GUI functions to read the data. Getting the handle will be the "hard" part. There are a couple of functions in Win32::GUI::Test that should help with that. Cheers, jez. |
From: Robert M. <rm...@po...> - 2006-04-10 19:01:01
|
Jeremy White wrote: > Getting the handle will be the "hard" part. There are a couple of > functions in Win32::GUI::Test that should help with that. I think you mean Win32::GuiTest Regards, Rob. |
From: <h2...@ie...> - 2006-04-27 15:41:58
|
Hey guys ! thanks for putting me on the right path. you were right ! Win32::GuiTest did the trick. I just wish there was a way to send ENTER key press to a window (an "Edit" class text widget, to be exact) without having to give the window focus. Any ideas? Thanks ! JJ On Mon, 10 Apr 2006, Robert May wrote: > Date: Mon, 10 Apr 2006 20:00:57 +0100 > From: Robert May <rm...@po...> > To: Jeremy White <jez...@ho...> > Cc: h2...@ie..., per...@li... > Subject: Re: [win32-gui] RE: [perl-win32-gui-users] accessing contents of > a text box of another app > > Jeremy White wrote: > > Getting the handle will be the "hard" part. There are a couple of > > functions in Win32::GUI::Test that should help with that. > > I think you mean Win32::GuiTest > > Regards, > Rob. > |
From: Robert M. <rm...@po...> - 2006-04-27 17:27:14
|
h2...@ie... wrote: > I just wish there was a way to send ENTER key press to a > window (an "Edit" class text widget, to be exact) without > having to give the window focus. Any ideas? Can you post a WM_CHAR message to the window? Win32::GUI::PostMessage($hwnd, WM_CHAR, VK_RETURN, 0); [WM_CHAR = 258 VK_RETURN = 13] I've not tried this myself. Rob. |