TehWhale Posted October 19, 2008 Share Posted October 19, 2008 (edited) iPod Media Player BETA 2 with GDI+So after a few nights, and a few struggles I am going to release iPod Media Player BETA 1. Remember this iPod is in BETA stage, as there could be bugs and other issues with it. I have only tested this on Windows Vista. Please report any bugs, or post any comments you have. Sorry for such a short post, but it's pretty self explainitory! When you first start it, click MENU choose a folder, and WHAM!New Version!!New version uses GDI+ with help from 'ol monoceres He helped me so much with this new iPod and I thank him so much!Now looks better!!Screeny:Included in the zip, BETA 1, BETA 2, all includes needed, all icons and pictures, a compiled version of iPod Media Player GDI+ version, and others, including monoceres first GDI+ version iPod__GDI__.zip Edited October 23, 2008 by TehWhale Link to comment Share on other sites More sharing options...
BrettF Posted October 20, 2008 Share Posted October 20, 2008 Pretty cool. Returns the wrong values for Title/Artist/Album. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 Pretty cool. Returns the wrong values for Title/Artist/Album.It does? It returns the right ones for me.Thanks for the comment. Link to comment Share on other sites More sharing options...
monoceres Posted October 20, 2008 Share Posted October 20, 2008 Hi! Looks quite cool, always nice to see someone thinking outside the box When I chose my media folder it didn't add files in my subdirs, maybe look into the different FileSearch() function posted on the forums? Something that also come to mind is that the elements looks jagged, maybe draw them with GDI+ instead with AntiAlias turned on? It will give them super smooth edges Anyways, good job Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 Hi!Looks quite cool, always nice to see someone thinking outside the box When I chose my media folder it didn't add files in my subdirs, maybe look into the different FileSearch() function posted on the forums?Something that also come to mind is that the elements looks jagged, maybe draw them with GDI+ instead with AntiAlias turned on? It will give them super smooth edges Anyways, good job I never thought of using Recursive search. I have that function somewhere. And what elements are you talking about? My GUI's? I havn't learned GDI+ yet, maybe you could help me. Link to comment Share on other sites More sharing options...
monoceres Posted October 20, 2008 Share Posted October 20, 2008 I never thought of using Recursive search. I have that function somewhere. And what elements are you talking about? My GUI's? I havn't learned GDI+ yet, maybe you could help me. By elements I mean the GUI elements, like the display and the wheel thing in the middle.The design doesn't look too advanced so I can probably give you an example which uses AntiAliasing tomorrow, gotta sleep now 2:20 Am here... Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Minikori Posted October 20, 2008 Share Posted October 20, 2008 Glad to see you kept my window moving concept! For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 By elements I mean the GUI elements, like the display and the wheel thing in the middle.The design doesn't look too advanced so I can probably give you an example which uses AntiAliasing tomorrow, gotta sleep now 2:20 Am here... Lol, alright man I'll be looking forward to your help. Link to comment Share on other sites More sharing options...
farhan879 Posted October 20, 2008 Share Posted October 20, 2008 Nice Kinda buggy tho. System task ---> My first GUICalculator v1.0 ---> My version of the calculatorNetZilla 1.0 --> Web browserEmail Sender --> You can Send emails with this without opening a web browser Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 Nice Kinda buggy tho.What do you mean by buggy, and maybe you can report these bugs so I can fix it? Link to comment Share on other sites More sharing options...
monoceres Posted October 20, 2008 Share Posted October 20, 2008 (edited) iPod__monoceres_.zip Hi! As promised, here's a GDI+ iPod GUI. It got a bit advanced since I wanted it to look really nice, but hopefully you will make the best out of it Edited October 20, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
DexterMorgan Posted October 20, 2008 Share Posted October 20, 2008 This is nice Cant wait for monoceres's addition code Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 (edited) Hi! As promised, here's a GDI+ iPod GUI. It got a bit advanced since I wanted it to look really nice, but hopefully you will make the best out of it That's nice I will start working on this as soon as possible! Thanks so much! EDIT: Ahhh, It seems so complicated! EDIT: How do I check when a button is clicked? Like the center button or the |>> etc.? Edited October 20, 2008 by TehWhale Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 Anyone else got any comments? I'm starting to work on the new GUI stuff, but need to figure out how to check if a GDI+ thing is clicked. Link to comment Share on other sites More sharing options...
monoceres Posted October 20, 2008 Share Posted October 20, 2008 (edited) That's nice I will start working on this as soon as possible! Thanks so much! EDIT: Ahhh, It seems so complicated! EDIT: How do I check when a button is clicked? Like the center button or the |>> etc.? Since there is no 'button' (only a string) you need to grab user input manually. Just like I did with the window moving. If for example you want the click area of an area to be x=10,y=10,width=50,height=30, the code looks like this: If WinActive($hwnd) And _IsPressed("01",$user32) Then $pos=MouseGetPos() If $pos[0]>=10 And $pos[0]<=(10+50) And $pos[1]>=10 And $pos[1]<=(10+30) Then _FunctionThatHandlesThisButtonclick() EndIf EndIf Edit: You really should load png images for the next/play/previous buttons, having text there looks like shit. Edited October 20, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 (edited) Since there is no 'button' (only a string) you need to grab user input manually. Just like I did with the window moving. If for example you want the click area of an area to be x=10,y=10,width=50,height=30, the code looks like this: If WinActive($hwnd) And _IsPressed("01",$user32) Then $pos=MouseGetPos() If $pos[0]>=10 And $pos[0]<=(10+50) And $pos[1]>=10 And $pos[1]<=(10+30) Then _FunctionThatHandlesThisButtonclick() EndIf EndIf Aww that sucks. I was hoping it would be faster! Thanks though. I was searching in your code, but which part makes the display smaller, like the actual screen size, just want to lower the height by a little. What if the window is moved, this will not be right, as it screen based, not on the GUI based. Edited October 20, 2008 by TehWhale Link to comment Share on other sites More sharing options...
monoceres Posted October 20, 2008 Share Posted October 20, 2008 I was searching in your code, but which part makes the display smaller, like the actual screen size, just want to lower the height by a little.This line_SetRoundedRectClip($backbuffer, 25, 25, $width-25*2, 175, 10) Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 (edited) This line_SetRoundedRectClip($backbuffer, 25, 25, $width-25*2, 175, 10)Sweet!Also, about your get position thing, I might find some good png's to use, but how will I use these, you said that you can't use regular GUI controls or it will redraw over them. Do I use GDI+ to draw the image too?Grr, I can't find any good button images. Edited October 20, 2008 by TehWhale Link to comment Share on other sites More sharing options...
monoceres Posted October 20, 2008 Share Posted October 20, 2008 (edited) Sweet! Also, about your get position thing, I might find some good png's to use, but how will I use these, you said that you can't use regular GUI controls or it will redraw over them. Do I use GDI+ to draw the image too? Yes! GDI+ is the best when it comes to images, it can crop, resize, draw with transparency & draw the image at any position in the GUI. GDI+ functions to look at: _GDIPlus_ImageLoadFromFile() _GDIPlus_ImageGetWidth() _GDIPlus_ImageGetHeight() _GDIplus_GraphicsDrawImageRect() _GDPlus_ImageDispose() Just remember to draw into the $backbuffer graphics object. Edit: What if the window is moved, this will not be right, as it screen based, not on the GUI based.Add Opt("MouseCoordMode",2) Opt("MouseCoordMode",2) Edited October 20, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Author Share Posted October 20, 2008 Yes! GDI+ is the best when it comes to images, it can crop, resize, draw with transparency & draw the image at any position in the GUI.GDI+ functions to look at:_GDIPlus_ImageLoadFromFile()_GDIPlus_ImageGetWidth()_GDIPlus_ImageGetHeight()_GDIplus_GraphicsDrawImageRect()_GDPlus_ImageDispose() Just remember to draw into the $backbuffer graphics object.Sweet, Will take a look at those So, why can't I make the iPod red+black? I tried changing the variables at the beggining of the script but it stayed exactly the same. And, do you have any iPod png's or whatever heh. I can't find any, google failed me. 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