Please help, the command %ComSpec% is not working on AnyDesk/Team Viewer
Code: Select all
^k::
Run, *runas %ComSpec%
Please help, the command %ComSpec% is not working on AnyDesk/Team Viewer
Code: Select all
^k::
Run, *runas %ComSpec%
You are right we can't get resolve it, without having 2pc (host & client), admin command attached
Code: Select all
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
if not A_IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; (A_AhkPath is usually optional if the script has the .ahk extension.) You would typically check first.
^k::
Run, *runas %ComSpec%
return
Code: Select all
#i::
Run, https://www.google.com/
return
Code: Select all
#SingleInstance Force
SetWorkingDir `%A_ScriptDir`%
if not A_IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; (A_AhkPath is usually optional if the script has the .ahk extension.) You would typically check first.
^t::
Run, *runas %ComSpec%
return
The script is installed on my PC, it is running well on my PC, but it is not running on client PC (via AnyDesk/TeamViewer),
swagfag wrote: ↑25 Mar 2023, 16:28if the ahk script isrunningis an ahk file that is physically present on YOUR machine and that ahk script file has been launched by an ahk interpreter (AutoHotkey(A32|U32|U64)?\.exe) that is also physically present on YOUR machine, then obviously u wont be able to Run anything on the REMOTE machine
if the ahk script isrunningis an ahk file that is physically present on the REMOTE machine and that ahk script file has been launched by an ahk interpreter (AutoHotkey(A32|U32|U64)?\.exe) that is also physically present on that REMOTE machine, check first if the hotkey is even being triggered at all. if the hotkey's subroutine is being triggered, however Run is failing(for whateeeeeeeeever reasons), then shove that Run command inside a try-catch block and see what exception is thrown. then u would know what problem to troubleshoot next
Code: Select all
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
if not A_IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; (A_AhkPath is usually optional if the script has the .ahk extension.) You would typically check first.
^l::
Run, *runas %ComSpec%
return
Please do not post the same question in multiple threads. Thank you. I will let the new thread stand.vikasgandhi wrote: ↑ I need forum help, a script has been created, which is not working, on AnyDesk/TeamViewer,
The function of the script is, to open the "Elevated Command Prompt" window, with the help of AutoHotKey, when we access the customer's pc(computer) from AnyDesk, this script will not work.
Code: Select all
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
if not A_IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; (A_AhkPath is usually optional if the script has the .ahk extension.) You would typically check first.
^l::
Run, *runas %ComSpec%
return
Hello,
Code: Select all
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
if not A_IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; (A_AhkPath is usually optional if the script has the .ahk extension.) You would typically check first.
^l::
Run, *runas %ComSpec%
return
I am a freelancer and provide support to my clients.
what you say is good but i am not getting the solution