eagle4life69 Posted February 1, 2007 Share 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 Link to comment Share on other sites More sharing options...
mrbond007 Posted February 1, 2007 Share Posted February 1, 2007 http://www.autoitscript.com/forum/index.ph...trlCreateSliderhttp://www.autoitscript.com/forum/index.ph...trlCreateSliderMaybe this will help ? Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
eagle4life69 Posted February 1, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
eagle4life69 Posted February 1, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
Helge Posted February 1, 2007 Share Posted February 1, 2007 MouseClick performs a mouse-click..it doesn't check for one. Link to comment Share on other sites More sharing options...
eagle4life69 Posted February 1, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
eagle4life69 Posted February 1, 2007 Author Share Posted February 1, 2007 Looks like this works great. Once I get it to work as a volume control I'll be good. Thanks Link to comment Share on other sites More sharing options...
eagle4life69 Posted February 1, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
n1maS Posted September 4, 2012 Share 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 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 5, 2012 Moderators Share 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) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
n1maS Posted September 5, 2012 Share 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. Link to comment Share on other sites More sharing options...
UEZ Posted September 6, 2012 Share Posted September 6, 2012 (edited) Moved to Br, UEZ Edited September 6, 2012 by UEZ n1maS 1 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ 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