ForsakenGod Posted January 17, 2010 Share Posted January 17, 2010 Hello , I ve made a qucik program throught which i want to get colors of some spot so what it actually does it is in infinite loop and looks for the color on which you are currently by the cursor . The problem it it does not give back the hex color neighter somethink like 16711935 . I would like to ask if there is some possility to make it in programm to change into an Hex value . Thanks for your time Unreal Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 17, 2010 Moderators Share Posted January 17, 2010 ForsakenGod ,Look at Hex in the Help file - in your case you would use Hex(16711935, 6).Or you could get the individual colour elements by using _ColorGetRed/Blue/Green.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...
ForsakenGod Posted January 17, 2010 Author Share Posted January 17, 2010 ForsakenGod ,Look at Hex in the Help file - in your case you would use Hex(16711935, 6).Or you could get the individual colour elements by using _ColorGetRed/Blue/Green.M23ohh thanks so actually i could look it up like this ?$color = 16711935$hexcolor = Hex($color , 6)And then i can use var $hexcolor right ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 17, 2010 Moderators Share Posted January 17, 2010 ForsakenGod,Have you looked at the Help file? If you had, you would have seen that the Hex is returned without the 0x header so you will need to add that:$color = 16711935 $hexcolor = "0x" & Hex($color , 6)But why are you converting the colour to Hex anyway? All the AutoIt functions work with both Decimal and Hex colours as far as I know.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...
ForsakenGod Posted January 17, 2010 Author Share Posted January 17, 2010 ForsakenGod, Have you looked at the Help file? If you had, you would have seen that the Hex is returned without the 0x header so you will need to add that: $color = 16711935 $hexcolor = "0x" & Hex($color , 6) But why are you converting the colour to Hex anyway? All the AutoIt functions work with both Decimal and Hex colours as far as I know. M23 Thanks well acually i am just learning some basics with autoit and i would like to know everythink thank you you were really helpfull Btw i am converting it because setting the background of laber didnt work for me with that color with hex it does Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 17, 2010 Moderators Share Posted January 17, 2010 ForsakenGod, Could you post the code that you had problems with? 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...
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