 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
DerRaphael
Joined: 23 Nov 2007 Posts: 604 Location: 127.0.0.1
|
Posted: Thu Nov 29, 2007 1:10 am Post subject: [Scriplet] SplashAFlash (Movie) |
|
|
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
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
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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Thu Nov 29, 2007 2:04 am Post subject: |
|
|
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 |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 604 Location: 127.0.0.1
|
Posted: Thu Nov 29, 2007 2:33 am Post subject: |
|
|
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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Thu Nov 29, 2007 3:45 am Post subject: |
|
|
| 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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3652 Location: Belgrade
|
Posted: Thu Nov 29, 2007 8:28 am Post subject: |
|
|
Please remove "module" from your title. _________________
 |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 604 Location: 127.0.0.1
|
Posted: Thu Nov 29, 2007 10:06 am Post subject: |
|
|
Dear majkinetor,
your wish is my command
Kind Regards,
DerRaphael |
|
| Back to top |
|
 |
Murp|e
Joined: 12 Jan 2007 Posts: 261 Location: Norway
|
Posted: Sun Feb 03, 2008 10:06 pm Post subject: |
|
|
| 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 |
|
 |
IsNull (n-l-i) Guest
|
Posted: Mon Feb 04, 2008 4:40 pm Post subject: |
|
|
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
|
Posted: Mon Feb 04, 2008 5:33 pm Post subject: |
|
|
need the ie control to have WS_CLIPSIBLINGS maybe? _________________
ʞɔпɟ əɥʇ ʇɐɥʍ |
|
| Back to top |
|
 |
Erittaf
Joined: 02 Nov 2007 Posts: 182
|
Posted: Tue Feb 19, 2008 7:32 pm Post subject: |
|
|
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
edit: I have now tested on 3 vista machines, all have the same errors  |
|
| Back to top |
|
 |
derRaphael! Guest
|
Posted: Wed Feb 20, 2008 7:28 am Post subject: |
|
|
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
|
Posted: Wed Feb 20, 2008 5:22 pm Post subject: |
|
|
| 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 |
|
 |
evandevon222 Guest
|
Posted: Fri Nov 07, 2008 4:14 pm Post subject: animation audio echo-ey |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|