AnyDesk automation

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
montalban13
Posts: 1
Joined: 24 May 2023, 10:12

AnyDesk automation

Post by montalban13 » 24 May 2023, 10:36

Hi!
I'm trying to automate some AnyDesk remote access. This is the Command from AnyDesk Documentation:

Code: Select all

echo <password> | anydesk.exe <ID/Alias> --with-password
With this code:

Code: Select all

id := "727850978"
password := "password"

stringToRun := "echo " . password . " | C:\Program Files (x86)\AnyDesk\AnyDesk.exe " . id . " --with-password"
Run(stringToRun,,,&pid)
I'm getting this error: https://ibb.co/rfqZRDc
If I remove all characters before 'echo' and the password it runs ok.
Anyone knows how to pass that echo instrucion to AnyDesk command?

Thanks in advance!

Return to “Ask for Help (v2)”