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 

ControlClick not working on IE ClassNN combo box

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



Joined: 18 Sep 2004
Posts: 60

PostPosted: Fri Mar 11, 2005 6:34 pm    Post subject: ControlClick not working on IE ClassNN combo box Reply with quote

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
View user's profile Send private message
Serenity



Joined: 08 Nov 2004
Posts: 1025

PostPosted: Fri Mar 11, 2005 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Mar 11, 2005 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Serenity



Joined: 08 Nov 2004
Posts: 1025

PostPosted: Fri Mar 11, 2005 7:42 pm    Post subject: Reply with quote

Jonny, my handle is Serenity. Razz
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Mar 11, 2005 8:39 pm    Post subject: Reply with quote

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. Rolling Eyes
Back to top
View user's profile Send private message
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