 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
scouchman
Joined: 28 Apr 2004 Posts: 45
|
Posted: Mon Sep 11, 2006 11:42 pm Post subject: Detect IE Combo Box state |
|
|
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 |
|
 |
BoBo Guest
|
Posted: Tue Sep 12, 2006 5:20 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
scouchman
Joined: 28 Apr 2004 Posts: 45
|
Posted: Wed Sep 13, 2006 9:57 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|