I'm starting to learn AHK powerful tool.
What I need is to run from AHK script some function into Matlab
environment.
I have found macro generator of Titan and try to record my action into Matlab window, namely in my case I typed "helpdlg" command and pressed <Enter>. Normally Matlab opens small window with an information.
Macrogenerator produced following text:
Code: Select all
#NoEnv
CoordMode, Mouse, Relative
SetMouseDelay, 2
IfWinNotActive, MATLAB R2014a ahk_class SunAwtFrame, , WinActivate, MATLAB R2014a ahk_class SunAwtFrame
WinWaitActive, MATLAB R2014a ahk_class SunAwtFrame
Sleep, 10998
IfWinNotActive, Help Dialog ahk_class SunAwtFrame, , WinActivate, Help Dialog ahk_class SunAwtFrame
WinWaitActive, Help Dialog ahk_class SunAwtFrame
Sleep, 3931
IfWinNotActive, MATLAB R2014a ahk_class SunAwtFrame, , WinActivate, MATLAB R2014a ahk_class SunAwtFrame
WinWaitActive, MATLAB R2014a ahk_class SunAwtFrame
Sleep, 3292
MouseMove, 117, 26
Send, {VK01 up}
ExitApp
F12::ExitApp
Thanks for constructive ideas
Valest