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 

[Scriplet] SplashAFlash (Movie)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Thu Nov 29, 2007 1:10 am    Post subject: [Scriplet] SplashAFlash (Movie) Reply with quote

This is Splash-A-Flash (Movie). It's fully based on Sean's COM and IE Libraries and builds a Gosub Label for splashing a Flash Movie before starting an Application.

HOT-EDIT:


Thank you, Sean Very Happy

Size, SplashLength, File or URL (even Both) are supported



Code:

#NoTrayIcon
#WinActivateForce

#Include COM.ahk
#Include IE.ahk

; Make up a Minimum GUI
Gui, Add, Button, gGuiExit, App/Exit Button

; Either Enter
filePathName    := A_ScriptDir . "\flashsplash.swf"
; or
URL       := "http://www.autohotkey.net/~DerRaphael/flashsplash.swf"

; SplashFlash Width & Height
flashWidth   := 400
flashHeight   := 250
flashVanishTime := 10      ; This Value in Seconds
Gosub, SplashAFlash

Gui, Show
return

SplashAFlash:
Gui, 1:+Disabled
Gui, 99:+owner1
Gui, 99:+LastFound -Caption +AlwaysOnTop -SysMenu

hWnd := WinExist()
IE_Init()
splashPWB:=IE_Add(hWnd,"","",flashWidth,flashHeight)

filePathName := A_ScriptDir . "\flashsplash.swf"
If ( FileExist( filePathName ) ) {
   StringReplace, filePathName, filePathName, `\, /
   URL := "file:///" . filePathName
} else {
   HTML = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"">"
   HTML .= "<html><head></head><body style=""margin:0px;padding:0px;"">"
   HTML .= "<object data=""" . URL . """ type=""application/x-shockwave-flash"""
   HTML .= " height=""" . flashHeight . """ width=""" . flashWidth . """>"
   HTML .= "<param name=""movie"" value=""" . URL . """>"
   HTML .= "<param name=""loop"" value=""true""></object></body></html>"


}
IE_LoadURL(splashPWB, URL)
Loop
{
   If (IE_ReadyState(splashPWB)=4)
      break
}
Gui, 99:Show, Center h%flashHeight% w%flashWidth%
WinActivate, ahk_id %hWnd%
WinWaitActive, ahk_id %hWnd%
SetTimer, 99GuiClose, % flashVanishTime * 1000
Return

99GuiClose:
   Gui, 1:-Disabled
   Gui, 99:Destroy
return
GuiExit:
ExitApp
return


It also may be downloaded
This Example Script
http://www.autohotkey.net/~DerRaphael/SplashAFlash.AHK

The Flash Movie with a nice Graphic Smile
http://www.autohotkey.net/~DerRaphael/flashsplash.swf

Have Fun


DerRaphael


Last edited by DerRaphael on Thu Nov 29, 2007 9:27 am; edited 2 times in total
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1397

PostPosted: Thu Nov 29, 2007 2:04 am    Post subject: Reply with quote

OK, I thought it's a common sense, but I seemed to be wrong.
First, you defeated the purpose of the Standard Library.
Second, you should not include other's scripts in your distribution without permission. Actually I don't mind it, but I expected at least comments/links of the original posts in the distribution.
Back to top
View user's profile Send private message
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Thu Nov 29, 2007 2:33 am    Post subject: Reply with quote

First of all, I apologize Sean, didn't want to offend you. I thought, by naming you at the this thread's very beginning would point out, that i am not the author of those libraries. Just demontration of how these can be used.

I included those in the ZIP file, for a simple reason, there are still people around, who dont have those Standard Libraries in their repository. And to give those the opportunity to run this little script of mine out of the box, i made the ZIP. The idea was: just download, extract and enjoy.

Well, now i removed the ZIP from top's Download list.

Kindest Regards.
DerRaphael
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1397

PostPosted: Thu Nov 29, 2007 3:45 am    Post subject: Reply with quote

DerRaphael wrote:
First of all, I apologize Sean, didn't want to offend you.

Although a little discouraged, I wasn't offended as I could guess your good intention for doing it. Sorry if I impressed you that way. And, don't get me wrong, you can freely include my scripts in your distribution. I'd just like to see comments/links to the original posts. Even it's merely my request/expectation.

BTW, things like including the Standard Library scripts may not be a good idea in the long run, IMHO. It may be of an immediate help to the beginners, but then they may not try to learn/read documentation ever. Who knows some of them have a great potential in scripting/programming? However, they would never find it unless he/she starts to learn at all.
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3652
Location: Belgrade

PostPosted: Thu Nov 29, 2007 8:28 am    Post subject: Reply with quote

Please remove "module" from your title.
_________________
Back to top
View user's profile Send private message MSN Messenger
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Thu Nov 29, 2007 10:06 am    Post subject: Reply with quote

Dear majkinetor,
your wish is my command

Kind Regards,

DerRaphael
Back to top
View user's profile Send private message
Murp|e



Joined: 12 Jan 2007
Posts: 261
Location: Norway

PostPosted: Sun Feb 03, 2008 10:06 pm    Post subject: Reply with quote

Surely, this example will be much appreciated by whoever finds/needs it. DerRaphael seems to have created something usefull, shared it with the community and given credit to those who deserve it. Why not give him some credit???
Back to top
View user's profile Send private message Visit poster's website
IsNull (n-l-i)
Guest





PostPosted: Mon Feb 04, 2008 4:40 pm    Post subject: Reply with quote

Is there a way, to put some Controls (Buttons, text, edits...) in front of this flash movie? I've treid some things, but the flash (IE) Control is always on top and hides other Controls.

Id would be nice, if I can set a flash movie as background for my applications.

regards
IsNull
Back to top
ahklerner



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Mon Feb 04, 2008 5:33 pm    Post subject: Reply with quote

need the ie control to have WS_CLIPSIBLINGS maybe?
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
Erittaf



Joined: 02 Nov 2007
Posts: 182

PostPosted: Tue Feb 19, 2008 7:32 pm    Post subject: Reply with quote

works great on my XP machine but when i try on my vista machine I get two errors. see screenshots here:
http://www.autohotkey.net/~Erittaf/error.jpg

I have the latest flash (ver 9,0,115,0) and am on IE 7. All my IE settings are set to the defaults for testing as well. I don't think it's a software problem on my machine... any ideas? I don't know html at all Crying or Very sad

edit: I have now tested on 3 vista machines, all have the same errors Sad
Back to top
View user's profile Send private message Send e-mail
derRaphael!
Guest





PostPosted: Wed Feb 20, 2008 7:28 am    Post subject: Reply with quote

since i dont have vista i cannot trace down the error you snapshot.

but i guess, that the swf-file (it was generated using ming with php) is somehow faulty. did you try any other swf?

greets
derRaphael
Back to top
Erittaf



Joined: 02 Nov 2007
Posts: 182

PostPosted: Wed Feb 20, 2008 5:22 pm    Post subject: Reply with quote

yeah I have.. several swf's have all failed with the same error. The error seems (to me) to point to the html, though I don't know why....
Back to top
View user's profile Send private message Send e-mail
evandevon222
Guest





PostPosted: Fri Nov 07, 2008 4:14 pm    Post subject: animation audio echo-ey Reply with quote

Hi! Here's a link to a topic I started to get help for my echo-ey audio in my flash animations. ANY advice is appreciated.

Thanks, Evs
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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