Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
-- Purpose: Trim spaces at the end of each line.
Application.FreezeUI()
hEdit = Application.NewEditor("ADE.ini")
Editor.Show(hEdit)
for i = 1, Editor.GetLineCount(hEdit), 1
do
LineContent = Editor.GetLineText(hEdit, i)
j = string.len(LineContent)
k = j
while (j > 0)
do
if string.sub(LineContent, j, j) ~= " " then break end
j = j - 1
end
if k ~= j then Editor.SetLineText(hEdit, i, string.sub(LineContent, 1, j)) end
end
Editor.Close(hEdit)
Application.UnfreezeUI()
Application.MsgBox("Operation successfully finished.", "Information", 0)
Quote from: _japheth on June 22, 2025, 12:37:33 AMNo, since this is an error and no warning. You have to use the LOCAL directive ( inside the macro and tightly following the MACRO directive) to declare your label inside the macro as "local".Got it, thanks
Quote from: sskaiser on June 22, 2025, 01:36:29 AMsorry for wasting your timeIts not wasted time. As I do not know your level of experience, I must ask seemingly silly questions sometimes.
Quote from: sskaiser on June 22, 2025, 01:38:34 AMAnd to answer your questions I did use the GetConsoleScreenBufferInfo and made sure it works...
Quoteand I use VS Community 2022 to watch the registers, function returns 1 so i guess no errorsOkay.
Quote from: mabdelouahab on June 22, 2025, 05:00:54 AM .IF !ZERO?
;GOTO found
.ENDIF