| View previous topic :: View next topic |
| Author |
Message |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Tue Nov 16, 2004 1:23 am Post subject: ControlClick Pos Not Working? |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Nov 16, 2004 2:05 am Post subject: |
|
|
| 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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Tue Nov 16, 2004 11:36 am Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Nov 16, 2004 12:51 pm Post subject: |
|
|
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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Tue Nov 16, 2004 3:12 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Nov 16, 2004 9:03 pm Post subject: |
|
|
| 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 |
|
 |
|