zazazayou Posted June 11, 2008 Posted June 11, 2008 Where can i get a version that supports BGR colormode? Thanks!
Delta Posted June 11, 2008 Posted June 11, 2008 A version of what? [size="1"]Please stop confusing "how to" with "how do"[/size]
Moderators SmOke_N Posted June 11, 2008 Moderators Posted June 11, 2008 Func _ColorConvert($nColor);RGB to BGR or BGR to RGB Return _ BitOR(BitShift(BitAND($nColor, 0x000000FF), -16), _ BitAND($nColor, 0x0000FF00), _ BitShift(BitAND($nColor, 0x00FF0000), 16)) EndFuncShould be all you need to conform it yourself. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
zazazayou Posted June 11, 2008 Author Posted June 11, 2008 Func _ColorConvert($nColor);RGB to BGR or BGR to RGB Return _ BitOR(BitShift(BitAND($nColor, 0x000000FF), -16), _ BitAND($nColor, 0x0000FF00), _ BitShift(BitAND($nColor, 0x00FF0000), 16)) EndFuncShould be all you need to conform it yourself. sorry for being an idiot, but ive never used this program until 10 minutes before posting this, i just am trying to get something to work that uses autoit v3 and according to some guy on another forum i need a version of autoit that is BGR, and according to them the current version is not. i am guessing bgr stands for blue green red, other than that i know absolutely nothing about this program if you could explain where in what code i need to paste that into in a short but idiot-proof way that would be perfect. thanks!
Moderators SmOke_N Posted June 11, 2008 Moderators Posted June 11, 2008 sorry for being an idiot, but ive never used this program until 10 minutes before posting this, i just am trying to get something to work that uses autoit v3 and according to some guy on another forum i need a version of autoit that is BGR, and according to them the current version is not. i am guessing bgr stands for blue green red, other than that i know absolutely nothing about this programif you could explain where in what code i need to paste that into in a short but idiot-proof way that would be perfect.thanks!Since we have absolutely no idea "why" you need BGR or why someone would send someone to AutoIt with no knowledge of AutoIt, looking for something that AutoIt no longer supports, and if it did they would still have no idea how to use it or implement it sounds rather idiotic to me.Anyway, the function I posted will convert any RGB (Red Green Blue) color to BGR (Blue Green Red) or vice versa BGR to RGB, just pass the decimal value of the color to the function. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
zazazayou Posted June 11, 2008 Author Posted June 11, 2008 Since we have absolutely no idea "why" you need BGR or why someone would send someone to AutoIt with no knowledge of AutoIt, looking for something that AutoIt no longer supports, and if it did they would still have no idea how to use it or implement it sounds rather idiotic to me.Anyway, the function I posted will convert any RGB (Red Green Blue) color to BGR (Blue Green Red) or vice versa BGR to RGB, just pass the decimal value of the color to the function.sorry ill give some more background.i need it for something in this computer game called diablo 2. dunno if u heard of it. anyways it gave me an error message that said i needed AutoIt v3. I never knew autoit existed until just then, so i searched it on google, found this site, and downloaded it. Then i got another error message saying something about (colormode), 1 or something like that, and i searched for that on google.i found an explanation of my problem on some forum, and what i got from it is that unless i redo the entire program, i need an old version of autoit that uses BGR.here is the site where i got that explanation from: http://forums.mmbot.net/autoit-support-for...ed--t34450.htmlif you check that it explains the problem im having much better than i could hope to explain iti apologize for not being clear in my last post but what i was looking for is an explanation like this:"find a file called soandso.something and open it with a text editor. find where it says blahblahblah and replace it with my code"that would be ideal. also thanks a lot for taking time to answer my question, i really appreciate it
Administrators Jon Posted June 11, 2008 Administrators Posted June 11, 2008 Just download 3.2.10.0 from the archive. http://www.autoitscript.com/autoit3/files/....10.0-setup.exe Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Polyphem Posted July 17, 2008 Posted July 17, 2008 (edited) Func _ColorConvert($nColor);RGB to BGR or BGR to RGB Return _ BitOR(BitShift(BitAND($nColor, 0x000000FF), -16), _ BitAND($nColor, 0x0000FF00), _ BitShift(BitAND($nColor, 0x00FF0000), 16)) EndFuncoÝ÷ Ù(hºW[y©eʧyçm¡Ê'~æܨº»ÿêº^=êßyËazZ^vg¬zÛb¥æÉÈh±éÜ¢Z+¢v,xZ'·^ëazà¢ëiºÜ²±®åGM~ØZKRé6«zÆ©ç¡÷(uçè®Ø^ìm±æ«r«jëh×6_ChooseFont(GUICtrlRead($input_font_name), GUICtrlRead($input_font_size), BitOR(BitShift(BitAND("0x" & StringRight(GUICtrlRead($input_font_color), 6), 0x000000FF), -16), BitAND("0x" & StringRight(GUICtrlRead($input_font_color), 6), 0x0000FF00), BitShift(BitAND("0x" & StringRight(GUICtrlRead($input_font_color), 6), 0x00FF0000), 16))) Cheers Edit: Add Keyword: Hex RGB Color <> COLORREF rgbColors Edited July 18, 2008 by Polyphem This post will be edited again by Polyphem: Tomorrow, 11:55 AM
insignia96 Posted May 8, 2009 Posted May 8, 2009 (edited) Sorry if this is considered bumping old posts (i visit alot of forums), but thanks a ton to Smoke_N. I was having the exact same weird problem as Polyphem. For some reason if you put in a RGB hex value it converts it to BGR. i.e. Maroon to navy but that function fixed it right up. Edited May 8, 2009 by insignia96 Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower
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