Sign in to follow this  
Followers 0
goldenix

[solved_]Declaration help

3 posts in this topic

#1 ·  Posted (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 normally

In 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 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]

Share this post


Link to post
Share on other sites



If Not IsDeclared('MSBOX_SIMPLE') Then MsgBox(0, '', $TEXT)oÝ÷ Ûú®¢×¢¹èÂ+[Þ²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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0