launch program in specific virtual desktop ... using Dllcall()?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
zcw1030
Posts: 34
Joined: 03 Mar 2020, 04:09

launch program in specific virtual desktop ... using Dllcall()?

01 Sep 2020, 00:28

Hi, need some help here, much appreciated.

is it possible to launch a program in specific virtual desktop.

for example, i hope to launch Spotify in the second virtual desktop on my windows 10 pc.

Thanks and stay safe!
Last edited by BoBo on 02 Sep 2020, 03:31, edited 1 time in total.
Reason: Concatenated '... using Dllcall()?' to the subject line.
Franktic
Posts: 14
Joined: 08 Oct 2018, 22:35

Re: launch program in specific virtual desktop

01 Sep 2020, 04:13

To create a new virtual windows :
send #^d

to move between virtual windows:

send #^{right}

send #^{left}

I use these combinations to create a new virtual window then open AutoGUi and the help file or my notepad so I have development environment ready.

Hope this helps.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: launch program in specific virtual desktop ... using Dllcall()?

01 Sep 2020, 16:25

This looks really promising: https://docs.microsoft.com/de-de/windows/win32/api/shobjidl_core/nn-shobjidl_core-ivirtualdesktopmanager ... if you know how to use/call it with AHK. :silent:

PS. I'll add ' ... using Dllcall()?' to your subject line to attract a view from an AHK [b|p]ro ;)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Skrell and 154 guests