| View previous topic :: View next topic |
| Author |
Message |
Elevator_Hazard Guest
|
Posted: Sat Oct 21, 2006 12:07 am Post subject: How do you select an edit box in a GUI script for sending? |
|
|
I would like to send a script into an edit field of a GUI through a script, which wouldn't be a problem but I need to know how to "select" an edit field. (Like when you click on an edit field it is "selected".
Please help me out.  |
|
| Back to top |
|
 |
AiKscroll
Joined: 06 Jun 2005 Posts: 179 Location: Northern Virginia
|
Posted: Sat Oct 21, 2006 5:29 am Post subject: |
|
|
If this GUI is your own GUI (created with Gui, Add...) then you can use the GuiControl cmd. If its a window from another program then you would have to do something like this:
| Code: |
ControlSetText, CLASSNN, NewText, WinTitle
|
since it seems you just want to change the text in an edit field _________________ _AiK |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sat Oct 21, 2006 8:38 am Post subject: |
|
|
Use the Window Spy in the context menu of a running script to get info on control, like its classNN.
ControlSetText is pertinent. In the toolbox, you have also ControlSetFocus and ControlSend. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|