Please help to solve.
Many thanks.
Code: Select all
^5::
ControlSend, , {enter}, ahk_exe topgood.exe
Code: Select all
^5::
ControlSend, , {enter}, ahk_exe topgood.exe
Code: Select all
^5::
ControlSend, , {enter}, ahk_exe notepad.exe
Return
Code: Select all
#SingleInstance, Force
If !A_IsAdmin
Try Run *RunAs "%A_ScriptFullPath%"
^5::
WinActivate, ahk_exe notepad.exe
ControlSend, Edit1, {enter}, ahk_exe notepad.exe
Return
Code: Select all
#SingleInstance, Force
If !A_IsAdmin
Try Run *RunAs "%A_ScriptFullPath%"
^5::
WinActivate, ahk_exe topgood.exe
ControlSend, Edit1, {enter}, ahk_exe topgood.exe
Return
Code: Select all
^5::
Control, EditPaste, `r`n, Edit1, ahk_exe topgood.exe
Return
In order for people to help you, for your part, it's best to provide as much information as possible. Looking at this, I (and I'm sure others) have no idea about what topgood is. Maybe you can provide a screenshot of the program and your attempt? Did you try to use WindowSpy (or such similar programs) to get information about the window you are automating (maybe screenshot that too)? Send with WinExist()/WinActive() might be a little better. Just a few suggestions, if you still can't get it to work.
Code: Select all
^5::
WinActive, ahk_exe notepad.exe
ControlSend, , {enter}, ahk_exe notepad.exe
Return