I use "portable" .exe and get error..

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
TestB
Posts: 8
Joined: 06 Apr 2018, 07:06

I use "portable" .exe and get error..

06 Apr 2018, 07:18

Hi,
I use portable Autohotkey and I get

"---------------------------
anyname.ahk
---------------------------
Error at line 46.

Line Text: e & r
Error: Duplicate hotkey.

The program will exit.
"

That means I can't Edit the script with Right Click..

Is it possible to open it somehow?


Thanks!
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: I use "portable" .exe and get error..

06 Apr 2018, 07:28

Right-click on the file and choose any text editor (for example, Notepad) to open it. Or open a text editor first and open the ahk file via the File>Open menu.
After all, an AHK-file is just a txt-file with another file extension.
TestB
Posts: 8
Joined: 06 Apr 2018, 07:06

Re: I use "portable" .exe and get error..

06 Apr 2018, 07:36

Thank you...
I do it and I get something like that...

( ΅mM V…ΐu=‹5–J j
Φ…ΐujΦ…ΐΈ<ΌJ u"Έ J ^Γj ΉψlM θΨ2 ƒψΈ J t΅ mM ^ΓΜΜΜΜΜΜΜ΅ΔM €Έμ D‹L$Vu‹T$j
WQRθ{ή ƒΔ^Γ‹D$‹χ…Ι|…ΐsχΨΊ- ƒΡ f‰wχΩΊ0 f‰Ίx f‰VjƒΖVQPθ6ή ΅ΔM ƒΔ€Έμ HuV–J ‹Η^ΓΜΜΜΜΜΜΜΜΜΜΜΜΜΜV‹π€~ u‹vŠF¨t$=ˆF‹‹‹QP‹D$‹L$‰ŠF$‹
D$‰NˆFy‹Ζθ< €f^Β ƒ=@M t¨u
ƒ=@M t¨ t¨t‹Ζθ ^Β ΜΜΜΜΜΜΜΜΜΜΜU‹μƒδΐμ4 S‹Ψ€{ VWu‹[ŠC¨ts¨t,‹C‹PQ|$Hθ»ώƒΔjj jP‹Λθ:h €K_^[‹ε]Γ¨ t?‹ΔM έƒμƒΒtέ$RΎ |$Lθ«= ƒΔjj P‹ΗP‹Λθωg ƒ=@M u€K _^[‹ε]ΓΜΜΜΜΜU‹μƒδψjj PQ‹MθΜg ‹ε]Β ΜΜΜΜΜΜU‹μƒδψjj P‹Eθ­ώΈ ‹ε]Β ΜΜU‹μƒδψ€y VWu‹qλ‹ρφF‹}t…t‹ΖθχώŠF<u"…tƒ} u
φFt‹Ζθ‰} ‹F_^‹ε]Β <u
θeύ_^‹ε]Β _ΈDaM ^‹ε]Β ΅laM ‹
`aM ΐ£laM @ΐΐPQθdή ‹daM +`aM)


I cant change the duplicate hotkey :)
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: I use "portable" .exe and get error..

06 Apr 2018, 08:48

That doesn't look like text file (or a file with ahk-file extension). Did you compile your script and try to open the exe-file?
Try to open the above mentioned anyname.ahk
TestB
Posts: 8
Joined: 06 Apr 2018, 07:06

Re: I use "portable" .exe and get error..

06 Apr 2018, 08:53

Yes gregster it's a compile.exe....
I run it as "portable" .exe only...I don't have .ahk file :)
I dont install Autohotkey :)
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: I use "portable" .exe and get error..

06 Apr 2018, 09:18

So it is not your script anyway and you want to decompile something someone else made? That's at least a "grey" legal area in many jurisdictions, besides ethical considerations.
Why not talk to the person that made this not working exe-file? Or program yourself - you probably have an idea what about the script should do. Why not give it a try?

(I originally thought you were using the portable install (zip-)version of Autohotkey.)
TestB
Posts: 8
Joined: 06 Apr 2018, 07:06

Re: I use "portable" .exe and get error..

06 Apr 2018, 09:25

I made this script!

But I use portable "the zip file" not the installer one!

But I make a mistake and I want to open it to fix my mistake :)

But I don't know how..

I tried some decompile scripts but with no lack...

I don't want to rewrite the script from start ...It's litlle big and I don't remember all moves :)
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: I use "portable" .exe and get error..

06 Apr 2018, 09:33

So, you compiled your original source file (with ahk extension and real text in it), although you
don't have .ahk file :)
Or did you create the exe just from thin air?
Or, you did quickly delete the source file after compilation, before even testing if this exe works?
It all sounds a bit obscure.
Guest

Re: I use "portable" .exe and get error..

06 Apr 2018, 09:35

as far as I know if the error shows "anyname.ahk" as you've copied it you are not a compiled script but a normal script.
That means you should be able to find a file on your computer called anyname.ahk open that file in notepad.
you should not open AutoHotkey.exe because that is not the script.

There is no need to compile scripts in order to run them - see https://www.autohotkey.com/docs/Program.htm#portability

Compiling and then deleting your script is just silly so we can assume you didn't do that.
TestB
Posts: 8
Joined: 06 Apr 2018, 07:06

Re: I use "portable" .exe and get error..

06 Apr 2018, 09:39

Why obscure?

I have just that...

Please look the image..

https://www.screencast.com/t/dPuYjJtgJ82
donovv
Posts: 108
Joined: 15 Apr 2017, 21:06

Re: I use "portable" .exe and get error..

06 Apr 2018, 16:23

so if you open the compiled script in notepad it has the text for the actual script at the bottom of it
TestB
Posts: 8
Joined: 06 Apr 2018, 07:06

Re: I use "portable" .exe and get error..

06 Apr 2018, 18:25

Unfortunately I can't find any text from the actual script...

The only think I want is to fix or delete the line which causes the problem..
In my case

Error at line 46.

Line Text: e & r
Error: Duplicate hotkey.


The script was made with older Autohotkey version 1.1.01
TestB
Posts: 8
Joined: 06 Apr 2018, 07:06

Re: I use "portable" .exe and get error..

06 Apr 2018, 21:23

Problem Solved!!!

I find the ahk file in my Documents and imported to Notepad and all is there :)

Thank you all for your help!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mstrauss2021, Spawnova, william_ahk and 344 guests