SetTitleMatchMode,2 F9:: { ControlSend,,T,Nox Sleep, 100 ControlSend,,F,Nox return }
ControlSend Stopped work
A few things to check:
1) Are you sure you have reloaded your script after saving it in your editor?
2) Are you editing the correct script? Sometimes people copy and paste a script to a new location, edit one copy, but launch the old one.
3) Do you have any other scripts running at the same time? Try suspending/pausing/exiting those and seeing if the problem with this controlsend script persists.
4) Has the Nox App Player been updated on your system between the time the script worked and when it didn't?
So, ended every autohotkey process that was open, created a new Autohotkey script on desktop, and the code is just this:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. SetTitleMatchMode,2 SetKeyDelay, 2 F9:: { ControlSend,,t, Nox return }
The first 4 lines were automatic generated.
Neither the system or program were updated.
The script is running on adimin mode.
But i can ControlSend to the notepad, but i cant to the Nox.
When i try press the bind F9 the lines are executed but any bind press is show on key history.
On saturday the code was running, i went to sleep. On sunday add a few functions them the script stoped, and now NO SCRIPT can ControlSend to the Nox.
There is any other way to send key press to an inactive window?
Well, using the window spy i saw what class was the window using, i can do WinMinimize and ControlClick, but i cant use either ControlSend or PostMessage.
This work
SetTitleMatchMode,2 F1:: { ControlClick,x100 y200, ahk_class Qt5QWindowIcon return }
but when i try
SetTitleMatchMode,2 F2:: { ControlSend,,L,ahk_class Qt5QWindowIcon return }
Nothing happens...
Anyone have any ideas?
Thanks in advance.