blackrainbow Posted July 19, 2015 Share Posted July 19, 2015 (edited) Hello, I post this because I was coding and I see a big bug in the GUICtrlRead function, here is my code (the interface part almost):<snip>Don't worry about comments, it's in french So, the $REG variable contain a GUICtrlCreateInput, to get it value, I use $reg = GUICtrlRead($REG)And there is the bug, the $reg value is doing wired things with the $REG value, I mean that when I run $reg = GUICtrlRead($REG) for the first time, $reg is equal to the string that I entered in the input field, but if I retry to execute $reg = GUICtrlRead($REG) a scnd time, the value is equal to 0. I havn't this bug with the $summoner = GUICtrlRead($SUMM)So I think it mean that if you've got two value with the same name but not the same case (A, a), it can mix value and do some weird things. I thinks it's a big bug, that's why I report it. And my code is not bugging because of a programmation error, the $SUMM and the $summoner have differents names but are used in exactly the same way as $REG and $reg.My fix:Call your variables differently (ex: $REG and $region is working for me)Thanks to fix this bug Edited July 19, 2015 by Melba23 Removed code and amended title Link to comment Share on other sites More sharing options...
iamtheky Posted July 19, 2015 Share Posted July 19, 2015 (edited) umm no, case means nothing.First Loop, $reg is a control, and then you set the string that is read from $reg to $reg.Second Loop, $reg is now a string (because case has no effect), and when you guictrlread a string it returns 0, which means failure.$reg = "string I entered" msgbox(0, '' , guictrlread($reg)) Edited July 19, 2015 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
blackrainbow Posted July 19, 2015 Author Share Posted July 19, 2015 CASE HAZ NO EFECT ??! Ha ok, so ... hum.. feel a kinda stupid >w<I was coding in C right after so I didn't notice that AutoIt wasn't case-sensitive :SSry for post Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 19, 2015 Moderators Share Posted July 19, 2015 (edited) blackrainbow,Welcome to the AutoIt forum.Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.See you soon with a legitimate question I hope.M23Edit:JohnOne,I remembered to lock this one. Edited July 19, 2015 by Melba23 JohnOne 1 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 Link to comment Share on other sites More sharing options...
Recommended Posts