Jump to content

A little player


trancexx
 Share

Recommended Posts

It's about msvfw32.dll. That's rather powerfull media tool.

This script uses it to play music and video files. Very basic but should be enough for a demonstration. No decompressors are used (that means what it means).

Script:

LittlePlayer.au3

Macros, constants if someone would be inspired:

Global Const $MCIWNDOPENF_NEW = 0x000001 ;open a new file
Global Const $MCIWNDF_NOAUTOSIZEWINDOW = 0x000001 ;when movie size changes
Global Const $MCIWNDF_NOPLAYBAR = 0x000002 ;no toolbar Const
Global Const $MCIWNDF_NOAUTOSIZEMOVIE = 0x000004 ;when window size changes
Global Const $MCIWNDF_NOMENU = 0x000008 ;no popup menu from RBUTTONDOWN
Global Const $MCIWNDF_SHOWNAME = 0x000010 ;show name in caption
Global Const $MCIWNDF_SHOWPOS = 0x000020 ;show position in caption
Global Const $MCIWNDF_SHOWMODE = 0x000040 ;show mode in caption
Global Const $MCIWNDF_SHOWALL = 0x000070 ;show all

Global Const $MCIWNDF_NOTIFYMODE = 0x000100 ;tell parent of mode change
Global Const $MCIWNDF_NOTIFYPOS = 0x000200 ;tell parent of pos change
Global Const $MCIWNDF_NOTIFYSIZE = 0x000400 ;tell parent of size change
Global Const $MCIWNDF_NOTIFYERROR = 0x001000 ;tell parent of an error
Global Const $MCIWNDF_NOTIFYALL = 0x001F00 ;tell all

Global Const $MCIWNDF_NOTIFYANSI = 0x000080

Global Const $MCIWNDF_NOTIFYMEDIA = 0x000880 ;tell parent of media change
Global Const $MCIWNDF_NOTIFYMEDIAW = 0x000800 ;tell parent of media change

Global Const $MCIWNDF_RECORD = 0x002000 ;Give a record button
Global Const $MCIWNDF_NOERRORDLG = 0x004000 ;Show Error Dlgs for MCI cmds?
Global Const $MCIWNDF_NOOPEN = 0x008000 ;Don't allow user to open things

Global Const $MCIWND_CLOSE = 0x0804
Global Const $MCIWND_PLAY = 0x0806
Global Const $MCIWND_SEEK = 0x0807
Global Const $MCIWND_STOP = 0x0808
Global Const $MCIWND_PAUSE = 0x0809
Global Const $MCIWND_STEP = 0x080E
Global Const $MCIWND_RECORD = 0x080F
Global Const $MCIWND_SAVE = 0x0813
Global Const $MCIWND_CUT = 0x0851
Global Const $MCIWND_COPY = 0x0852
Global Const $MCIWND_PASTE = 0x0853
Global Const $MCIWND_RESUME = 0x0855
Global Const $MCIWND_DELETE = 0x0856


