Jump to content
Sign in to follow this  
wakillon

TinyMp3Player v 1.0.1.7 Update of 2012-07-28

Recommended Posts

TinyMp3Player : A basic Mp3 player 

Hold left shift key and click load music button for select a mp3 directory, instead of a single mp3 file.
A random check box for listen randomly.
An automatic random config set the type of Audio meter display at each start or each click on the Next button.

Previous downloads : 447

TinyMp3Player v 1.0.1.7 Update of 2012-07-28

Source : TinyMp3Player v 1.0.1.7.au3

executableTinyMp3Player.exe.html

(Once this html file downloaded, double click on it for start the download)

Changes :

mp3 and m3u can be associated to compiled script. ( Double click )
Contextual menu can be added for mp3, m3u and folder. ( Right Click )

How to proceed : Once compiled, run it, and in tray menu click on "Add Context Menu"
Once done, you can double click on any mp3 or m3u ( or Right Click on mp3 folder, mp3 or m3u ) and it will be played by compiled script.
You can also Remove Context Menu ( by tray menu ) and your previous association will be restored.
Gui do not close if you start a new play...
Added a new skin and did a lot of cleaning ! :D
Tested on XP sp3 32 bit and Seven 64 bit.

Bass.au3 and ?do=embed' frameborder='0' data-embedContent>>WinApiEx.au3 are needed.
As usual some external files ( dll and icons ) are downloaded at the first execution to @TempDir & 'TMP'.


Thanks to Brett Francis for his Bass.au3 ( external download link on Eukalyptus Topic on AutoIt.de )
Thanks to Eukalyptus, Prog@ndy for their BassExt.au3
Thanks to Melba for his _StringSize function
Thanks again to Eukalyptus for his AudioMeter.au3

Thanks to Yashield for his ?do=embed' frameborder='0' data-embedContent>>WinAPIEx UDF

Hope you like it ! ;)

TinyMp3Player33.png

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

make that 412 views, 104 downloads and 1 comment!

First of all: it just works (windows 7, 64 bit)

secondly: it takes 3% of my CPU :| (winamp takes less than 1... I7-860 CPU...)

- I have still nog figured out how to change music volume!

- Also there is not such shing as a playlist, which I do find a downside

- The program is top all, the browse for Folder (to load files) is even hidden below (not good)

- It only seaches the directory for music files, it does not search subdirectories...

- Shift + click to add new music -> select a directory -> just press enter -> program seems to crash

- It starts up at a fixed position (on the bottom center of the screen) why not at the position it was located the last time it was closed?

I'm currently looking for a basescript on which I can add my own desires:

- stores the playlist in some kind of file

- able to keep up to 100k songs

- and MUST have the function to rate music (so I can delete the crap i got :x)

Best regards,

Jeffrey

p.s. while loading a song it gives me this error...

Errors:

