Search found 40 matches

by DuyMinh
09 Oct 2023, 18:54
Forum: Scripts and Functions (v2)
Topic: ALM - Script license manager
Replies: 3
Views: 1442

Re: ALM - Script license manager

I already created that but there are multiple problems concerning the validity of the time your script accesses since the end user can easily change system time/date or use utilities such as "RunAsDate" to trick the script and use trial or time-limited license key indefinitely. I have thought about...
by DuyMinh
09 Oct 2023, 18:21
Forum: Ask for Help (v2)
Topic: Search for code on website and copy
Replies: 11
Views: 909

Re: Search for code on website and copy

Actually, that is not fixed, so yes, reading the docs is very important. See Escape Sequences . In v1, a " character inside a quoted string is not escaped using a back tick ( ` ) but rather by preceding it with another " character. Thank you for letting me know. I haven't used AHK v1 in a long time...
by DuyMinh
09 Oct 2023, 17:05
Forum: Ask for Help (v2)
Topic: Search for code on website and copy
Replies: 11
Views: 909

Re: Search for code on website and copy

AHK v1 doesn’t use single quotes for marking the start and end of literal strings, so what was posted as a v1 version really isn’t v1. Sorry, I'm not familier with v1, edited @DuyMinh I think I'm doing something wrong, because Im still getting the same error RegexMatch(response, "class=`" caption`"...
by DuyMinh
09 Oct 2023, 04:01
Forum: Ask for Help (v2)
Topic: Search for code on website and copy
Replies: 11
Views: 909

Re: Search for code on website and copy

:clap:
Nevermore wrote:
09 Oct 2023, 03:38

@DuyMinh
Something is wrong, im getting error:
Line Text: 'class
Error: The leftmost character above is illegal in an expression.
I forgot ' in end of pattern, try this again
RegexMatch(response, "class=`" caption`">(?P<Data>.*?)<\/span>", result)
by DuyMinh
09 Oct 2023, 02:26
Forum: Ask for Help (v2)
Topic: Search for code on website and copy
Replies: 11
Views: 909

Re: Search for code on website and copy

RegexMatch(response, 'class=" caption">(.*?)<\/span>', &resData) Msgbox(resData[1]) ; for ahk v1 RegexMatch(response, "class=`" caption`">(?P<Data>.*?)<\/span>", result) EDIT: "I added the v1 code, but I don't really like the v1 syntax. Everything can be found in the docs, so please read the docs c...
by DuyMinh
07 Oct 2023, 07:36
Forum: Ask for Help (v2)
Topic: "With statement" in AHK? Topic is solved
Replies: 2
Views: 295

Re: "With statement" in AHK? Topic is solved

class MyObjectHaveLongName { ; Constructor __New(a, b) { this.a := a this.b := b } ; Method to compute the sum sum() { return this.a + this.b } } ; Create an instance of the class obj := MyObjectHaveLongName(1, 2) ; Use the sum method c := obj.sum() MsgBox c ; Displays 3 I think there isn't such a ...
by DuyMinh
03 Oct 2023, 07:50
Forum: Ask for Help (v2)
Topic: Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved
Replies: 6
Views: 560

Re: Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved

thqby wrote:
03 Oct 2023, 07:43
Calling DllRegisterServer to register is the same as using the command line, but some components need administrator privileges when registering.
This component does not require administrator privileges.
I see, I now understand what I need to do. Thank you for your help. :dance:
by DuyMinh
03 Oct 2023, 06:53
Forum: Ask for Help (v2)
Topic: Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved
Replies: 6
Views: 560

Re: Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved

comobjdll only load the type library required to instantiate the target object, so when returning other types of objects, the lack of these results in the return being empty. Perhaps the component requires other registry keys internally to function properly. An empty string is currently returned be...
by DuyMinh
03 Oct 2023, 04:58
Forum: Ask for Help (v2)
Topic: Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved
Replies: 6
Views: 560

Re: Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved

LastMethodSuccess = 1 and LastStatus = 200, but the return value doesn't match the documentation description, so I don't know. This demonstrates that the method was called successfully, but the return value of the PostJson method is ChilkatHttpResponse. However, when checking the type of the respon...
by DuyMinh
03 Oct 2023, 01:16
Forum: Ask for Help (v2)
Topic: Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved
Replies: 6
Views: 560

Please help me with the issue when creating a Chilkat wrapper for AutoHotkey Topic is solved

EDIT: to solve this problem, just call DllRegisterServer, and after that you can unregister or not. First of all, thank you to everyone for reading this post. I recently started learning to code AutoHotkey using OOP. I utilize the ComObjDll library by thqby to call the ChilkatActiveX.dll and use it....
by DuyMinh
17 Sep 2021, 06:03
Forum: Visual Studio Code
Topic: AutoHotkey v2 Language Support, used in any editor that supports lsp
Replies: 47
Views: 18540

Re: vscode language server for ahk v2

Clicking (Ctrl + LButton) on the built-in function (such as msgbox) will jump to the AHK header file(ahk2.h.ahk or ahk2_h.h.ahk), edit and save the file. Remember to backup. Updating the plug-in will lose the modified file. In addition, #include libfiles will also prompt for customized functions or...
by DuyMinh
17 Sep 2021, 04:19
Forum: Visual Studio Code
Topic: AutoHotkey v2 Language Support, used in any editor that supports lsp
Replies: 47
Views: 18540

Re: vscode language server for ahk v2

Well, I'm currently using this extension which is very good to me, but I want to ask how to add my customized function/class to display for VSCode, in SciTE4AutoHotkey, this can be easy by adding it to ahk.api and ahk.keywords.properties so as to highlight it... I try to search on google but couldn'...
by DuyMinh
19 Aug 2021, 18:43
Forum: Ask for Help
Topic: AHK_H v2 beta
Replies: 11
Views: 4526

Re: AHK_H v2 beta

@DuyMinh Did you run the thread lib functions? This is ThreadObj , but I failed to compile with ahk2exe because A_LineFile did not parse correctly. ;@Ahk2Exe-AddResource %A_LineFile%, THREADOBJ class ThreadObj { static Call(script, cmdLine := "", title := "") { ThreadID := NewThread("#include '" (A...
by DuyMinh
09 Aug 2021, 22:42
Forum: Ask for Help
Topic: AHK_H v2 beta
Replies: 11
Views: 4526

Re: AHK_H v2 beta

@arcticir
@thqby
Thank you, I find some thread function in HotkeyIt github, i will try it with your version... :D
by DuyMinh
09 Aug 2021, 04:52
Forum: Ask for Help
Topic: AHK_H v2 beta
Replies: 11
Views: 4526

Re: AHK_H v2 beta

This is my AHK_H V2 Beta.1 (https://github.com/thqby/autohotkey_h), but there is a little change with Hotkeyit's AHK_H. I cannot using ExeThread or ThreadObj in this fork, only thread function NewThread can be use, but this func is very useless, only run child thread and dont have some method for t...
by DuyMinh
24 Jul 2021, 18:23
Forum: Ask for Help (v1)
Topic: Help to make a wrapper for IMGUI
Replies: 19
Views: 2712

Re: Help to make a wrapper for IMGUI

You seriously think that somebody will write wrapper for about 2500 lines of autoit code? :))) You need to learn autoit and then convert this functions to ahk. As I see it seems not difficult. Hello guys, I'm the creator of that imgui-autoit wrapper, just wonder around on the internet and found thi...
by DuyMinh
07 Jul 2020, 01:13
Forum: Ask for Help (v1)
Topic: Why use InStr for FileExist() Topic is solved
Replies: 5
Views: 2788

Re: Why use InStr for FileExist() Topic is solved

In this example, return value of FileExist is H (Hidden) and func InStr will check, if return value have "H" then show msgbox my file is hidden... I dont know why u ask this question... Its very easy, just to check attribute of dest file
by DuyMinh
01 Nov 2019, 05:03
Forum: Scripts and Functions (v1)
Topic: AHK-Studio - Fix for gui.xml error
Replies: 1
Views: 1669

Re: AHK-Studio - Fix for gui.xml error

Hi AHK_User, thanks for useful tip.
Do you know how to add custom calltip in AHK Studio? I was find in menu but nothing... Can you help me? I think AHK Studio is best editor for AHK, but I'm using SciTE because of above reason.
by DuyMinh
19 Sep 2019, 22:49
Forum: AutoHotkey_H
Topic: Update AHK_H v1 & v2 Topic is solved
Replies: 5
Views: 5319

Re: Update AHK_H v1 & v2 Topic is solved

HotKeyIt wrote:
19 Sep 2019, 22:32
V1 is up to date and for v2 I did not find time to update yet, I hope I will find time to update soon ;)
No prolem, I like your AHK_H and I will waiting for this... Thank you :dance: :dance: :dance:
by DuyMinh
19 Sep 2019, 22:20
Forum: AutoHotkey_H
Topic: Update AHK_H v1 & v2 Topic is solved
Replies: 5
Views: 5319

Update AHK_H v1 & v2 Topic is solved

About 3 month AHK_H no longer update, AHK_v2 update a little bit and I like switch case, it makes my code is shotter, can you update your AHK_H to newest version AHK_v2 or v1? Thank you.

Go to advanced search