goldenix Posted March 28, 2009 Share Posted March 28, 2009 (edited) The idea is that if I declare globally $MSBOX_SIMPLE = False then I can turn off msbox notifications globally in whole script.If I do not declare it globally $MSBOX_SIMPLE = True (I forget or im too lazy) then the msbox function will work normallyIn older autoit versions I did not have to declare it as default it was ( nothing means == '') , but now I get errors. How should i declare stuff now?_msbox_simple('test') Func _msbox_simple($TEXT) Local $MSBOX_SIMPLE If $MSBOX_SIMPLE = False Then Return MsgBox(0,'Info!',$TEXT) EndFunc Exit Edited March 28, 2009 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Authenticity Posted March 28, 2009 Share Posted March 28, 2009 If Not IsDeclared('MSBOX_SIMPLE') Then MsgBox(0, '', $TEXT) Link to comment Share on other sites More sharing options...
goldenix Posted March 28, 2009 Author Share Posted March 28, 2009 If Not IsDeclared('MSBOX_SIMPLE') Then MsgBox(0, '', $TEXT)oÝ÷ Ûú®¢×¢¹èÂ+l¢[Þ²l©®åzkaj|ZºÚ"µÍÛØÞÜÚ[J ÌÎNÝÝÌÎNÊHÑÛØ[ ÌÍÓTÐÖÔÒSTHH[ÙHÈ]ÑBBQ[ÈÛØÞÜÚ[J ÌÍÕV BBBBRYÝÑXÛY ÌÎNÓTÐÖÔÒSTIÌÎNÊH[BBSÙÐÞ ÌÎNÒ[ÉÌÌÎÉÌÎNË ÌÎNÔUTQ ÌÎNÊBBBT]BQ[YBBBSÙÐÞ ÌÎNÒ[ÉÌÌÎÉÌÎNË ÌÍÕV BQ[[ My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now