Manual run works but not through using a script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
deets
Posts: 43
Joined: 29 Mar 2022, 02:00

Manual run works but not through using a script

16 Mar 2024, 22:49

Code: Select all

::removebloat::
RunWait, adb shell pm uninstall --user 0 com.android.browser
MsgBox, Applications uninstalled successfully!
return
I tried running as admin and without, and it just shows this error:

Code: Select all

Error: Failed attempt to launch program or document:
Action: <adb shell pm uninstall --user 0 com.android.browser>
Params: < >
Specifically: The system cannot find the file specified.
any idea why?
Rohwedder
Posts: 7656
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Manual run works but not through using a script

17 Mar 2024, 02:19

Hallo,
#1 If the program/document name or a parameter contains spaces, it is safest to enclose it in double quotes.
#2 see: https://www.autohotkey.com/docs/v1/lib/Run.htm#Interpretation_of_Target
deets
Posts: 43
Joined: 29 Mar 2022, 02:00

Re: Manual run works but not through using a script

28 Mar 2024, 19:14

Rohwedder wrote:
17 Mar 2024, 02:19
Hallo,
#1 If the program/document name or a parameter contains spaces, it is safest to enclose it in double quotes.
#2 see: https://www.autohotkey.com/docs/v1/lib/Run.htm#Interpretation_of_Target
the interesting part is why does the exact same code not run properly on 1 PC but does so without errors on another PC?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 275 guests