au3scr Posted February 1, 2008 Share Posted February 1, 2008 $secbinar = 00 GUICtrlSetData ($secbinar,"0011000000110000") MsgBox (48,"lol",$secbinar) This scrpt must change value, but it dont do it, whats the problem? Can anyone say it? Link to comment Share on other sites More sharing options...
weaponx Posted February 1, 2008 Share Posted February 1, 2008 $secbinar = 00 GUICtrlSetData ($secbinar,"0011000000110000") MsgBox (48,"lol",$secbinar) This scrpt must change value, but it dont do it, whats the problem? Can anyone say it? Does anyone ever tell you that you're frustrating? 1. You are declaring $secbinar as just a variable, not a GUI object. 2. You are trying to use GUICtrlSetData on a non-GUI object Link to comment Share on other sites More sharing options...
DjDeep00 Posted February 1, 2008 Share Posted February 1, 2008 (edited) @au3scr....Guictrlsetdata() is used to set data to a control in your GUI. I am not sure why you have $secbinar=00...This is the line that is preventing you setting the new data to your control. Please provide the entire script for better assistance. ....Nevermind Weaponx got it... Edited February 1, 2008 by DjDeep00 Link to comment Share on other sites More sharing options...
au3scr Posted February 1, 2008 Author Share Posted February 1, 2008 (edited) @weaponx ... No one said me that i am frustrating,why should someone say it? how i dot it then? Edited February 1, 2008 by au3scr Link to comment Share on other sites More sharing options...
weaponx Posted February 1, 2008 Share Posted February 1, 2008 @weaponx ... No one said me that i am frustrating,why should someone say it?how i dot it then?Are you even using a GUI? Or are you jsut trying to set a variable?$secbinar = 00$secbinar = 0011000000110000MsgBox (48,"lol",$secbinar) Link to comment Share on other sites More sharing options...
au3scr Posted February 1, 2008 Author Share Posted February 1, 2008 (edited) Are you even using a GUI? Or are you jsut trying to set a variable? $secbinar = 00 $secbinar = 0011000000110000 MsgBox (48,"lol",$secbinar) its gui I want make IF sentence IF time is xx:xx:00 Then it returns on label is xx:xx:0011000000110000 My work is here: expandcollapse popup#include <GUICONSTANTS.au3> #include <String.au3> global $hour = @HOUR global $min = @MIN global $sec = @SEC $t = GUICreate("Clock", 250, 70) $aeg = GUICtrlCreateLabel("Time: " & @HOUR & ":" & @MIN & ":" & @SEC, 10, 10) $aeghex = GUICtrlCreateLabel("Time: " & $hour & ":" & $MIN & ":" & $SEC, 10, 30,200,12) $aegbin = GUICtrlCreateLabel("Time: " & $hour & ":" & $MIN & ":" & $SEC, 10, 50,200,12) GUISetState(@SW_SHOW) AdlibEnable("Do_Function", 1000) While 1 $tMsg = GUIGetMsg() Switch $tMsg Case $GUI_EVENT_CLOSE GUIDelete($t) ExitLoop EndSwitch WEnd Func Do_Function() GUICtrlSetData($aeg, "Time: " & @HOUR & ":" & @MIN & ":" & @SEC) $hourh = @hour $minh = @min $sech = @SEC $hourhh = _StringToHex ($hourh) $minhh = _StringToHex ($minh) $sechh = _StringToHex ($sech) GUICtrlSetData($aeghex, "Time: " & $hourhh & ":" & $minhh& ":" & $sechh) GUICtrlSetData ($hour,@hour) GUICtrlSetData ($min,@min) GUICtrlSetData ($sec,@SEC) $hourbinar = @hour $secbinar = 00 $minbinar = @min GUICtrlSetData ($secbinar,"0011000000110000") # MsgBox (48,"lol",$secbinar) If $secbinar = 00 Then GUICtrlSetData ($secbinar,0011000000110000) GUICtrlSetData($aegbin, "Time: " & $hourbinar & ":" & $minbinar& ":" & $secbinar) EndIf EndFunc ;==>Do_Function Edited February 1, 2008 by au3scr 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