| View previous topic :: View next topic |
| Author |
Message |
SAbboushi
Joined: 18 Sep 2004 Posts: 60
|
Posted: Fri Mar 11, 2005 6:34 pm Post subject: ControlClick not working on IE ClassNN combo box |
|
|
Hi-
Using Window Spy, a combo box on a website shows:
ClassNN: Internet Explorer_TridentCmboBx2
I want to left click on the combo box. With the window active and using a hotkey, this seems to fail:
ControlClick, Internet Explorer_TridentCmboBx2
The AHK log shows the command was executed, but the combo box does not display the selections as if it were clicked on.
Can anyone please help me? |
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 1025
|
Posted: Fri Mar 11, 2005 7:18 pm Post subject: |
|
|
| Code: | | ControlClick [, Control-or-Pos, WinTitle, WinText, WhichButton, ClickCount, Options, ExcludeTitle, ExcludeText] |
You need to specify which mouse button/click count for this to work. _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Mar 11, 2005 7:29 pm Post subject: |
|
|
Actually, Seren, no you don't. The entire command is in brackets, meaning every parameter has a default value which will be used if none is specified.
In this case, you might want to try using the position of the click rather than the control name, as forms within web pages usually can't be used by the Control commands. |
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 1025
|
Posted: Fri Mar 11, 2005 7:42 pm Post subject: |
|
|
Jonny, my handle is Serenity.  _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Mar 11, 2005 8:39 pm Post subject: |
|
|
I shorten everyone's name. I can only remember a few I haven't; Titan, toralf, deguix, Chris, and Rajat, there may be a few more. If you don't like it, though, of course I won't continue using it.  |
|
| Back to top |
|
 |
|