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 

Detect IE Combo Box state

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



Joined: 28 Apr 2004
Posts: 45

PostPosted: Mon Sep 11, 2006 11:42 pm    Post subject: Detect IE Combo Box state Reply with quote

Is there a way to detect when an IE ComboBox has closed up?

I am working with a web page that I need to enter data into an Edit box, but I cannot detect the Edit boxes with WindowSpy or WinSpector Spy. The only thing I can detect is the Combo boxes. (and yeah, tried and failed with a few of the javascript optioned mentioned here; it is an insane company webpage). So I am trying to use the Combo boxes to set the location, then Tab to the Edit box I need.

And the weird way it tabs through the page, I cannot use ControlFocus: the page doesn't recognize that the tab order has changed. I have to use ControlClick.

But with ControlClick, which opens the ComboBox, there is a processor hit of some kind that can delay keystroke interaction with the page. It seems to happen when it tries to open that Combo Box. So when I tab to the edit field I need to type text in, it doesn't always fire. Right now I'm using a sleep command which is about 80% accurate (sometimes the processor lockup can be long), so I was hoping, that if there is a way to detect that the combo box is expanded or no longer expanded before sending the Tab (or multiple tabs) I could resolve the issue as accurately as possible.

Here's the code I'm working with now:
Code:
#z::
ControlClick, Internet Explorer_TridentCmboBx4, Create New Incident
Send, {Enter}
Sleep, 500
Send, {TAB}Hello Edit Box!
Return

_________________
Scott F Couchman
Back to top
View user's profile Send private message AIM Address MSN Messenger
BoBo
Guest





PostPosted: Tue Sep 12, 2006 5:20 am    Post subject: Reply with quote

Code:
#z::
ControlClick, Internet Explorer_TridentCmboBx4, Create New Incident
ControlSetText, Internet Explorer_TridentCmboBx4, {TAB}Hello Edit Box!, Create New Incident
Return
TBH, doubt it works Sad
Back to top
scouchman



Joined: 28 Apr 2004
Posts: 45

PostPosted: Wed Sep 13, 2006 9:57 pm    Post subject: Reply with quote

Darn, no luck.

I like that, though, I'll file that bit o' code away for something else. Never thought to use controls directly with tabs for entering data.
_________________
Scott F Couchman
Back to top
View user's profile Send private message AIM Address MSN Messenger
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