AutoHotkey Community

It is currently May 27th, 2012, 11:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 9th, 2009, 9:08 pm 
Offline

Joined: July 20th, 2009, 9:49 pm
Posts: 6
Is it possible to have AHK do something when a particular GUI control loses focus? For example, I want to update a field based on the contents of another field, but only after someone is done entering something in it (i.e they tab out of that control or click another control).

Im aware of g-subs and I dont want to have that second field to be updated AS the user is entering something in the first field.

Im sure this has been answered someplace, but my ambiguous searches didnt pull up much.

Thanks a ton.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2009, 9:20 pm 
Take a look at IfWinNotActive & several other ways to accomplish this task.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2009, 9:25 pm 
Offline

Joined: July 20th, 2009, 9:49 pm
Posts: 6
The controls are all on the same window.

So for example I have a window that has text box 1 and text box 2. If I enter some text into "textbox1" and hit tab or click into the "textbox2" control, I want textbox2 to automatically be updated with something.

I hope this makes more sense.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2009, 9:39 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Have a look at this topic and see if any of the short scripts there can help you: GUI edit control.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, Yahoo [Bot] and 19 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