Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 48dd9dc

Browse files
committed
fixed a bug in variable declaration
1 parent 821ecde commit 48dd9dc

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

HTH.ahk

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5625,6 +5625,33 @@ if !(InStr(A_LoopField, "variables."))
56255625
StringTrimRight, varsOUT123456, varsOUT123456, 1
56265626
variables := varsOUT123456
56275627

5628+
5629+
varsOUT1234567 := ""
5630+
Loop, Parse, variables, `n, `r
5631+
{
5632+
5633+
5634+
str := Trim(A_LoopField)
5635+
5636+
s:=StrSplit(str,":").1
5637+
out1 := s
5638+
5639+
if (A_Index <= 3)
5640+
{
5641+
varsOUT1234567 .= A_LoopField . "`n"
5642+
}
5643+
5644+
if !(InStr(out1, " ")) && (A_Index >= 4)
5645+
{
5646+
varsOUT1234567 .= A_LoopField . "`n"
5647+
}
5648+
5649+
}
5650+
5651+
StringTrimRight, varsOUT1234567, varsOUT1234567, 1
5652+
variables := varsOUT1234567
5653+
5654+
56285655
jsCodeGuiOutNum := ""
56295656

56305657
Loop, Parse, jsCodeGui, `n ,`r
@@ -6886,10 +6913,23 @@ jsCode := upCode1 . upCode2 . jsCode . DownCode
68866913
;MsgBox % jsCode
68876914

68886915
; Save clipboard content to a temporary file
6916+
if (fileNameHTH2Num = 1)
6917+
{
6918+
; this is for my personal HTH runner so dont need this this is only my thing dont change
6919+
FileDelete, C:\Users\The_M\OneDrive\Desktop\HTH test\index.html
6920+
6921+
; this is for my personal HTH runner so dont need this this is only my thing dont change
6922+
FileAppend, %jsCode%, C:\Users\The_M\OneDrive\Desktop\HTH test\index.html
6923+
6924+
}
6925+
else
6926+
{
68896927
FileDelete, index.html
68906928

68916929
FileAppend, %jsCode%, index.html
68926930

6931+
}
6932+
68936933
if (test != 1)
68946934
{
68956935

HTH.exe

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)