Newb Posted October 29, 2012 Share Posted October 29, 2012 (edited) As title says, I'm making a screen color picker which I use for various purposes like webdesign and such. I use Alt+X to switch between normal GUI and a palette version of the gui. When I do that, GUI freezes and needs a click to get back working like it should. Why that? I tried to set focus with GuiCtrlSetState or to simulate clicks with ControlClick on the gui, but nothing... Any clue? (PS: I knew abou Melba23 gui extender but I don't really want to include other code and keep the program as smallest as possible) Here's the source: <snip> Edited October 30, 2012 by Melba23 Removed code to prevent post formatting problems I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. Link to comment Share on other sites More sharing options...
Newb Posted October 29, 2012 Author Share Posted October 29, 2012 (edited) Uh-oh... I quoted something wrong in there? I'm seeing forum layout in there?? My signature/edit buttons and such Edited October 29, 2012 by Newb I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 30, 2012 Moderators Share Posted October 30, 2012 Newb,This tends to happen if you have weird unicode characters in the script - which you will notice is also cut short. The forum software somehow gets confused and adds the post controls into the post itself. Try removing all non-standard characters and post again. If that does not work, just add the file as an attachment - use the "Full Editor" option to do that. 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 Link to comment Share on other sites More sharing options...
Newb Posted October 30, 2012 Author Share Posted October 30, 2012 (edited) OK thanks, I tried to remove weird stuff If you're asking what it does to not skim throught all the code it just picks the color on the screen and lets you copy it into clipboard. The problem of the code is in the _DrawNoPalette and _DrawPalette gui switching (at least I believe!) #include #include Func _Exit() Exit EndFunc ;==>_Exit Sorry to ask you people once more, but I think his error is about some deep mechanics of the GUI I would never discover and my only way to fix it would be to do the whole GUI switching in another way. Edited October 30, 2012 by Newb I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 30, 2012 Moderators Share Posted October 30, 2012 Newb,That took a bit of finding! The problem is your use of Alt-x to switch the GUIs. Using this HotKey is blocking the script until you click - setting it to Ctrl-Alt-x solves the problem. From a Google search it looks like Alt-x is often bound by other apps and best avoided. 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 Link to comment Share on other sites More sharing options...
Newb Posted October 30, 2012 Author Share Posted October 30, 2012 (edited) Yeah, worked fine, thanks. I tried to set different alt+key only keys but all of them freeze, so i had to set a ctrl+alt+key one Well, whatever, thanks Melba23, you rock as usual PS: I tried again to find something about this problem on google/autoit forum now tha i know what it is and I found hard getting any info on it lol) Edited October 30, 2012 by Newb I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. 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