Global Const $MCIWND_CAN_CONFIG = 0x0495
Global Const $MCIWND_CAN_EJECT = 0x0494
Global Const $MCIWND_CAN_PLAY = 0x0490
Global Const $MCIWND_CAN_RECORD = 0x0492
Global Const $MCIWND_CAN_SAVE = 0x0493
Global Const $MCIWND_CAN_WINDOW = 0x0491
Global Const $MCIWND_CHANGESTYLES = 0x0487
Global Const $MCIWND_EJECT = 0x046B
Global Const $MCIWND_GETACTIVETIMER = 0x0484
Global Const $MCIWND_GETALIAS = 0x0489
Global Const $MCIWND_GET_DEST = 0x048E
Global Const $MCIWND_GETDEVICE = 0x04E1
Global Const $MCIWND_GETDEVICEID = 0x0464
Global Const $MCIWND_GETEND = 0x0469
Global Const $MCIWND_GETERROR = 0x04E4
Global Const $MCIWND_GETERRORA = 0x0480
Global Const $MCIWND_GETERRORW = 0x04E4
Global Const $MCIWND_GETFILENAME = 0x04E0
Global Const $MCIWND_GETFILENAMEA = 0x047C
Global Const $MCIWND_GETFILENAMEW = 0x04E0
Global Const $MCIWND_GETINACTIVETIMER = 0x0485
Global Const $MCIWND_GETLENGTH = 0x0468
Global Const $MCIWND_GETMODE = 0x04CE
Global Const $MCIWND_GETMODEA = 0x046A
Global Const $MCIWND_GETMODEW = 0x04CE
Global Const $MCIWND_GETPALETTE = 0x047E
Global Const $MCIWND_GETPOSITION = 0x04CA
Global Const $MCIWND_GETPOSITIONA = 0x0466
Global Const $MCIWND_GETPOSITIONW = 0x04CA
Global Const $MCIWND_GETREPEAT = 0x0473
Global Const $MCIWND_GET_SOURCE = 0x048C
Global Const $MCIWND_GETSPEED = 0x0471
Global Const $MCIWND_GETSTART = 0x0467
Global Const $MCIWND_GETSTYLES = 0x0488
Global Const $MCIWND_GETTIMEFORMAT = 0x04DC
Global Const $MCIWND_GETTIMEFORMATA = 0x0478
Global Const $MCIWND_GETTIMEFORMATW = 0x04DC
Global Const $MCIWND_GETVOLUME = 0x046F
Global Const $MCIWND_GETZOOM = 0x046D
Global Const $MCIWND_NEW = 0x04EA
Global Const $MCIWND_NEWA = 0x0486
Global Const $MCIWND_NEWW = 0x04EA
Global Const $MCIWND_NOTIFYERROR = 0x04CD
Global Const $MCIWND_NOTIFYMEDIA = 0x04CB
Global Const $MCIWND_NOTIFYMODE = 0x04C8
Global Const $MCIWND_NOTIFYPOS = 0x04C9
Global Const $MCIWND_NOTIFYSIZE = 0x04CA
Global Const $MCIWND_OPEN = 0x04FC
Global Const $MCIWND_OPENA = 0x0499
Global Const $MCIWND_OPENW = 0x04FC
Global Const $MCIWND_OPENINTERFACE = 0x0497
Global Const $MCIWND_PLAYFROM = 0x047A
Global Const $MCIWND_PLAYREVERSE = 0x048B
Global Const $MCIWND_PLAYTO = 0x047B
Global Const $MCIWND_PUT_DEST = 0x048F
Global Const $MCIWND_PUT_SOURCE = 0x048D
Global Const $MCIWND_REALIZE = 0x0476
Global Const $MCIWND_RETURNSTRING = 0x04EE
Global Const $MCIWND_RETURNSTRINGA = 0x048A
Global Const $MCIWND_RETURNSTRINGW = 0x04EE
Global Const $MCIWND_SENDSTRING = 0x04C9
Global Const $MCIWND_SENDSTRINGA = 0x0465
Global Const $MCIWND_SENDSTRINGW = 0x04C9
Global Const $MCIWND_SETACTIVETIMER = 0x0482
Global Const $MCIWND_SETINACTIVETIMER = 0x0483
Global Const $MCIWND_SETOWNER = 0x0498
Global Const $MCIWND_SETPALETTE = 0x047F
Global Const $MCIWND_SETREPEAT = 0x0472
Global Const $MCIWND_SETSPEED = 0x0470
Global Const $MCIWND_SETTIMEFORMAT = 0x04DB
Global Const $MCIWND_SETTIMEFORMATA = 0x0477
Global Const $MCIWND_SETTIMEFORMATW = 0x04DB
Global Const $MCIWND_SETTIMERS = 0x0481
Global Const $MCIWND_SETVOLUME = 0x046E
Global Const $MCIWND_SETZOOM = 0x046C
Global Const $MCIWND_VALIDATEMEDIA = 0x0479
Edited by trancexx

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

Hey nice job.

Msvfw32.dll is used by windows when working with Video files. It contains program code used for the compression and decompression of the video data.

So this doesn't depend on Windows Media Player? Maybe DirectShow?

Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
Link to comment
Share on other sites

it isn't working for me...

It won't open files.

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

  • 1 year later...

I did some changes to the code and also added support for video files. Few solutions regarding gui are maybe strange (read dumb) but that's very much intentional for reasons known only to me :).

New script is attached and form a symbiosis with the first post.

If you don't find at least one part of this post funny then you are likely dead.

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

Link to comment
Share on other sites

Thanks Yashied. Btw, congratulations on your MVP status. You earned it ;) .

Nice demontration of the DLL trancexx! Can be very usefull to play this kind of stuff :)

Btw, I do not know who decides this, but you should have also earned the title without to suck-up to you. B)

UEZ

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

Nice demontration of the DLL trancexx! Can be very usefull to play this kind of stuff :)

Btw, I do not know who decides this, but you should have also earned the title without to suck-up to you. ;)

UEZ

Thanks.

About latter, I'm sure I was evaluated, but there are some special circumstances involved in my case. I am aware of them, maybe even more than one could think.

Edited by trancexx

♡♡♡

.

eMyvnE

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...