Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command run with MS app return an error #9

Open
LittleVaaty opened this issue Apr 30, 2024 · 6 comments · Fixed by #13
Open

Command run with MS app return an error #9

LittleVaaty opened this issue Apr 30, 2024 · 6 comments · Fixed by #13
Assignees
Labels
bug Something isn't working

Comments

@LittleVaaty
Copy link
Owner

Trying to run this command. Outlook opens but on the same desktop as I'm running the command on, Desktop 3.

C:\temp\Downloads>VDesk run --no-switch --on 1 "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE"
<3>VDesk.Commands.RunCommand[0] Element not found. (0x8002802B (TYPE_E_ELEMENTNOTFOUND))
Windows version: 10.0.22621.3447

@LittleVaaty LittleVaaty added the bug Something isn't working label Apr 30, 2024
@LittleVaaty LittleVaaty self-assigned this Apr 30, 2024
@cruzer619
Copy link

Ok good, i will close this issue and open a new one for MS App See #9

also I did add its path to my environmental variables the error message went away.. but still didn't run app in desktop 1

@DoS007
Copy link
Contributor

DoS007 commented May 1, 2024

Probably has something to do with this Process.Start from System.Diagnostics, relating doc is here.

Maybe this or that migh help. So you could try:
VDesk run --no-switch --on 1 "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE" -a "--app" or
VDesk run --no-switch --on 1 "shell:AppsFolder\4DF9E0F8.Netflix_mcm4njqhnhss8!Netflix.App" where Netflix should be replaces with the correct text for Outlook.

Maybe also have something to do with UseShellExecute : info.UseShellExecute = false; or info.UseShellExecute = true;.

Just ideas.

@LittleVaaty
Copy link
Owner Author

After some testing it aper that the app is to slow to start and when vdesk try to move the window in the correct desktop, the window does't exit.
I will add a parameter to force vdesk to wait the choosen amount of time after the start of the process

@cruzer619
Copy link

going to assume -w switch will work on next revision.. as current vdesk doesn't recognize the switch.

@DoS007
Copy link
Contributor

DoS007 commented May 3, 2024

@cruzer619 Yeah, wait for next release.

@cruzer619
Copy link

cruzer619 commented Aug 29, 2024

@LittleVaaty just installed latest release.. and no-switch is not working. ran on desktop 3 and outlook runs on desktop 3 instead of desktop 1. Removing the no-switch does run on desktop 1.

vdesk run --on 1 --no-switch -w 1000 "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE"

Also making wait time longer then 1000 gets this error:

<3>VDesk.Commands.RunCommand[0] Element not found. (0x8002802B (TYPE_E_ELEMENTNOTFOUND))
Windows version: 10.0.22621.4037

@LittleVaaty LittleVaaty reopened this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants