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 Pos Not Working?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Tue Nov 16, 2004 1:23 am    Post subject: ControlClick Pos Not Working? Reply with quote

I'm using ControlClick, Pos to click in a certain window but it's not working. It's not clicking on a control, sometimes on a javascript though. It just doesn't click for some reason.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Nov 16, 2004 2:05 am    Post subject: Reply with quote

The window has to be designed to respond to click messages. What type of window is it? Does it work if you use ControlClick in the old mode?
Back to top
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Tue Nov 16, 2004 11:36 am    Post subject: Reply with quote

It's a webpage with javascript. What it does is that it doesn't click, it only clicks when I'm focused on the actual window and clicks wherever my mouse is (not at the set coords). I done ControlFocus and it didn't help, the old ControlClick done the same thing.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Nov 16, 2004 12:51 pm    Post subject: Reply with quote

Thanks for the info. The new method probably won't succeed where the old method failed. This is because all it does is search for a control at the indicated coordinates and click there, so the effect is the same as the old method.

The only difference is that if there is no control at the indicated coordinates, it will send the parent window the click. I suspect that most parent windows ignore it, but there are probably exceptions.
Back to top
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Tue Nov 16, 2004 3:12 pm    Post subject: Reply with quote

Thanks.
So is there anyway for me to send click/mouse events to a window when it's minimised or when I'm focused on another window?
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Nov 16, 2004 9:03 pm    Post subject: Reply with quote

If the app is designed to ignore events while it is minimized, there is probably no chance. If you haven't already, you could try using Rajat's SendMessage Tutorial to find out if further automation is possible via Send/PostMessage.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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