AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do you select an edit box in a GUI script for sending?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Elevator_Hazard
Guest





PostPosted: Sat Oct 21, 2006 12:07 am    Post subject: How do you select an edit box in a GUI script for sending? Reply with quote

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. Very Happy
Back to top
AiKscroll



Joined: 06 Jun 2005
Posts: 179
Location: Northern Virginia

PostPosted: Sat Oct 21, 2006 5:29 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sat Oct 21, 2006 8:38 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group