AutoLauncher

Post your working scripts, libraries and tools for AHK v1.1 and older
Osi
Posts: 7
Joined: 18 Sep 2016, 06:02
Contact:

AutoLauncher

Post by Osi » 10 Oct 2016, 03:18

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:
Thank u,

Osi, :wave:

Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: AutoLauncher

Post by Helgef » 11 Oct 2016, 03:58

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.

Osi
Posts: 7
Joined: 18 Sep 2016, 06:02
Contact:

Re: AutoLauncher

Post by Osi » 12 Oct 2016, 01:42

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.
Thank u,

Osi, :wave:

ln7o
Posts: 20
Joined: 01 Dec 2015, 22:12

Re: AutoLauncher

Post by ln7o » 17 Aug 2022, 12:43

How to make this working normaly with unicode text script. My langue is VietNamese, all text display gone wrong.
Sorry for my bad English

gregster
Posts: 8916
Joined: 30 Sep 2013, 06:48

Re: AutoLauncher

Post by gregster » 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

ln7o
Posts: 20
Joined: 01 Dec 2015, 22:12

Re: AutoLauncher

Post by ln7o » 17 Aug 2022, 13:37

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:

gregster
Posts: 8916
Joined: 30 Sep 2013, 06:48

Re: AutoLauncher

Post by gregster » 17 Aug 2022, 13:41

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.

ln7o
Posts: 20
Joined: 01 Dec 2015, 22:12

Re: AutoLauncher

Post by ln7o » 17 Aug 2022, 13:45

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

gregster
Posts: 8916
Joined: 30 Sep 2013, 06:48

Re: AutoLauncher

Post by gregster » 17 Aug 2022, 14:03

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.

User avatar
flyingDman
Posts: 2791
Joined: 29 Sep 2013, 19:01

Re: AutoLauncher

Post by flyingDman » 17 Aug 2022, 14:25

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.
14.3 & 1.3.7

Post Reply

Return to “Scripts and Functions (v1)”