i am trying to run a powershell script from within autohotkey..because the script has json data, the script is formatted weirdly to escape " (double quotes)...but i guess autohotkey also skips characters bcoz escaping i use for the powershell script and is a big mess...i hope somebody can help me with the script to fix it
Code: Select all
ControlGetText, DLink, Edit1, Download File Info ahk_class #32770 ahk_exe IDMan.exe
ControlGetText, Lname, Edit4, Download File Info ahk_class #32770 ahk_exe IDMan.exe
PS = aria2p call addUri -J '[[\"%DLink%\"],{\"out\": \"%Lname%\"}]'
Clipboard := PS
Runwait Powershell.exe -noexit -Command "%PS%"
if the script is run as %PS% i get an error....but if i paste the script copied into the clipboard and run it manually it runs jus fine