Sign in to follow this  
Followers 0
Wb-FreeKill

Wont read variable?

1 post in this topic

#1 ·  Posted (edited)

How come wont the msgbox gives me what $Timeoutmsgbox contains when i press $msgSend ?, it says that the variables hasen't been declared, and if i make it global, it only gives me a 0

If $msg = $Funnybtn[28] Then
        GUISwitch($msgboxGUI)
        GUISetState()
    EndIf    
    If GUICtrlRead($msgb1) = $GUI_Checked Then $Micon = 0
    If GUICtrlRead($msgb2) = $GUI_Checked Then $Micon = 16
    If GUICtrlRead($msgb3) = $GUI_Checked Then $Micon = 32
    If GUICtrlRead($msgb4) = $GUI_Checked Then $Micon = 48
    If GUICtrlRead($msgb5) = $GUI_Checked Then $Micon = 64
    If GUICtrlRead($msgc1) = $GUI_Checked Then $Mbutton = 0
    If GUICtrlRead($msgc2) = $GUI_Checked Then $Mbutton = 1
    If GUICtrlRead($msgc3) = $GUI_Checked Then $Mbutton = 2
    If GUICtrlRead($msgc4) = $GUI_Checked Then $Mbutton = 3
    If GUICtrlRead($msgc5) = $GUI_Checked Then $Mbutton = 4
    If GUICtrlRead($msgc6) = $GUI_Checked Then $Mbutton = 5
    $Checkboxstate = GUICtrlGetstate(GUICtrlread($timeout))
    If $Checkboxstate = -1 Then 
        GUICtrlSetState($Timeoutinput,$GUI_ENABLE)
    EndIf
    If $Checkboxstate = 144 Then 
        GUICtrlSetState($Timeoutinput,$GUI_DISABLE)
    EndIf
    If $msg = $msgTest Then
        If $Checkboxstate = -1 Then
        $Timeoutmsgbox = GUICtrlRead($TimeoutInput)
        Else
        $Timeoutmsgbox = 0
        EndIf    
        Msgbox($Micon + $Mbutton,GUIctrlRead($msgTitle),GUICtrlread($msgtext),$Timeoutmsgbox)
    EndIf
    If $msg = $msgSend Then 
    msgbox(0,"test","9," & $Micon + $Mbutton &","& GUIctrlRead($msgTitle) &","& GUICtrlread($msgtext) &","& GUICtrlRead($Timeoutmsgbox))
    EndIf
Edited by Wb-FreeKill

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