Any Ideas Anyone?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
pootler
Posts: 9
Joined: 19 Jan 2018, 17:18

Any Ideas Anyone?

22 Jan 2018, 12:49

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
Attachments
centrafuse 3.PNG
centrafuse 3.PNG (63.29 KiB) Viewed 1186 times
centrafuse2.PNG
centrafuse2.PNG (67.09 KiB) Viewed 1186 times
centrafuse1.PNG
centrafuse1.PNG (54.94 KiB) Viewed 1186 times
centrafuse 3.PNG
centrafuse 3.PNG (63.29 KiB) Viewed 1186 times
centrafuse2.PNG
centrafuse2.PNG (67.09 KiB) Viewed 1186 times
centrafuse1.PNG
centrafuse1.PNG (54.94 KiB) Viewed 1186 times
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: Any Ideas Anyone?

25 Jan 2018, 05:56

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).
Einfach nur ein toller Typ. :mrgreen:
User avatar
Off Topic
Posts: 43
Joined: 07 Oct 2017, 20:57

Re: Any Ideas Anyone?

25 Jan 2018, 10:27

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.
pootler
Posts: 9
Joined: 19 Jan 2018, 17:18

Re: Any Ideas Anyone?

25 Jan 2018, 19:11

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. :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Ineedhelplz, Spawnova and 237 guests