Autohotkey mouse becomes inactive Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
qwertytam
Posts: 2
Joined: 17 Sep 2018, 09:39

Autohotkey mouse becomes inactive

17 Sep 2018, 09:46

Hi, I'm just starting with AHK and looking to automate some PC performance monitoring with GPU-Z and Resource Monitor. I'm trying to write a simple script that starts the data logging process for each of these programs. I haven't completed the script yet, as I cannot get the mouse to do anything once I've activated the GPU-Z window. There is probably something pretty simple I'm missing, but I cannot work it out.

Code: Select all

#NoEnv
#Warn
SendMode Input
SetWorkingDir %A_ScriptDir%

^F2::

If WinExist("ahk_class #32770")
{
    MouseMove 490, 90, 100 ;Mouse moves all ok first time script is run
    WinActivate
    ControlClick Button17 ;Click the "Log to file" button --> doesn't work
}
Else
{
    ;Blank for now
}

If WinExist("ahk_class MMCMainFrame")
{
    MouseMove 100, 100, 100, R ;Mouse does not move at all
    WinActivate
}
Else
{
    ;Blank for now
}

return
qwertytam
Posts: 2
Joined: 17 Sep 2018, 09:39

Re: Autohotkey mouse becomes inactive  Topic is solved

18 Sep 2018, 17:24

Turns out it was a permissions / security issue. Running the script as Administrator solved it.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, Google [Bot], wineguy and 365 guests