RE: how to "halt" when another program is opened?

2001-08-15 Thread Morgan Bonar

Is the projector running on 2000? Ive run across situations where "halt"
doesn't exit the presentation on 2000 machines. Instead, you have to use
"quit". I usually write a simple script like so:

If the runMode contains "Author" then
  halt
else
  quit
end if

This is so that in authoring, it will just stop the presentation, and not
quit out of director.

hth...

Morgan Bonar
Chief Creative Officer
p. 858.569.3400 ext.15
f.  858.569.3410
[EMAIL PROTECTED]
http://www.webcardinc.com

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Leif E. Wells
Sent: Wednesday, August 15, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: Re:  how to "halt" when another program is opened?

Could it be the "Animate in Background" setting in your projector? I
think that it should be on for the script to continue after the
projector loses the focus.

>That should work; what kind of script are you in when you do this?
>Does the installer open?
>
>Try recompiling all scripts too, just to make sure.
>
>
>At 02:59 PM 8/15/01 -0400, Kelly Fischbach wrote:
>>I'm trying to open another program, and have my projector quit as soon as
I
>>do so. How do I do that?
>>
>>I have:
>>installerFile = the moviePath & "QuickTime:QuickTime Installer"
>>open installerFile
>>halt
>>
>>
>>But the projector keeps going.  What am I doing wrong?
>>
>>thanks!
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
>email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo.  Thanks!]



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: reading binary registry keys

2001-08-07 Thread Morgan Bonar

Mark,
baReadRegNumber reads the integer (or DWORD) values from the registry, but
cannot read binary keys (i.e. EnableAutorun buried in the HKEY_CURRENT_USER
branch).
So far, this is one of the only problems that I have had with Buddy API,
otherwise its saved my bacon many times!

Morgan-


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Mark A. Boyd
Sent: Monday, August 06, 2001 6:47 PM
To: [EMAIL PROTECTED]
Subject: Re:  reading binary registry keys

At 18:18 06/08/2001, Morgan Bonar wrote:
>Does anybody know how to read/write binary registry keys, other than
>MasterApp?? Buddy API doesn't seem to support binary...

I'm not certain exactly what you're referring to as binary, but is this
what your're looking for?

baReadRegNumber()
baWriteRegNumber()

Reads/writes numbers in the registry.


--
Mark A. Boyd
Keep-On-Learnin' :)


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




Sorry List!!!

2001-08-07 Thread Morgan Bonar

