I am using an mce remote to control this software.
From the pictures you can see , when I use this software at its opening screen, then my script ( Media_Next:: Click, 745,50 ) clicks the correct part of the screen
i.e the 'next track/previous track' buttons.
Everything works fine- until I then call up one of the programs, e.g DigiRx ( a DAB radio program )
When thatprogram embeds into the centre part of the screen, as you can see, the mouse moves down onto ( what I am guessing) is the 'active' window.
Same when i click the 'Music' program. ( haven't got nav sorted yet )
NO amount of further script running will get the mouse back, UNLESS I select the opening screen again.
I think that things go wrong when the focus falls to the windows that are embedded?
How can I make sure the mouse clicks at the same point ( focused or not) every time?
Many Thanks
pootler
Any Ideas Anyone?
Any Ideas Anyone?
- Attachments
-
- centrafuse 3.PNG (63.29 KiB) Viewed 1223 times
-
- centrafuse2.PNG (67.09 KiB) Viewed 1223 times
-
- centrafuse1.PNG (54.94 KiB) Viewed 1223 times
-
- centrafuse 3.PNG (63.29 KiB) Viewed 1223 times
-
- centrafuse2.PNG (67.09 KiB) Viewed 1223 times
-
- centrafuse1.PNG (54.94 KiB) Viewed 1223 times
- divanebaba
- Posts: 816
- Joined: 20 Dec 2016, 03:53
- Location: Diaspora
Re: Any Ideas Anyone?
Try to use functions beginning with control like Control, ControlClick, ControlSend etc.
The name of the controls and buttons you should get with WindowSpy.ahk (inside your AutoHotKey-program-folder).
The name of the controls and buttons you should get with WindowSpy.ahk (inside your AutoHotKey-program-folder).
Einfach nur ein toller Typ.
Re: Any Ideas Anyone?
Hi pootler, you could change CoordMode from Window (relative) to Screen (absolute) so the origin of the coordinates will not shift or change according to the active window. You could also take screenshots of the buttons themselves and use ImageSearch so no coordinates would be needed, but I'd also recommend using ControlSend, ControlGet, ControlClick and etc. if possible.
Re: Any Ideas Anyone?
Many Thanks everyone.
Thanks to your advice, I have a simple script that works.
i.e. CoordMode, Mouse, Screen,
Click, 1200, 70.
- ignores any active windows and clicks in the same spot every time!
Thanks to a great forum.
Thanks to your advice, I have a simple script that works.
i.e. CoordMode, Mouse, Screen,
Click, 1200, 70.
- ignores any active windows and clicks in the same spot every time!
Thanks to a great forum.
Who is online
Users browsing this forum: balawi28 and 230 guests