Window ignores AHK Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
canisdibellum
Posts: 47
Joined: 09 Oct 2014, 11:44

Window ignores AHK

28 Nov 2018, 19:29

I'm attempting to automate a program called Ots Studio. WindowSpy recognizes there is a window, gives me the title and size of it (but no controls within) and AHK will even give me the ahk_id of it. But no commands effect it! I can't send a simple ^w, I can't minimize it, close it, nothing I try works!

I've even tried just a generic Send (as well as SendInvite and SendEvent) when the window is just active and nothing! Zip! Nada!

Listed all windows with DetectHiddenWindows On and it finds the main studio window but nothing else (I was thinking maybe there was a hidden overlay or something)

Is there a way to force the computer to recognize AHK sends as keyboard commands that this thing can't ignore?
User avatar
gwarble
Posts: 524
Joined: 30 Sep 2013, 15:01

Re: Window ignores AHK  Topic is solved

28 Nov 2018, 19:48

Try running your script as administrator

A_IsAdmin
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .
canisdibellum
Posts: 47
Joined: 09 Oct 2014, 11:44

Re: Window ignores AHK

28 Nov 2018, 19:59

THANK YOU!!!

I added:

Code: Select all

if not A_IsAdmin
	Run *RunAs "%A_AhkPath%" "%A_ScriptFullPath%"
And it works now!!!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: wilkster and 323 guests