When I refer to "Focus", I am mean the Active Window (I'm not sure of the proper terminology).
When this code runs, the Focus goes to somewhere other than "The DownLoader".
When complete, I want the Focus to be on "The DownLoader".
Can someone explain how this is done?
Code:
#M::
IfWinExist MetaStock Professional
{
MsgBox,0,,MetaStock is Running
IfWinExist The DownLoader
{
MsgBox,0,,The DownLoader is running
}
else
{
Run C:\Program Files\Equis\The DownLoader\Dlwin.exe, C:\Program Files\Equis\The DownLoader\
Return
}
}
else
{
Run C:\Program Files\Equis\MetaStock\Mswin.exe,,max
WinWaitActive MetaStock Professional,,5
Run C:\Program Files\Equis\The DownLoader\Dlwin.exe, C:\Program Files\Equis\The DownLoader\
WinWaitActive The DownLoader,,50
; MsgBox,0,,Activating the Downloader
WinActivate The DownLoader
Return
}
[ Moderator!: Applied [Code] tags ]