Skip to content

Commit 0a4d90b

Browse files
authored
Update #CS Helper function for client script
1 parent f589a63 commit 0a4d90b

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

examples/019-mdMsgBox.au3

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,20 +370,28 @@ EndFunc ;==>_EscapeForJS
370370
"</span>"
371371
EndFunc ;==>_FA_Stack
372372
;---------------------------------------------------------------------------------------
373+
Func mdMsgBox($sParam, $bWait = True) ; skip the compilation in the examples
374+
If $bWait Then
375+
Return ShellExecuteWait(@AutoItExe, '"' & @ScriptDir & '\019-mdMsgBox.au3" ' & $sParam)
376+
Else
377+
Return ShellExecute(@AutoItExe, '"' & @ScriptDir & '\019-mdMsgBox.au3" ' & $sParam)
378+
EndIf
379+
EndFunc ;==>mdMsgBox_Exec
380+
;---------------------------------------------------------------------------------------
373381
374382
=== mdMsgBox parameters with default values ===
375-
/BkColor:0x2B2B2B (Dark slate gray)
376-
/TxtColor:0xE0E0E0 (Gainsboro)
377-
/FootColor:0x1E1E1E (Black)
383+
/BkColor:0x2B2B2B ; (Dark slate gray)
384+
/TxtColor:0xE0E0E0 ; (Gainsboro)
385+
/FootColor:0x1E1E1E ; (Black)
378386
/MaxWidth:400
379387
/MaxHeight:800
380388
/Left:-1
381389
/Top:-1
382390
/Title:"Markdown MsgBox"
383391
/Text:""
384392
/Buttons:"OK"
385-
/BtnDefColor:0xD73443 (Crimson)
386-
/BtnColor:0x559FF2 (Cornflower blue)
393+
/BtnDefColor:0xD73443 ; (Crimson)
394+
/BtnColor:0x559FF2 ; (Cornflower blue)
387395
/Timer:0
388396
/TopMost:0
389397
/Parent:0

0 commit comments

Comments
 (0)