Hey Guys,
Sorry about the Return Receipts!!! :(
Im trying to figure out how to configure IE to send email in plain text so I
can post to this list, and obviously I don't know quite as much about it as
I thought I did...



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




reading binary registry keys

2001-08-06 Thread Morgan Bonar

Does anybody know how to read/write binary registry keys, other than
MasterApp?? Buddy API doesn't seem to support binary...

Morgan-


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: tracking time elapsed using the short time

2001-08-02 Thread Morgan Bonar

Steve,
Can you use "the ticks"?? This is a running count and can only (I think) be
reset by re-booting the computer.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Steven Sacks
Sent: Thursday, August 02, 2001 1:57 PM
To: [EMAIL PROTECTED]
Subject:  tracking time elapsed using the short time

Hello,

Director 6.5, Win NT

I'm developing a program for Windows NT and I need to write
a script that will track the amount of time a user has spent
in each Director movie.  I can't use the timer because I am
also applying this code to older movies that reset the timer
over and over.

How do I compensate for either 12 hour and 24 hour clocks?
Does hmstoframes or framestohms come into play?

I only need to track hours and minutes, not seconds.

Here's my pseudoscript - can anyone help me finish it?

on startMovie
  global gStartTime
  set gStartTime = the short time
  -- do something to the short time for 12/24 clocks
  -- turn it into a string that looks like "HH:MM"
end

on stopMovie
  global gStartTime, gTotalTime
  set gStopTime = the short time
  set gTotalTime = gStopTime - gStartTime
  -- Can you do direct math on the short time like that?
end

Thanks in advance,
Steven Sacks


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: tracking time elapsed using the short time

2001-08-02 Thread Morgan Bonar

Steve,
Be sure that you use float values and round-up consistently, or else you
will start losing seconds(and eventually minutes) converting back and forth.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Steven Sacks
Sent: Thursday, August 02, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: RE:  tracking time elapsed using the short time

> Steve,
> Can you use "the ticks"?? This is a running count and can only (I
> think) be
> reset by re-booting the computer.

This seems easier:

on startMovie
  gStartTime = the ticks
end

on stopMovie
  gEndTime = the ticks
  gTotalTime = gEndTime - gStartTime
  tHours = gTotalTime/60/60/60
  tMins = (gTotalTime/60/60) mod 60
  if tMins < 10 then tMins = "0" & tMins
  timeElapsed = tHours & ":" & tMins
end

I also need to load the time in a H:MM format, which will
be an item in a list, and will add cumulative time to it,
so I need to convert it back to do so.

on convertTimeToTicks
  tickMins = tMins*60*60
  tickHours = tHours*60*60*60
  totalTicks = tHours + tMins
  newTime = newTime + totalTicks
  --convert back to H:MM
end

Is there an easier way to do this?


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: Having trouble eliminating QT reference to PCs

2001-08-02 Thread Morgan Bonar

Dave,
I think that your problem is that externally linked casts are still loaded
at launch of the movie. Therefore, the Windows side is still loading the
cast with the QT members before you can swap for the cast with the mpg's.
Try having an empty cast as your linked cast, and on start-up, determine the
platform, and swap the cast accordingly.
Of couse, this will cause a challenge in that you will need to bring the
movies on screen with lingo, because there will be no "hard" links to
them...

Morgan-


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 10:09 AM
To: [EMAIL PROTECTED]
Subject:  Having trouble eliminating QT reference to PCs

I'm having the most unusual problem.  I'm making a cross platform program
that utilizes MPGs and has completely separate casts for each platform
(DirectXtra cast for the Windows side and Quicktime cast for the Mac side).
Even though I'm dynamically linking the cast after determining the platform
upon launch -- the program is now showing a Quicktime Initialization error
on
the Windows side.
The program has a stub for each side and goes through an "intro" movie
before it comes to the final program.  It's at the final program that it
shoots out the error.
I'm certain there is no "Quicktime" cast member in the internal cast and
there is no xtra reference to the QT Asset in the Protected Movie.  (Not
that
is should matter since it isn't the stub, of course)

Is there any way the original movie could still be looking for the QT
Asset even if there isn't a single reference to it anywhere in the program?

Thanks in advance,
Dave

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: physical path to "My Documents" folder for the logon user in Windows 2000

2001-08-01 Thread Morgan Bonar

Have you taken a look at Buddy API function list? It has some built-in
functions that seem similar to what you are looking for...

Morgan-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Robert Wingate
Sent: Wednesday, August 01, 2001 3:20 PM
To: [EMAIL PROTECTED]
Subject: RE:  physical path to "My Documents" folder for the logon
user in Windows 2000

> is there a way to find out the paht to the "my documents" folder
> for the current logon user?

Well, you'd need the logon user's name, which you may be able to find
with the following:

strCurUser = baReadRegString(
"Software\Microsoft\Windows\CurrentVersion\Explorer", "Logon User Name",
"error", "HKEY_CURRENT_USER" )

So that would put the 'My Documents' folder at something like:

strDir = "C:\Documents and Settings\" & strCurUser & "\My Documents\"

No guarantees that this is the best place to find strCurUser though.
There may be a more reliable place, but I haven't found it. You get the
idea.

HTH
Rob

/*
* Rob Wingate, Software Human*
* http://www.vingage.com *
* mailto:[EMAIL PROTECTED] *
*/

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: ALERT

2001-08-01 Thread Morgan Bonar

You can also use the MUI xtra, which is included with Director. It is a
little bit more complex, but once you have the shell built, it is pretty
powerful.

Morgan-
You can't do it w/Lingo - you need an Xtra.

I use DirectOS from updateStage (updateStage.com).

Josie

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Roman Pekarek
Sent: Wednesday, August 01, 2001 10:37 AM
To: [EMAIL PROTECTED]
Subject:  ALERT


I want to create an "system-like" prompt .. Something like lingo command
alert("message") , but its
only with OK button .. I need OK and Cancel. How to create in Director ? Is
there any lingo command
?

Pytkin


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: Index out of range error

2001-07-31 Thread Morgan Bonar


Var is going to be equal to the value of the integer in the list, not the
position, and when you use the brackets (I think) in accessing property
lists, it is looking for a positional value. So the first time thru the
repeat loop, it would work, because the var = 2 (which is a position in the
list), but the next time thru, var = 5 (which is outside the range of the
list)...


morgan-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Gene Fritzinger
Sent: Tuesday, July 31, 2001 6:19 AM
To: [EMAIL PROTECTED]
Subject:  Index out of range error

Hello List,
I'm trying to set mSetCriteria from a list named gGeokeyList from within a
repeat loop. An example of what the list might look like is [2, 5, 7]. I
comment the line at which I get an "Index out of range" error.  Can anyone
see what I'm doing incorrectly?

on mouseUp
  closeTables
  closeDB
  set gDB = 0
  set gTable = 0
  set gDB = new(XTRA "V12dbe", the moviePath & "GEO.v12", "ReadWrite", "top
secret")
  CheckV12Error()
  set gTable = new(Xtra "V12table", mGetRef(gDB), "regmast")
  CheckV12Error()
  repeat with var in gGeokeyList
x = gGeokeyList[var]  --THIS IS WHERE I GET AN "INDEX OUT OF RANGE"
ERROR
mSetCriteria(gTable, "PARENT01", "=", x)
mOrderBy(gTable, "PARENT01")
mSelect(gTable)
put mGetSelection(gTable, "LITERAL", 1, mSelectCount(gTable), ", ",
return, "DESCRIPT") after field "RegionSelectedGeographies"
  end repeat

  go to "RegionPop"
  updatestage
end

Thanx in advance,
g fritzinger


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: closing MIAWs = a fatal error

2001-07-31 Thread Morgan Bonar

John,
I have had the same problem recently, and after some digging into
macromedia's site, found that you cannot initiate a closing of a MIAW window
from itself. Apparently, after you call the handler from the MIAW window, it
expects a return value internally, and if the window does not exist anymore,
it can cause some nasty crashes.

My workaround was to have an object in the main stage, and have a property
in that object that can set to true, therefore signaling the object to close
the window, not directly from the window itself.

Hope this helps...

Morgan-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
John Sproul
Sent: Tuesday, July 31, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject:  closing MIAWs = a fatal error

I have a problem with a project and a number of its MIAWs.  I have tried a
number of ways to close an MIAW

GLOBAL myMIAW

on mouseDown
tell the stage to forget myMIAW
end


on mouseDown

tell the stage to forget window "myMIAW"
end
---

on mouseDown
forget window "myMIAW"
end

and none of these have worked.  Has anybody had a similar problem and been
able to solve it?  Thanks.

John Sproul
Vision Technologies Group


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: keeping miaw in foreground always

2001-07-30 Thread Morgan Bonar

Try the Buddy API xtra... it is a great resource for this situation, as well
as managing all open windows.
Don't worry too much about using multiple xtras... I have had projects that
use dozens of xtras, and havent seen any major performance issues.

Morgan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
nik crosina
Sent: Monday, July 30, 2001 9:29 AM
To: [EMAIL PROTECTED]
Subject:  keeping miaw in foreground always

Hi !

I am working on a CD-ROM that includes a littl epop-up window showing search
results obtinae from a search across multiple pdf file.

As the main movie is full screen, after the window pops up and I click on
the main movie, it disappears behind the main movie.

Is there a way of preventing that and keeping the pop-up in the foreground
until i specifically close it with 'close' or 'forget'? possibly without an
xtra, as I am already using 2..

Thanks guys,
Nik

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: action called on attaching behavior to sprite

2001-07-30 Thread Morgan Bonar

I like your ideas, but unfortunately, I do need to have access to the
properties for the action to function properly.
I tired "isOKToAttach", but again I don't have the props. set yet...
Is there some place after the list is returned (so that we have access to
the props.) that an action can be called??

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
LePhuronn
Sent: Friday, July 27, 2001 7:27 PM
To: [EMAIL PROTECTED]
Subject: Re:  action called on attaching behavior to sprite

I actually used this feature in one of my uni projects not so long ago - an
interactive tutorial system then talks between Director in authroing mode
and MIAWs.

The only way I could get the routines I wanted to run ONCE was to call them
from the "isOKToAttach" handler, although this may cause some erratic
behaviour if you're cropping images through Lingo - it was fine for me to
send messages around, but actual sprite manipulation might mess things up.

Give it a try though...

Thinking about it, are you wanting to set any properties for the crop or
not? If it's fully automated then I think the "RunPropertyDialog" handler
only runs the once and runs before "GetPropertyDescriptionList" if it
exists.

LePhuronn


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




RE: action called on attaching behavior to sprite

2001-07-30 Thread Morgan Bonar

But if the handler is called before the list is returned, then we don't have
access to the properties, no??

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
R. Bhakti Klein
Sent: Friday, July 27, 2001 6:36 PM
To: [EMAIL PROTECTED]
Subject: Re:  action called on attaching behavior to sprite

oh i didn't see that post of buzz's. that's interesting, although i
don't see why it should have to call it twice. anyhoo, yes setting a
boolean property the first time is a fine and dandy workaround...
-bh

Kerry Thompson wrote:
>
> >Does anybody know the way to call a handler as soon as a behavior is
> >attached(after getPropertyDescriptionList has been initialized) to a
sprite
> >in authoring?
>
> I think Buzz Kettles posted something about this the other day. If I
> remember right, he said that GPDL is called twice--once to put up the
> dialog, and again when you finish.
>
> Maybe you could check to see if the properties have been set, then call
> your handler. I haven't tried it, but it's an idea.
>
> Cordially,
>
> Kerry Thompson
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]

--
R. Bhakti Klein
Instructional Media Developer, Distributed Learning Workshop
http://www.dlworkshop.net/
··
Baritone, Wicki6
http://www.wicki6.com
···
"On Earth, you can only do little things;
but you can do them with a lot of Love."
  -- Mother Theresa

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]




action called on attaching behavior to sprite

2001-07-27 Thread Morgan Bonar

Hey all,
Does anybody know the way to call a handler as soon as a behavior is
attached(after getPropertyDescriptionList has been initialized) to a sprite
in authoring? I am trying to create a utility that crops sprites during
authoring.
Thanks.

Morgan


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]