eagle4life69 0 Posted February 1, 2007 ;~ Volume $Volume = GuiCtrlCreateSlider(0, 210, 75, 20) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GuiCtrlCreateLabel("Volume", 0, 200, 40, 15) GUICtrlSetColor(-1,0x000000) ; Gray GUICtrlSetBkColor(-2, $GUI_BKCOLOR_TRANSPARENT) Case Else If GUICtrlread($Volume) <> $VolLevel Then $oMediaPlaySettings.Volume = GUICtrlRead($Volume) $VolLevel = GUICtrlRead($Volume) EndIf The Above script isn't complete I know But this is the Volume parts. So how can I make it look more like the Picture. There has to be a way. I need the ball to move and the Volume to be controled by the ball. Please Help Share this post Link to post Share on other sites
mrbond007 0 Posted February 1, 2007 http://www.autoitscript.com/forum/index.ph...trlCreateSliderhttp://www.autoitscript.com/forum/index.ph...trlCreateSliderMaybe this will help ? Hide mrbond007's signature Hide all signatures Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Share this post Link to post Share on other sites
eagle4life69 0 Posted February 1, 2007 http://www.autoitscript.com/forum/index.ph...trlCreateSliderhttp://www.autoitscript.com/forum/index.ph...trlCreateSliderMaybe this will help ?Thanks But I looked at these and saw nothing that would help.Is it even possible to get the ball to move? if the ball could move I may be able to figure out the rest. Share this post Link to post Share on other sites
eagle4life69 0 Posted February 1, 2007 Okay I was playing around and was able to make the ball move. Now how can I make it so it stays on the bar and can not go past the bar. #include <Array.au3> #include <File.au3> #include <GuiConstants.au3> #Include <GuiEdit.au3> #include <Misc.au3> #include <GuiList.au3> AutoItSetOption('MouseCoordMode',2) GUICreate("Test") GUICtrlCreatePic("bar.gif",30,50,0,0) $ball = GUICtrlCreatePic("ball.gif",50,60,0,0) GUISetState() $msg = 0 While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $ball while MouseClick("left") Do $pos = MouseGetPos() ControlMove ( "", "", $ball, $pos[0],$pos[1] ) Until MouseClick("left") ExitLoop WEnd EndSelect WEnd Share this post Link to post Share on other sites
Helge 3 Posted February 1, 2007 MouseClick performs a mouse-click..it doesn't check for one. Share this post Link to post Share on other sites
eagle4life69 0 Posted February 1, 2007 MouseClick performs a mouse-click..it doesn't check for one.Okay so how can I check for mouse click. My script works just not exactly how I want. Try it and you will see. Oops I forgot the Image files here they are Share this post Link to post Share on other sites
eagle4life69 0 Posted February 1, 2007 Looks like this works great. Once I get it to work as a volume control I'll be good. Thanks Share this post Link to post Share on other sites
eagle4life69 0 Posted February 1, 2007 (edited) Okay here is the Completed ProgramHere is the LinkIf you find a bug please let me knowHere is a Screen Shot of the PlayerIt takes the XML File and splits the data then it takes the Slider that was worked on from Above and puts it to use as a Volume Control. Thanks to everyone for your help it turned out just like I wanted Edited February 1, 2007 by eagle4life69 Share this post Link to post Share on other sites
n1maS 0 Posted September 4, 2012 (edited) I kown that this topic is old but I really need this slider to get working. does anyone have a better idea for this? Edited September 4, 2012 by n1maS Share this post Link to post Share on other sites
JLogan3o13 1,513 Posted September 5, 2012 Hi, n1maS. It is generally not a good idea to resurrect such an old post. AutoIt is a constantly evolving language; what worked in 2007 is not likely to work the same now. You will likely get a much better response from forum members if you:read the forum rules and ensure what you're trying to do doesn't violate them.create a new topic of your ownexplain in detail what you are trying to accomplishprovide code you have tried already (even if it doesn't work)understand that it may take some time for someone to respond (wait at least 24 hours) Hide JLogan3o13's signature Hide all signatures √-1 2^3 ∑ π, and it was delicious! How to get your question answered on this forum! Share this post Link to post Share on other sites
n1maS 0 Posted September 5, 2012 Hi, JLogan3o13. Thank you for your response. I've no problem creating a new topic. sorry for posting in the first place. Share this post Link to post Share on other sites
UEZ 1,179 Posted September 6, 2012 (edited) Moved to Br, UEZ Edited September 6, 2012 by UEZ 1 n1maS reacted to this Hide UEZ's signature Hide all signatures Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Share this post Link to post Share on other sites