Search found 253 matches

by jsong55
15 Apr 2024, 05:45
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 317

Re: How to call nested function? Topic is solved

@xMaxrayx thanks for your contribution but the context of my question wasn't clear. And in that context lexikos answer is best and I have marked his :)
by jsong55
14 Apr 2024, 06:27
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 317

Re: How to call nested function? Topic is solved

@rommmcek
try

Code: Select all

MyGui.Click:=Button_Click.Bind()
by jsong55
13 Apr 2024, 19:26
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 317

Re: How to call nested function? Topic is solved

Code: Select all

MyGui.Click := Button_Click
This works. I used this too.
by jsong55
12 Apr 2024, 03:25
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 317

Re: How to call nested function? Topic is solved

@lexikos
Sorry to make you guess. I'll use example code next time I ask the question.
by jsong55
12 Apr 2024, 03:24
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 317

Re: How to call nested function? Topic is solved

Oh Brilliant suggestion. I did just that. Used BoundFunc to attach it to the Gui object as a method.
So now it can be called anywhere.
by jsong55
12 Apr 2024, 02:09
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 74
Views: 19917

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

@TAC109 can we request a feature to use our own password? Say from a disposable ini file.
by jsong55
12 Apr 2024, 01:54
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 317

Re: How to call nested function? Topic is solved

Thanks! Yes I think my use case is such where I build the gui with a function BuildGui() Then I added a button and have a nested function BtnClicked(*) Now somewhere else in the code I want to run the BtnClicked function, without having to Focus the Control and Send {enter} as the Gui Window may not...
by jsong55
11 Apr 2024, 21:17
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 74
Views: 19917

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

I go with ScriptGuard as there are some differences in _H vs _L and I don't have time to modify too much code to adjust
by jsong55
10 Apr 2024, 00:16
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 74
Views: 19917

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

Good point but let's not discuss in this thread.. is there a thread to tackle that?
by jsong55
09 Apr 2024, 22:25
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 74
Views: 19917

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

UPX works! Guess I'll stick to it for now. About the AntiVirus, it's a false positive so just have to put on allow list. I sometimes encounter Windows Defender trying to remove it even without any compression
by jsong55
09 Apr 2024, 10:55
Forum: Ask for Help (v2)
Topic: Anyone know a AHK Native Equivalent or Know how to rewrite this Fuzzy Search?
Replies: 1
Views: 133

Anyone know a AHK Native Equivalent or Know how to rewrite this Fuzzy Search?

csharp_code(){ return c := " ( using System; class FuzzyMatcher { public int LevenshteinDistance(string string1, string string2) { if (string.IsNullOrEmpty(string1)) { if (string.IsNullOrEmpty(string2)) return 0; return string2.Length; } if (string.IsNullOrEmpty(string2)) { if (string.IsNullOrEmpty...
by jsong55
09 Apr 2024, 10:16
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 74
Views: 19917

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

I'm compiling with v2.0.9 U64 AutoHotkey64.exe and MPRESS, script does not run. Without MPRESS works fine. Can help please?
by jsong55
04 Apr 2024, 09:16
Forum: Ask for Help (v2)
Topic: ideas for a auto updating app
Replies: 5
Views: 137

Re: ideas for a auto updating app

It ended up less straight forward than a few lines of code... But I pushed to production. Main App needs to write version number to text file, then call updater. Updater checks version by downloading json and prompts user. If current version = exit If yes proceed else exit. Then processclose main ap...
by jsong55
03 Apr 2024, 03:10
Forum: Ask for Help (v2)
Topic: ideas for a auto updating app
Replies: 5
Views: 137

Re: ideas for a auto updating app

boiler We would want to let the user choose whether to update the app and also to revert to a previous version... If needed. So the installer exe will need to ask the user if they wish to update and download the new version if so. I would use the command line 7z app to extract the password protecte...
by jsong55
02 Apr 2024, 23:44
Forum: Ask for Help (v2)
Topic: ideas for a auto updating app
Replies: 5
Views: 137

Re: ideas for a auto updating app

Kind of was looking forward to someone to point me to an existing library. But I couldn't find one on the forum.
by jsong55
02 Apr 2024, 09:50
Forum: Ask for Help (v2)
Topic: ideas for a auto updating app
Replies: 5
Views: 137

ideas for a auto updating app

Whenever, user runs it, uses something like URLDownloadToVar to get a JSON with newest version, check current version. Download new exe file reload and delete old?

Go to advanced search