Post by garry » 16 Apr 2018, 10:57
@Gio , obrigado para function
boa tarde , outros exemplos para 'msgbox'
Code: Select all
;- sobre 'msgbox' , ajudo user 'BoBo'
; - https://autohotkey.com/boards/viewtopic.php?f=9&t=43170
;- primeiro exemplo
a:=5
c:=(a*2)
e4x= Preço=%c%
MsgBox, 262208,TEST-1 ,%e4x%
;- segundo exemplo
f2=%a_scriptdir%\msgbox_test2.ahk
ifexist,%f2%
filedelete,%f2%
e5x=
(LTrim Join`r`n `
SetWorkingDir,%a_scriptdir% ;- veja diferença > C:\......
MsgBox, 262208,TEST-2 ,This is a test`nSecond Line`n%e4x%
Return
)
fileappend,%e5x%,%f2%
run,%f2%
;- terceiro exemplo
f3=%a_scriptdir%\msgbox_test3.ahk
ifexist,%f3%
filedelete,%f3%
e6x=
(LTrim Join`r`n % `
SetWorkingDir,%a_scriptdir% ;- veja diferença > %a_scriptdir%
MsgBox, 262208,TEST-3 ,This is a test`nSecond Line`n%e4x%
Return
)
fileappend,%e6x%,%f3%
run,%f3%
exitapp
@Gio , obrigado para function
boa tarde , outros exemplos para 'msgbox'
[code]
;- sobre 'msgbox' , ajudo user 'BoBo'
; - https://autohotkey.com/boards/viewtopic.php?f=9&t=43170
;- primeiro exemplo
a:=5
c:=(a*2)
e4x= Preço=%c%
MsgBox, 262208,TEST-1 ,%e4x%
;- segundo exemplo
f2=%a_scriptdir%\msgbox_test2.ahk
ifexist,%f2%
filedelete,%f2%
e5x=
(LTrim Join`r`n `
SetWorkingDir,%a_scriptdir% ;- veja diferença > C:\......
MsgBox, 262208,TEST-2 ,This is a test`nSecond Line`n%e4x%
Return
)
fileappend,%e5x%,%f2%
run,%f2%
;- terceiro exemplo
f3=%a_scriptdir%\msgbox_test3.ahk
ifexist,%f3%
filedelete,%f3%
e6x=
(LTrim Join`r`n % `
SetWorkingDir,%a_scriptdir% ;- veja diferença > %a_scriptdir%
MsgBox, 262208,TEST-3 ,This is a test`nSecond Line`n%e4x%
Return
)
fileappend,%e6x%,%f3%
run,%f3%
exitapp
[/code]