GeekS Posted August 7, 2008 Posted August 7, 2008 (edited) $FormAmazon = GUICreate("Amazon", 633, 447, 285, 315, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER)) $Stats = GuiCtrlCreateButton("Your stats",351, 340, 104, 26, $BS_BITMAP) GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_NewStats.bmp")Whenever i have my mouse over $Stats i want it to change into GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_OldStats.bmp"), is there any chance of doing this, while still having the same button push-able?Thanks in advance, Gnu / GeekS. Edited August 7, 2008 by GeekS
Szhlopp Posted August 7, 2008 Posted August 7, 2008 $FormAmazon = GUICreate("Amazon", 633, 447, 285, 315, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER)) $Stats = GuiCtrlCreateButton("Your stats",351, 340, 104, 26, $BS_BITMAP) GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_NewStats.bmp") Whenever i have my mouse over $Stats i want it to change into GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_OldStats.bmp"), is there any chance of doing this, while still having the same button push-able? Thanks in advance, Gnu / GeekS. Why you using a bitmap?? Anyway, yes there is. You need to use: $CI = GUIGetCursorInfo() If $CI[4] = $MYBUTTON thenoÝ÷ Ù.ç²¶§X¤zØZ¶)íì!W¥¢@Ê-¢f¤z+g¢×åɯ*.綬y«Ú®&ëhuë^®h§{Z¶Ø^¬{¬¢÷««-¶)Ùh¢¶èºZºÚ"µÍÌÍÐÒHHÕRQÙ]ÝÛÜ[Ê BY ÌÍÐÒVÍHH ÌÍÓVPUÓS ÌÍÓÝ[ÝÙSÝ ÉÝÈ ÌÍÓVPUÓ[ÕRPÝÙ][XYÙJ ÌÍÓVPUÓTÈÈÊB ÌÍÓÝ[ÝÙSÝH ÌÍÓVPUÓ[Y =) RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
GeekS Posted August 7, 2008 Author Posted August 7, 2008 (edited) Why you using a bitmap?? Anyway, yes there is. You need to use: Blabla =) Seems simple, however i'm having trouble inserting it into my script / what to insert on the $LastMouseOver etc. #Region ### START Koda GUI section ### Form= [color="#FF0000"]$FormAmazon = GUICreate("Amazon", 633, 447, 285, 315, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER)) $Stats = GuiCtrlCreateButton("Your stats",351, 340, 104, 26, $BS_BITMAP) GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_NewStats.bmp")[/color] $Breakpoint = GuiCtrlCreateButton("Amazon breakpoints", 25, 222, 160, 32, $BS_BITMAP) GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_Breakpoints.bmp") $Startattributes = GuiCtrlCreateButton("Start attributes", 25, 264, 160, 32, $BS_BITMAP) GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_SAttributes.bmp") $Gain = GuiCtrlCreateButton ("Attributes gain", 25, 306, 160, 32, $BS_BITMAP) GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_PerLvl.bmp") $Back = GuiCtrlCreateButton ("Back", 565, 41, 28, 28, $BS_BITMAP) GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_Back.bmp") GUICtrlCreatePic(@WorkingDir & "\Images\AmazonBG.bmp", 0, 0, 633, 447) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### And why shouldnt i be using bitmap? Edited August 7, 2008 by GeekS
Valuater Posted August 7, 2008 Posted August 7, 2008 Might want to look at ButtonHover() http://www.autoitscript.com/forum/index.ph...st&p=288428or maybe EzSkinhttp://www.autoitscript.com/forum/index.ph...st&p=3073808)
GeekS Posted August 7, 2008 Author Posted August 7, 2008 Might want to look at ButtonHover() http://www.autoitscript.com/forum/index.ph...st&p=288428or maybe EzSkinhttp://www.autoitscript.com/forum/index.ph...st&p=3073808)As you might have seen on my script i've been using a bit of EzSkin already, but i'm having trouble inserting my customized image on the rollover instead of the images on EzSkin's image buttons.
Valuater Posted August 7, 2008 Posted August 7, 2008 As you might have seen on my script i've been using a bit of EzSkin already, but i'm having trouble inserting my customized image on the rollover instead of the images on EzSkin's image buttons.There is an updated Button/Control Hover au3 script here, it allows for your own pic buttons. you will need three normal, hover, and pressed.This is what you want...http://www.autoitscript.com/forum/index.ph...st&p=5145588)
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