bobheart Posted June 9, 2004 Share Posted June 9, 2004 You can click on a picture as a link or run program .. ;Generated with AutoBuilder 0.3 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,266,10,10,0x04CF0000) $pic_1 = GUISetControl("pic", "link.jpg", 30,20, 330,200) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = $pic_1 Run("Notepad.exe", "", @SW_MAXIMIZE) ;;; EndSelect WEnd Exit How would you make a tool tip when mouse goes over it ? Like "Opens Notepad" Link to comment Share on other sites More sharing options...
CyberSlug Posted June 9, 2004 Share Posted June 9, 2004 Upgrade to AutoBuilder 0.4...I'd try GUISetControlEx($pic_1, -1, 0, "tool tip goes here") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
bobheart Posted June 9, 2004 Author Share Posted June 9, 2004 Thank you , that rocks .. Link to comment Share on other sites More sharing options...
cowsmanaut Posted July 1, 2004 Share Posted July 1, 2004 old post I know but I was looking for example code of images as buttons.. then I added to it.. ;Generated with AutoBuilder 0.3 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,266,10,10,0x04CF0000) $pic_1 = GUISetControl("pic", "button_up.gif", 30,20, 330,200) $A=1 GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = $pic_1 $A=$A*"-1" if $A="-1" then GUIWrite($pic_1,0,"button_down.gif") Else GUIWrite($pic_1,0,"button_up.gif") EndIf ;;; EndSelect WEnd Exit just incase someone else looks for reffrence. here's how I went about making the image alternate when pushed. 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