Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Help needed for using Win32::Setupsup module

by Albannach (Prior)
on Nov 21, 2003 at 17:09 UTC ( #308958=note: print w/ replies, xml ) Need Help??


in reply to Help needed for using Win32::Setupsup module

Evidently your SETUP.EXE does not give focus to the edit box you want when it starts, so I think all you need to do is TAB your way to the desired edit box before sending your text.

I have had to do this for a Win32 GUI app which didn't include all the edit boxes in the TAB sequence, and in that case I was able to use Win32::GuiTest to move the mouse pointer into the edit box, sent a mouse left click and then send the text - horrible in concept but worked perfectly in practice. You need to watch for screen resolution differences and calculate the mouse coordinates on the fly, but it can be done if the window always appears at the same position.

--
I'd like to be able to assign to an luser


Comment on Re: Help needed for using Win32::Setupsup module
Re: Re: Help needed for using Win32::Setupsup module
by pijush (Scribe) on Nov 21, 2003 at 17:43 UTC
    I have checked the window which appeared after running "SETUP.EXE" and the cursor is focused on desired TEXTBOX. Actually it is a password field and when you type then it appears in "*****". But when I am sending keystorke using SendKey method it is not going in the TEXTFIELD. I have also examined when I manually type from keyboard at that point (i.e. when the window appears after running "SETUP.EXE") and it is going in the text field. Any pointers? TIA -Pijush
      Hi Monks, Thanks for reply. I have cracked the problem. Albannach, you were quite right. I have written code for sending "TAB" before sending text field value and positioning the cursor at desired test box and then send the text value and it is working fine. But I am not sure why it is not sending text value at the first chance although the cursor was in the appropriate text box. Thanks again. TIA -Pijush

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://308958]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2014-09-19 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (137 votes), past polls