ioa747 Posted January 22, 2023 Share Posted January 22, 2023 in the art of #include https://github.com/genius257/au3file/blob/main/main.au3 ;~ or Run(FileGetShortName(@AutoItExe) & " " & https://github.com/genius257/au3file/blob/main/main.au3 ) ;~ or Run(FileGetShortName(@AutoItExe) & " " & https://github.com/genius257/au3file/blob/main/main.au3 & " " & $Param) I know that I know nothing Link to comment Share on other sites More sharing options...
TimRude Posted January 22, 2023 Share Posted January 22, 2023 (edited) Your link doesn't actually point to a script file. It points to a github page displaying a script file embedded within the page's html. Gonna be kind of hard to get that to run in AutoIt. So it seems like you're either gonna need a way to parse that html page to extract the script contents from it, or you're gonna need a link that points directly to a script file. Then you might be able to accomplish something by downloading the script file to a temporary location on your computer and executing it from there. Edited January 22, 2023 by TimRude Link to comment Share on other sites More sharing options...
ioa747 Posted January 22, 2023 Author Share Posted January 22, 2023 you have right ;~ #include https://raw.githubusercontent.com/genius257/au3file/main/main.au3 ;~ ;or Run(FileGetShortName(@AutoItExe) & " " & https://raw.githubusercontent.com/genius257/au3file/main/main.au3 ) ;~ ;or Run(FileGetShortName(@AutoItExe) & " " & https://raw.githubusercontent.com/genius257/au3file/main/main.au3 & " " & $Param) that's what I had in mind I know that I know nothing Link to comment Share on other sites More sharing options...
ioa747 Posted January 22, 2023 Author Share Posted January 22, 2023 but also as an idea to have a Script on your server and the others to run it remotely like https://github.com/ChrisTitusTech/winutil does with .ps1 file in power shell I know that I know nothing Link to comment Share on other sites More sharing options...
ioa747 Posted January 22, 2023 Author Share Posted January 22, 2023 (edited) or how to use something like this in autoit [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/genius257/au3file/main/main.au3') Edited January 22, 2023 by ioa747 I know that I know nothing Link to comment Share on other sites More sharing options...
ioa747 Posted January 22, 2023 Author Share Posted January 22, 2023 I don't actually need it, Just food for thought Thanks !! SOLVE-SMART 1 I know that I know nothing Link to comment Share on other sites More sharing options...
SOLVE-SMART Posted January 22, 2023 Share Posted January 22, 2023 (edited) I don't think that would work in this way @ioa747. But I didn't try it because a common way of dealing with GitHub sources/repositories/projects is to "Fork" the repo and then work on the duplication on your local side. But it's indeed an interesting question in my opinion. In case only one file of an external ressource is necessary it might working. When further dependencies are given within this single source files, I guess it wouldn't work. That's why things like npm or other package manager will give you the source of other repos also locally. When I remember correct, there is already a package manager for AutoIt files available. Maybe Au3Pm or something similar. If you are interested in, you could check the collection list of guys who host UDFs and other AutoIt projects on GitHub. I'm almost sure, a package manager project is there too. Best regards Sven Update: Yes it's au3pm by @genius257 here 😀 . Edited January 22, 2023 by SOLVE-SMART genius257 and ioa747 2 Stay innovative! Spoiler 🌍 Au3Forums 🎲 AutoIt (en) Cheat Sheet 📊 AutoIt limits/defaults 💎 Code Katas: [...] (comming soon) 🎭 Collection of GitHub users with AutoIt projects 🐞 False-Positives 🔮 Me on GitHub 💬 Opinion about new forum sub category 📑 UDF wiki list ✂ VSCode-AutoItSnippets 📑 WebDriver FAQs 👨🏫 WebDriver Tutorial (coming soon) Link to comment Share on other sites More sharing options...
Trong Posted January 22, 2023 Share Posted January 22, 2023 Simply: download and run it!The concept of remote scripting is that the program does not run on your machine, but runs from a computer on the network like a web server! ioa747 1 Regards, Link to comment Share on other sites More sharing options...
genius257 Posted January 22, 2023 Share Posted January 22, 2023 (edited) Hi @ioa747 The official AutoIt3 executable requires a file on disk to run. As far as i know it is not possible to make it run a stream of data, if it was you could download it in ram, and pipe it to the executable. So you either download all the files before running, somewhere (temporary files directory example) or you try to find an unofficial working AutoIt3 parser and executor. Edited January 22, 2023 by genius257 SOLVE-SMART and ioa747 2 My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
ioa747 Posted January 23, 2023 Author Share Posted January 23, 2023 (edited) @Trong you have right about the concept of remote scripting. Wrong expression! @genius257I was impressed, I took a link example it was yours, @SOLVE-SMART suggested a program which was also yours, and now you answer to the thread !! you look like a soul of AutoIt3 Thank you all for explanation ! On 1/22/2023 at 8:27 AM, ioa747 said: I don't actually need it, Just food for thought Edited January 23, 2023 by ioa747 genius257 1 I know that I know nothing Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now