Page 1 of 1

AutoLauncher

Posted: 10 Oct 2016, 03:18
by Osi
Hello,

I will present to you : AutoLauncher.ahk

The idea behind this is simple, you can execute an autohotkey script which is upload on Internet.
With this you can update your script and the users can have the updates instantaneously.

The project is on GitHub at this page : https://github.com/CaptainOsi/AutoLauncher
(Unfortunately, i can't share the script in this place because this will be contains too many characters. :( )

And the .ahk script is on this webpage :
https://github.com/CaptainOsi/AutoLaunc ... uncher.ahk

First you have to upload your script on the internet.
Second, you can download the autolauncher.ahk file. And you just have to change the url by your url.
urlscript := "http://url"
by
urlscript := "http://your_url_that_contains_ur_script"
After, you can create an executable and distributing to your users. When you change the script which has uploaded, the users can have the updates.

Thank you for your comments.

Osi, :wave:

Re: AutoLauncher

Posted: 11 Oct 2016, 03:58
by Helgef
Your script was mentioned here. I'm sure your script isn't malicious, but for the sake of transparency, perhaps you should mention that an executable is embedded in the code, and explain why. If I misunderstood your code, I apologise.

Re: AutoLauncher

Posted: 12 Oct 2016, 01:42
by Osi
Hello, thank you for your reply.

The script includes an executable directly in the script (it's the autohotkey.exe file).
With this file you dont have to install autohotkey to execute a script.

You can do the same thing with the following function to downloading the file everything from internet:
UrlDownloadToFile, URL, Filename

But, i wanted to have a file which is always available.
It's for that reason that i add the dll directly into the script.

Re: AutoLauncher

Posted: 17 Aug 2022, 12:43
by ln7o
How to make this working normaly with unicode text script. My langue is VietNamese, all text display gone wrong.
Sorry for my bad English

Re: AutoLauncher

Posted: 17 Aug 2022, 12:46
by gregster
ln7o wrote:
17 Aug 2022, 12:43
How to make this working normaly with unicode text script. My langue is VietNamese, all text display gone wrong.
See https://www.autohotkey.com/docs/FAQ.htm#nonascii

Re: AutoLauncher

Posted: 17 Aug 2022, 13:37
by ln7o
gregster wrote:
17 Aug 2022, 12:46
ln7o wrote:
17 Aug 2022, 12:43
How to make this working normaly with unicode text script. My langue is VietNamese, all text display gone wrong.
See https://www.autohotkey.com/docs/FAQ.htm#nonascii
Can you explain more clearly by some eg:...,
my English so bad :? :? :? :facepalm: :facepalm: :facepalm:

Re: AutoLauncher

Posted: 17 Aug 2022, 13:41
by gregster
Make sure to save your scripts in UTF-8 with BOM (with byte order mark) encoding.
That's a setting you can find in most editors.

Re: AutoLauncher

Posted: 17 Aug 2022, 13:45
by ln7o
oh, i know to save file as unicode encoding (utf-8-bom). But with this Launcher, it directly load script from my pastebin.com. I dont know how to make script loaded with this autolauncher become to utf-8-bom format

Re: AutoLauncher

Posted: 17 Aug 2022, 14:03
by gregster
Perhaps it helps to use the *Pnnn option of the Fileread command with the right identifier, but tbh this thing is too murky for me - I won't run it.

Re: AutoLauncher

Posted: 17 Aug 2022, 14:25
by flyingDman
I had not seen this before. I don't get it. This huge script contains a copy of autohotkey.exe, but to run it you need autohotkey.exe in the first place. :crazy: If the idea is to download a script and then execute it, there are better ways to do this.