You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using your library and i love it!!!!
I also build something, which sets up windows on the right desktops when i start up the pc. But it is not really relaiable and taks some time an i wanted to ask if there is a better possibility to for example start the notepad directly on desktop 3. At the moment i open the app and push it than to the desktop:
I don't know of a way to start a process directly on a specific VD
I don't know of a way to move a Hidden window to another VD, because Hidden windows don't have a pView ?
but this should be more reliable:
start notepad.ahk:
#NoEnv; Recommended for performance and compatibility with future AutoHotkey releases.#SingleInstance forceListLinesOffSetBatchLines-1SendModeInput ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.#KeyHistory 0#WinActivateForceProcess, Priority,, H
SetWinDelay-1SetControlDelay-1#Include%A_LineFile%\..\..\VD.ahkRun notepad.exe, , ,OutputVarPID
loop {
found:=VD._tryGetValidWindow("ahk_pid " OutputVarPID)
if (found) {
break
}
Sleep10
}
VD.MoveWindowToDesktopNum("ahk_pid " OutputVarPID, 3)
returnf3::Exitapp
i am using your library and i love it!!!!
I also build something, which sets up windows on the right desktops when i start up the pc. But it is not really relaiable and taks some time an i wanted to ask if there is a better possibility to for example start the notepad directly on desktop 3. At the moment i open the app and push it than to the desktop:
Run,notepad.exe , , Min, OutputVarPID WinWait ahk_pid %OutputVarPID% VD.MoveWindowToDesktopNum("A",3)
Would be happy about some help
The text was updated successfully, but these errors were encountered: