CT83 Posted December 11, 2016 Posted December 11, 2016 (edited) I my gui labels, tab names, and everything has suddenly started displaying the digits "222" for some reason. I personally have not set them to display this, I searched for the string "222" in my code to see if i was accidentally over-writing them by code bt, i dont seem to find anything. This is a mysterious problem! Has anyone encountered anything like this? PS Attaching a screenshot of what my gui currently looks like. The error occurs after some time of running the code, I am not quite sure which line is causing the error. so i cant really produce a reproducer Edited May 7, 2017 by CT83 added code
Moderators Melba23 Posted December 11, 2016 Moderators Posted December 11, 2016 CT83, It is obviously the additional variable you have put in line #87. ... Seriously, if you want help with this problem, post the code that you use to create the GUI so we can take a look. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
CT83 Posted December 11, 2016 Author Posted December 11, 2016 5 minutes ago, Melba23 said: CT83, It is obviously the additional variable you have put in line #87. ... Seriously, if you want help with this problem, post the code that you use to create the GUI so we can take a look. M23 Done, Melba23
Moderators Melba23 Posted December 11, 2016 Moderators Posted December 11, 2016 CT83, And when you run that code as posted (with a loop to keep it visible) it gives you "222" in every label? It certainly does not when I do. The only thing I can think of is that you have a loop somewhere else in your script which is setting every control to that value. Is there such a loop somewhere later in the script which might do this? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
CT83 Posted December 11, 2016 Author Posted December 11, 2016 Just now, Melba23 said: CT83, And when you run that code as posted (with a loop to keep it visible) it gives you "222" in every label? It certainly does not when I do. The only thing I can think of is that you have a loop somewhere else in your script which is setting every control to that value. Is there such a loop somewhere later in the script which might do this? M23 No, that's the surprising part, When I run it it gives me no errors or 222 either! I have no loop to set the data of every label to 222, but! when i compile it and leave it running and doing for few hours on other machines it automatically sets the 222 values. PS on searching for the value "222" in my code the only thing it returned was "color_Var2=0x222222" this was the only instance of the characters 222 in my code no thing else any where! Btw is there a way to actually do that? I mean set values of every label to a certain value? and what should i be looking for which might cause this kind of problem? I am going to run few tests again and report here!
Moderators Melba23 Posted December 11, 2016 Moderators Posted December 11, 2016 CT83, I suggest posting the entire script - something in there must be changing the label content. If it is a loop it would have to be along these lines: For $i = Some_Smallish_Number To Some_Much_Bigger_Number GUICtrlSetData($i, Some_variable_set_to_222) Next Then every control that reacts to that command would change. But I would have thought that such a thing would be pretty obvious - hence my puzzlement. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
CT83 Posted December 11, 2016 Author Posted December 11, 2016 6 hours ago, Melba23 said: CT83, I suggest posting the entire script - something in there must be changing the label content. If it is a loop it would have to be along these lines: For $i = Some_Smallish_Number To Some_Much_Bigger_Number GUICtrlSetData($i, Some_variable_set_to_222) Next Then every control that reacts to that command would change. But I would have thought that such a thing would be pretty obvious - hence my puzzlement. M23 Yes! you were right! it was this bit of code $Successful=$Successful+1 GUICtrlSetData($Successful,$guielement) Reversed the, $guielement var and $Successful var. and as it turns out the label number of $guielement was number 222, so it was setting it to 222. I apologize for the carelessness from my side. My bad... Thanks M23, u are awesome!
Moderators Melba23 Posted December 11, 2016 Moderators Posted December 11, 2016 CT83, Glad you found the misbehaving line and that I could help. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
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