Re: Opening custom files by Drag and Drop in standalone application

2005-01-21 Thread Alejandro Tejada
Hi Developers,

Before sending an attachment to bugzilla,
i want to recap the whole issue, for your
additions, confirmations and corrections:

Begin Report

Problem:
When i drag and drop a Rev or MC stack to a
Windows standalone i had created, it opens the
application and the stack dropped over
the executable.

Workaround:
(posted by Frank D. Engels jr.)
Under Windows, you would need to check 
the $1 variable when starting
the standalone, if a stack is
specified, close it right away, 
display an error message, and quit.

(code tested by Alejandro Tejada)

-- use this code in the card script
-- of the first card in the mainstack
-- of the standalone executable

on startup
lock messages 
-- by locking messages, you
-- do not give permission to dropped stacks
-- to execute any script...

if $1 is not empty
then
answer "Please, open this application by double
clicking it's shorcut or the executable file and then
drag and drop your file inside the application's open 
window or click the Open file button within the 
application window."
quit
end if

end startup

Problems of this workaround:
(Ken Ray)
The problem is that the document stack always 
displays before you can do anything about it, 
so it looks funky.

(Alejandro Tejada)
And your file association are rendered
useless, because when you double click
on a document associated to your standalone
application, you trigguer this startup handler
and your application only shows a message and close.

End of Report

What additional information needs this report?

Richard Gaskin wrote:

>This is strange, as I'd thought the only way 
>for an app to be able to open documents dropped 
>on it is to assign acceptable file types to it 
>in the Windows registry.

>If you're not making that registry entry how 
>does the OS know to allow your app to accept 
>drops of those files?

Honestly, i don't know... but in Windows
if i drop a stack over any executable created 
with MC or RR, the stack opens and the application 
is launched.

Richard Gaskin wrote:

>Bugzilla has one of the ugliest UIs ever, 
>but after a few posts it becomes acceptable.

I'll give it a try. :-)

al

=
Visit my site:
http://www.geocities.com/capellan2000/




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening custom files by Drag and Drop in standalone application

2005-01-19 Thread Jan Schenkel
--- Ken Ray <[EMAIL PROTECTED]> wrote:
> On 1/18/05 11:55 AM, "Alejandro Tejada"
> <[EMAIL PROTECTED]> wrote:
> 
> > I have read this useful Programming tip in your
> > website, and TRY to use it in an standalone
> > player to OPEN ONLY the custom documents of that
> > application.
> > 
> > But when i drag and drop a Rev or MC stack to a
> > standalone i had created, IT OPENS... :-(
> 
> Yes, and this may be a bug (I tested Windows) - you
> get the path to the
> stack you dropped in $1, but you don't get any
> messages to trap to prevent
> that stack from opening... I tried trapping
> preOpenStack and openStack, and
> it only triggers for the application, not the
> document stack that is
> opening.
> 
> I think you should log this as a bug, unless someone
> has an answer for
> this...
> 

Could it be that the engine regards this as a separate
mainStack and that's why the "regular" mainStack
doesn't receieve any messages ; have you tried
trapping (pre)OpenStack messages from a backscript ?

Jan Schenkel.

=
Quartam - Tools for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)



__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening custom files by Drag and Drop in standalone application

2005-01-19 Thread Ken Ray
On 1/19/05 8:30 AM, "Frank D. Engel, Jr." <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> I'd imagine you can fix this on a Mac by intercepting the apple event
> which is sent to the stack.

You're right about that... and you can intercept the event *before* the
stack window opens of the document stack.
 
> Under Windows, you would need to check the $1 variable when starting
> the standalone, or check the openStacks or some such, and if a stack is
> specified, close it right away, display an error message, and quit?
> (Just a guess)

Yes, although the problem is that the document stack always displays before
you can do anything about it, so it looks funky. :-)

I still think this is a bug, though...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening custom files by Drag and Drop in standalone application

2005-01-19 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'd imagine you can fix this on a Mac by intercepting the apple event 
which is sent to the stack.

Under Windows, you would need to check the $1 variable when starting 
the standalone, or check the openStacks or some such, and if a stack is 
specified, close it right away, display an error message, and quit?  
(Just a guess)

On Jan 19, 2005, at 2:42 AM, Ken Ray wrote:
On 1/18/05 11:55 AM, "Alejandro Tejada" <[EMAIL PROTECTED]> wrote:
on Mon, 17 Jan 2005
Ken Ray wrote:
When you launch an MC/Rev app, any command line
information is sent to the
application and is retrievable via *environment
variables* numbered $0 on up.
Hi Ken,
I have read this useful Programming tip in your
website, and TRY to use it in an standalone
player to OPEN ONLY the custom documents of that
application.
But when i drag and drop a Rev or MC stack to a
standalone i had created, IT OPENS... :-(
Yes, and this may be a bug (I tested Windows) - you get the path to the
stack you dropped in $1, but you don't get any messages to trap to 
prevent
that stack from opening... I tried trapping preOpenStack and 
openStack, and
it only triggers for the application, not the document stack that is
opening.

I think you should log this as a bug, unless someone has an answer for
this...
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB7m8J7aqtWrR9cZoRAqfKAJ9jbz4wJFx8Tn+dqcuZFFhvAEcnrgCdFk9P
DmaXNkhcervAzxKrmhX2pps=
=pBG+
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening custom files by Drag and Drop in standalone application

2005-01-18 Thread Ken Ray
On 1/18/05 11:55 AM, "Alejandro Tejada" <[EMAIL PROTECTED]> wrote:

> on Mon, 17 Jan 2005
> Ken Ray wrote:
> 
>> When you launch an MC/Rev app, any command line
>> information is sent to the
>> application and is retrievable via *environment
>> variables* numbered $0 on up.
> 
> Hi Ken,
> 
> I have read this useful Programming tip in your
> website, and TRY to use it in an standalone
> player to OPEN ONLY the custom documents of that
> application.
> 
> But when i drag and drop a Rev or MC stack to a
> standalone i had created, IT OPENS... :-(

Yes, and this may be a bug (I tested Windows) - you get the path to the
stack you dropped in $1, but you don't get any messages to trap to prevent
that stack from opening... I tried trapping preOpenStack and openStack, and
it only triggers for the application, not the document stack that is
opening.

I think you should log this as a bug, unless someone has an answer for
this...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Opening custom files by Drag and Drop in standalone application

2005-01-18 Thread Alejandro Tejada
on Mon, 17 Jan 2005 
Ken Ray wrote:

> When you launch an MC/Rev app, any command line
> information is sent to the
> application and is retrievable via *environment 
> variables* numbered $0 on up.

Hi Ken,

I have read this useful Programming tip in your
website, and TRY to use it in an standalone
player to OPEN ONLY the custom documents of that
application.

But when i drag and drop a Rev or MC stack to a
standalone i had created, IT OPENS... :-(

I really expected that a REV or MC stack
do not open in my standalone...

The documents that i scripted to open
are a custom made binary string.

When my standalone is opened, i could 
click a button to read and open the binary 
string correctly...
but i want too that my files open by drag
and drop and that ANY OTHER FILE like
rev, mc or custom made extensions stacks 
do not open in my standalone...

How could i script this functionality in
my standalone?

Thanks in advance.

al


=
Visit my site:
http://www.geocities.com/capellan2000/


		
__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution