Skip to content

Commit b64e211

Browse files
committed
- WebSocketAsioClientSample.ahk
Only allow run single instance
1 parent d85a119 commit b64e211

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: AutoHotKeySrc/WebSocketAsio.ahk

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ log_error(string, prefix="[ERROR]") {
2121

2222
;~ dllPath := "WebSocketAsio-" . ARCH_LABEL . ".dll"
2323
dllPath := "WebSocketAsio-" . ARCH_LABEL . ".dll"
24+
;~ log_debug(A_LineFile)
2425
log_debug("Loading dll file: " . dllPath)
2526
hModule := DllCall("LoadLibrary", "Str", dllPath, "Ptr")
2627
if(A_LastError != 0) {

Diff for: Samples/WebSocketAsioClientSample.ahk

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
; *************** Author: Alex <[email protected]>
33
; *************** Add path which WebSocketAsio.dll resides in. Please modify 'AllPath' based on your requirement
44
; ******************************************************************************************************************************
5+
#SingleInstance force
56
EnvGet, SysPath, PATH
67
;~ Important!!!! Please set correctly dll folder according to your environment
78
AllPath = %A_ScriptDir%\..\bin\;%SysPath%

0 commit comments

Comments
 (0)