C:\Users\JB\Desktop\AutoIt\mp3\Mp3.au3 (600) : ==> Subscript used with non-Array variable.:
$Open_Result = DllCall ( $_MediaInfoDll, "int", "MediaInfo_Open", "ptr", $_Handle[0], "wstr", $_MediaFilePath )
$Open_Result = DllCall ( $_MediaInfoDll, "int", "MediaInfo_Open", "ptr", $_Handle^ ERROR
Edited by JBtje

Share this post


Link to post
Share on other sites

@JBtje

.First of all: it just works (windows 7, 64 bit)

Ok, thanks for info !

.secondly: it takes 3% of my CPU :| (winamp takes less than 1... I7-860 CPU...)

The display is greedy in energy and Winamp does not have an equalizer of this size.

.I have still not figured out how to change music volume!

When your mouse is over the window and that window is active turn your mousewheel for set volume,

value is displayed on the right corner of the window.

.Also there is not such Thing as a playlist, which I do find is a downside

Permit the use of playlist is a good idea, i don't usually use them but i'll think about it...

.The program is on top all, the browse for Folder (to load files) is even hidden below (not good)

I suppose you dispose of a small screen because FileSelectFolder gui is small and size of window is just 680 X 250 !

But the display of the graphic by GDIPlus tends to be seen through other windows,

so i have not found another solution exept by putting the window on top.

.It only searches the directory for music files, it does not search subdirectories...

I stored my mp3s by theme that's why I have not sought to include mp3's subfolders in the mp3 list.

Playlist seems to be a better solution !

.Shift + click to add new music -> select a directory -> just press enter -> program seems to crash

I tried yet this manipulation and haven't got any problems for load music.

- It starts up at a fixed position (on the bottom center of the screen) why not at the position it was located the last time it was closed?

Save Last position on exit is a possibilty and i'll think about it...

For the error

.verify in @Tempdir & "\TMP" the presence of MediaInfo.Dll

.or try the 64 bit MediaInfo.Dll ( http://mediainfo.sourceforge.net/fr/Download/Windows )

I use it often and never had any errors on 32 bit.

I have already several projects on hold but I will think about all this ! Posted Image

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Hi, couldn't make it work, downloaded the 2 required udf's extracted them to the same folder as your script, and i got a milion errors like this:

C:Users7DesktopplayerAPIConstants.au3(38,40) : ERROR: $READ_CONTROL previously declared as a 'Const'.

Global Const $READ_CONTROL = 0x00020000

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:Users7DesktopplayerAPIConstants.au3(39,37) : ERROR: $WRITE_DAC previously declared as a 'Const'.

Global Const $WRITE_DAC = 0x00040000

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:Users7DesktopplayerAPIConstants.au3(40,39) : ERROR: $WRITE_OWNER previously declared as a 'Const'.

Global Const $WRITE_OWNER = 0x00080000

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:Users7DesktopplayerAPIConstants.au3(41,39) : ERROR: $SYNCHRONIZE previously declared as a 'Const'.

Global Const $SYNCHRONIZE = 0x00100000

Really a lot, maybe i just don't have the files in the right places... what do you say?


Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites

Hi, couldn't make it work, downloaded the 2 required udf's extracted them to the same folder as your script, and i got a milion errors like this:

C:Users7DesktopplayerAPIConstants.au3(38,40) : ERROR: $READ_CONTROL previously declared as a 'Const'.

Global Const $READ_CONTROL = 0x00020000

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:Users7DesktopplayerAPIConstants.au3(39,37) : ERROR: $WRITE_DAC previously declared as a 'Const'.

Global Const $WRITE_DAC = 0x00040000

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:Users7DesktopplayerAPIConstants.au3(40,39) : ERROR: $WRITE_OWNER previously declared as a 'Const'.

Global Const $WRITE_OWNER = 0x00080000

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:Users7DesktopplayerAPIConstants.au3(41,39) : ERROR: $SYNCHRONIZE previously declared as a 'Const'.

Global Const $SYNCHRONIZE = 0x00100000

Really a lot, maybe i just don't have the files in the right places... what do you say?

Hi Careca

You have just to copy

APIConstants.au3

APIErrors.au3

NTErrors.au3

WinAPIEx.au3

BASS.au3

BASSconstants.au3

in your Autoit include dir ( C:\Program Files (x86)\AutoIt3\Include\ ) :)


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Hi.

I was almost sure that if the includes were in the same dir as the script, it would work just the same. :S

Thanks.


Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By CYCho
      This file includes all the source codes and a compiled .exe version of zPlayer, which is a stand-alone, simple, intuitive and easy-to-use, yet fully functional audio player.  I made this to suit my purpose and you can tweak it to your taste as the source code is only about 1000 lines which are very much readable.  This player has the following functions:
      - Play back all formats of audio files which can be palyed back by the Windows Media Player in your computer
      - Graphical player similar to embedded Windows Media Player
      - Forward, backward, pause, repeat, shuffle funtions
      - Increase/decrease/mute sound volume
      - Change folders and create playlist for all audio files in that folder and its subfolders, and support for manually-made playlists
      - Save play-back environment when terminating and resume that environment when restarting
      - With one click, you can see DuckDuckGo search results for the file being played back
      - With a double-click, you can play back an item in the playlist
      - Search strings in the playlist
      - Option to see long file names including folder names
      - Resize the playlist window, and restore it to its default position
      - Very small footprint: very low CPU and memory usage, with only about 1MB when compiled
      - You can even hide all the windows and manipulate the player with hotkeys only
    • By CYCho
      zPlayer is the name I used when I introduced the early version of this palyer in my blog back in early 2009 and, therefore, has nothing to do with the mobile media player of the same name which started marketing in 2015.
      After I retired from active duty in 2002 I spent much time listening to music. First I started with CD's and LP's, then quickly moved on to mp3 files. I converted many of my CD's to mp3 and I collected many more from various sources which were freely available at the time. As the number of my mp3 files grew, I put them in folders according to their genres and my favorite classifications. I mainly used Windows Media Player to listen to them and I slowly began to dislike wmp because it had massive user interface while I just wanted to listen to music in the background while I was doing other work in the foreground, hopping between folders from time to time. It was the time I was beginning to learn AutoIt and I thought I should make my own player with AutoIt. Coming from a sales career with no experience in programming, it was not an easy task. Somehow, after about 2 years of learning and trying, I had my own audio player which worked with only hotkeys without any graphical interface. I gave it to some of my friends who were not as computer-savvy as I. They liked it but definitely wanted something to clcik with mouse. So I came up with very rude gui which took a form similar to what it is now.
      The attached source files include one au3 file, one icon file and 14 jpg files. The jpg files are used for drawing a graphical player and are fileinstalled in @DocumentsCommonDir folder. This player uses WMPlayer.OCX as its engine and supports all audio file formats supported by wmp and additional codecs installed. I would like to thank @Bilgus for kind answers to my questions and would appreciate it if anyone could review the code and give me any suggestion. This player works for me, but I don't know whether the code is presentable as an example. I am posting this here with a hope to learn much from AutoIt community.
      PS: 1. An error (Variable used before declaration) was reported and corrected - 02:00 hours GMT,  March 14, 2019
            2. An error in tray menu was corrected -10:00 hours GMT, March14, 2019
            3. AutoIt3Wrapper_Au3Check_Parameters definition was added at the top of the code and all ensuing errors were corrected. - 00:10 hours GMT, March 16 2019
            4. Some features were added. - 10:30 hours GMT, March 18, 2019
                a. Jumping to new play-back position in a file
                b. Support for a manually made playlist
                c. Ctrl+Alt+h hotkey to trigger a help message box
            5. The minimum resizing width of playlist window was set at 450. - 01:10 hours GMT, March 23, 2019
            6. Problems associated with actions taken while in 'paused' status was addressed. - 07:40 GMT, April 12, 2019
            7. An error was found and corrected in restoring previous play-back environment when the mode was 'Shuffled.' - 11:00 GMT, April 17, 2019


      Please see Downloads section of this forum for source code files.
       
    • By careca
      <snip> for the most similar result and convert and download the mp3.
      Script asks for the user to write or paste the song name in the text file, or a list of them, then starts downloading line by line
       
       
×
×
  • Create New...