madmorgan Posted February 22, 2010 Posted February 22, 2010 hello all, firstly i wish to thank every one that has help me with my autoit programming. my probelms are how can i use a image for a button? and i have a slide bar that has a limit from 0 to 100% but when i run the program it all sets the slider at 0 all the time how can i set at 50% so the user can set higer latter if they want or lower? thanks again for the help.
martin Posted February 22, 2010 Posted February 22, 2010 hello all,firstly i wish to thank every one that has help me with my autoit programming.my probelms are how can i use a image for a button?and i have a slide bar that has a limit from 0 to 100% but when i run the program it all sets the slider at 0 all the time how can i set at 50% so the user can set higer latter if they want or lower?thanks again for the help.You need to show some code if we are suggest corrections. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
madmorgan Posted February 22, 2010 Author Posted February 22, 2010 (edited) ok here is what i got for the slide bar i want it to loads at about 50% and then the user can make chages to the bar as they want $Form1 = GUICreate("", 667, 546, 183, 124) $Slider1 = GUICtrlCreateSlider(328, 296, 150, 45) $slidelim = GUICtrlSetLimit($Slider1,100,2) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Slider1 $volume = guictrlread($Slider1) ;MsgBox(0,"",$volume) EndSwitch WEnd but i still want to know how to use a image for a button Edited February 22, 2010 by madmorgan
mistersquirrle Posted February 22, 2010 Posted February 22, 2010 but i still want to know how to use a image for a buttonTry looking at GUICtrlSetImage() in the help file. Function Referance -> GUI Managment -> GUI Control Update -> GUICtrlSetImage() We ought not to misbehave, but we should look as though we could.
madmorgan Posted February 22, 2010 Author Posted February 22, 2010 ok cool thanks for telling me how to set a image as a button but now for the side bar probelm
mistersquirrle Posted February 23, 2010 Posted February 23, 2010 Function Referance -> GUI Managment -> GUI Control Update -> GUICtrlSetData()Be sure to read the help file if you don't know how to do something. We ought not to misbehave, but we should look as though we could.
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