AutoHotkey Community

It is currently May 27th, 2012, 9:39 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 21st, 2006, 12:07 am 
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. :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2006, 5:29 am 
Offline

Joined: June 6th, 2005, 11:35 pm
Posts: 179
Location: Northern Virginia
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2006, 8:38 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Maestr0, migz99, tomoe_uehara and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group