AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AVI player

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
vlcek



Joined: 19 Feb 2007
Posts: 323
Location: Czech Republic

PostPosted: Tue Jul 01, 2008 6:07 pm    Post subject: AVI player Reply with quote

Hi all. I searched some avi player and I writing new function, but problem.
Code:

gui,-sysmenu
menu,menu,add,otevřít,open
menu,menu,add,konec,exit
gui,menu,menu
Gui, 1:Add,text,,
Gui, 1:Show, x0 y0 W600 H500 , AviPlayer
return
open:
FileSelectFile, someavi, 3,, Select multimedia file, Multimedia files (*.avi)
If someavi =""
return
else
avi := "%someavi%"
Gui, 2:+owner1
Gui, 2:-caption
Gui, 2:Show, x50 y50 W550 H450, title
WinGet, whndl ,ID, title
whndl += 0
buffer:= "0"
vsc := VarSetCapacity(buffer,256,0)
mcicom = open %avi% type avivideo alias xbmpeg
gosub winmm
mcicom = window xbmpeg handle %whndl%
gosub winmm
mcicom = play xbmpeg from 0
gosub winmm
OnMessage(0x47, "WM_WINDOWPOSCHANGED")
Return
WM_WINDOWPOSCHANGED()
{
gosub moving
}
moving:
WinGetPos, X, Y, Width, Height, Pil
WinMove, title,, x+50, y+50
return
winmm:
Result := DllCall("Winmm.dll\mciSendStringA", "str", mcicom, "str", buffer, "Uint", 256, "Uint", 0 )
return
GuiClose:
mcicom = close xbmpeg
gosub winmm
exit:
ExitApp

When I select thw avi file, the program can't play the selected file.
Can you help me with this?

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
_________________
Thanks.
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6264

PostPosted: Tue Jul 01, 2008 10:47 pm    Post subject: Reply with quote

Quote:
I searched some avi player


Do you have a link for the original post. It might help..

Smile
_________________
Back to top
View user's profile Send private message
vlcek



Joined: 19 Feb 2007
Posts: 323
Location: Czech Republic

PostPosted: Wed Jul 02, 2008 6:33 am    Post subject: Reply with quote

The original program code is here: http://www.autohotkey.com/forum/topic10617.html
menus otevřít=open and konec=exit isn't in original.
_________________
Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group