Windows 10 Pro 22H2 64 bit, AutoHotkey Unicode 32 bit 1.1.34.3, EZViz Studio Client 2.14.4.2282
I'm trying to automate a process inside EZViz Studio, which is a program for displaying video from EZViz brand surveillance cameras plus manipulating some of the capabilities of the cameras.
For this process, it does not respond to keyboard commands, so I need to generate a series of mousemoves and mouse clicks.
My present script is this:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance Force
CoordMode, Mouse, Window
Browser_Home::
mousemove 132, 681, 5
WinActivate, ahk_class SciTEWindow
Click, Right
mousemove 202, 839, 5
Mouseclick, Left
mousemove 17, 935, 5
Mouseclick, Left
mousemove 161, 930, 5
Mouseclick, Left
mousemove 625, 960, 5
Mouseclick, Left
return
It almost works. If EZViz is not visible on screen, the cursor moves as expected.
I originally tried to run this with EZViz in fullscreen mode. Pressing the button produced nothing. I tried a number of different buttons. None worked. After a lot of thrashing I discovered that having EZViz in full screen killed the AHK hotkey. With EZViz minimized the button would work fine, multiple times. Restore EZViz to fullscreen and then minimize it again. The button no longer works.
OK, I try to work with EZViz at a reduced size. Changes all the coordinates, of course.
I tried approximating fullscreen by stretching. Nope, at some point it kills the button again.
OK, reduced size screen. Not touching either top or bottom. EZViz visible. Press button and cursor moves. Other than that, nothing happens.
I reduce the script to simply move to the first position and right click. It moves but nothing happens. I originally used mouseclick, right. I changed to click, right. No change. I added WinActivate. No change.
Once AHK has moved the cursor to the spot, if I hit the right click button, the menu opens properly. But it does not open under AHK control.
Can anyone suggest a way to make this work?
-----Paul------