Hello, thanks for a really helpful program. My first post here.
run exe with ctrl + shift
^+Media_Play_Pause::Run C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\windbg.exe
thats how I start the exe, but its window is hidden below the active app, and I have to click it in the taskbar.
edit: I see now that it is started minimized, not simply as some background window, but not always, sometimes it just doesn't have the focus.
Can I change something in the script to make it appear as expected?
Also, if the program is already running, it is not set as a foreground window, as I would expect.
If I remove the ctrl+shift (^+) then it works OK.... so, is that a bug or a feature?
BTW, It works the same with or without the standard header:
#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.
I use version 1.1.26.01, tried downloading the current version, but chrome warned about viruses so I bailed.
Runned program not visible
Re: Runned program not visible
BUMP, once.
-
- Posts: 27
- Joined: 08 Aug 2018, 07:27
Re: Runned program not visible
Code: Select all
Run, C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\windbg.exe
WinWait, ahk_exe C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\windbg.exe , , 30
if ErrorLevel
{
MsgBox, WinWait timed out.
return
}
else
WinRestore
return
Re: Runned program not visible
Thanks for replying.
But why is winrestore needed only if the app is started with ctrl-shift (^+) ? Thats why I say it is a bug.
Using several media keys, I start 6 apps in total, and using that code for every app would be crowded, no?
Let me repeat:
If I remove the ctrl+shift (^+) then it works OK.
I see now that it is started minimized, not simply as some background window, but not always, sometimes it just doesn't have the focus.
Therefore, winrestore won't do anything, because it was already in restored state.
But why is winrestore needed only if the app is started with ctrl-shift (^+) ? Thats why I say it is a bug.
Using several media keys, I start 6 apps in total, and using that code for every app would be crowded, no?
Let me repeat:
If I remove the ctrl+shift (^+) then it works OK.
I see now that it is started minimized, not simply as some background window, but not always, sometimes it just doesn't have the focus.
Therefore, winrestore won't do anything, because it was already in restored state.
Who is online
Users browsing this forum: LeafyWater and 144 guests