Re: lingo-l Negative verbose statement

2004-09-29 Thread Carl West
Petro Bochan wrote:
Hello,
In this behavior:
property aSprite
property aValue
on beginSprite me
  set the aSprite of me to sprite the spriteNum of me
  set the aValue of me to 9
end beginSprite
on doSomething me
  set the aValue of me to the -aValue of me
end doSomething
--
using verbose syntax I'm trying to set property variable aValue to a
negative meaning. I know I can do this like set the aValue to -9 or
aValue = -aValue, but I want it the way this is done in doSomething
handler. Director complains saying Expected end of statement. I played
around with the brackets but to no result. Is there a workaround about this?
My test (MX, Mac)
in a parent script named 'bar':
property pFoo
on new me
  return me
end
on setme me, arg
  pFoo = arg
end
on test me
  put pFoo,pFoo
  put -pFoo,-pFoo
  put me.pFoo,me.pFoo
  put -me.pFoo,-me.pFoo
  put -(me.pFoo),-(me.pFoo)
  put the pFoo of me, the pFoo of me
  put -the pFoo of me, -the pFoo of me
  put -(the pFoo of me), -(the pFoo of me)
end


In the message window:
boo = new(script bar)
boo.setme(7)
boo.test()
-- pFoo 7
-- -pFoo -7
-- me.pFoo 7
-- -me.pFoo -7
-- -(me.pFoo) -7
-- the pFoo of me 7
-- -the pFoo of me -7
-- -(the pFoo of me) -7
boo.setme(-1234567)

boo.test()
-- pFoo -1234567
-- -pFoo 1234567
-- me.pFoo -1234567
-- -me.pFoo 1234567
-- -(me.pFoo) 1234567
-- the pFoo of me -1234567
-- -the pFoo of me 1234567
-- -(the pFoo of me) 1234567

--
Carl West
mailto:[EMAIL PROTECTED]
http://carl.west.home.comcast.net
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l resourceid reserved word?

2004-09-29 Thread Robert Tweed
- Original Message - 
From: roymeo [EMAIL PROTECTED]

 Never, EVER depend upon the capitalization of #symbols.

For network operations, you don't even need to use symbols, so the problem
is easily avoided. I always do something like this:

vArgs = [:]
vArgs[ resourceid ] = 123
vArgs[ HelloWorld ] = Hello, World!
netID = postNetText( theURL, vArgs )
...

- Robert
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]


lingo-l buddyAPI's baCopyFileProgress hogs the computer

2004-09-29 Thread Mendelsohn, Michael
Hi list...

I'm using baCopyFileProgress, and hiding the (WinXP) Copying files
dialog.  Instead, I'm using a custom Flash animation, which progresses
based on the baCopyProgressUpdate movie script handler.

The issue is that *all* lingo stops while it's copying (in my case, a
100MB file which takes time). Within my Flash copying... sprite, I
have a Cancel button, but it doesn't register as clicked while copying
is going on.

In the baCopyProgressUpdate handler, I have:
if( _mouse.clickOn = sprite(flashCopyingSprite)) then trace(Clicked
cancel)

...but _mouse.clickOn doesn't even change.  Anyone know of any
workarounds?

Thanks as always,
Michael M.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]


lingo-l Opening Word

2004-09-29 Thread Jeremy Aker
Hello LINGO-Lers,
Anyone know if it is possible to open a Microsoft Word document to a 
specific line, anchor, or page via LINGO? I'm concerned mostly with 
doing this on the Windows platform.

-Jeremy Aker
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l Opening Word

2004-09-29 Thread Daniel Plaenitz
At 11:09 29.09.2004 -0400, you wrote:
Hello LINGO-Lers,
Anyone know if it is possible to open a Microsoft Word document to a 
specific line, anchor, or page via LINGO? I'm concerned mostly with doing 
this on the Windows platform.
lingo plays a minor role here, methinks.
How would you tell Word to open and display a specific whatEver in the 
first place? I think if you call word with command line parameters it will 
interprete these as file names and try to open them one by one, if there is 
any way to fine-control word via the command line then its unknown to me.

The only thing that comes to mind is to create a vba-script which reads 
some parameters from an external file and then does what you want using all 
the power of that application control language. Lingo would be needed to 
write that external control file and to call Word to open the document.

A kludge, but it could be done.
daniel
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l Opening Word

2004-09-29 Thread Bertil Flink
Check out VBScript Xtra:
http://www.xtramania.com/Products/VbScriptXtra/


Bertil Flink
Creative Media




- Original Message - 
From: Jeremy Aker [EMAIL PROTECTED]
To: Lingo-L [EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 5:09 PM
Subject: lingo-l Opening Word


 Hello LINGO-Lers,
 
 Anyone know if it is possible to open a Microsoft Word document to a 
 specific line, anchor, or page via LINGO? I'm concerned mostly with 
 doing this on the Windows platform.
 
 -Jeremy Aker

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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: lingo-l Director MX Azeri (Latin) on a Windows machine

2004-09-29 Thread Daniel Plaenitz
At 17:29 28.09.2004 +0100, you wrote:
Hi all,
We've got this project where we have to do localized versions of our
software, one of them accepting Russian, and the other Azeri Latin.
The former works, we are able to copy and paste Russian text and it
works no problem.
The latter doesn't; for those who don't know, Azeri Latin is one of
these alphabets that contains characters that you won't find anywhere
else; eg the upside down e called Schwa. We tried a couple of things,
but that Schwa character is never recognised when pasted and you get a ?
Instead.
Would somebody have a clue of the best way to get Azeri Latin working?
Which OS/Version? Can you control the machine or is it for general 
distribution?
(There is an option in XP to force unicode to all applications and I saw it 
force some Chinese Hanzi to show which just wouldn't show otherwise)

daniel
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l Negative verbose statement

2004-09-29 Thread Petro Bochan
Thanks folks, it helped a lot. So the solution I was looking for is:

set the aValue of me to - the aValue of me

it works even without brackets! Great!

All the best
Petro Bochan



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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: lingo-l Director MX Azeri (Latin) on a Windows machine

2004-09-29 Thread Alexandre Cop
Hi Daniel,

We've got the problem in the office with Win2000 SP4 and XP SP1  SP2.

I think the target machines are XP, but I'm not sure (no control over it).

The only time where I've seen it working was on Win2000, where we copied the text from 
Word and pasted it in Flash MX2004 Pro - without any changes!

I've tinkered with the options in XP, but to no avail... It feels as though the 
problem comes from here though! Unless my spider-senses are a bit off, of course...

... Alex ... 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Daniel Plaenitz
 Sent: 29 September 2004 17:31
 To: [EMAIL PROTECTED]
 Subject: Re: lingo-l Director MX  Azeri (Latin) on a 
 Windows machine
 
 At 17:29 28.09.2004 +0100, you wrote:
 Hi all,
 
 We've got this project where we have to do localized versions of our 
 software, one of them accepting Russian, and the other Azeri Latin.
 
 The former works, we are able to copy and paste Russian text and it 
 works no problem.
 The latter doesn't; for those who don't know, Azeri Latin is one of 
 these alphabets that contains characters that you won't find 
 anywhere 
 else; eg the upside down e called Schwa. We tried a couple 
 of things, 
 but that Schwa character is never recognised when pasted and 
 you get a ?
 Instead.
 
 Would somebody have a clue of the best way to get Azeri 
 Latin working?
 
 Which OS/Version? Can you control the machine or is it for 
 general distribution?
 (There is an option in XP to force unicode to all 
 applications and I saw it force some Chinese Hanzi to show 
 which just wouldn't show otherwise)
 
 daniel
 
 [To remove yourself from this list, or to change to digest 
 mode, go to http://www.penworks.com/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/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!]


lingo-l Re: buddyAPI's baCopyFileProgress hogs the computer

2004-09-29 Thread Cole Tierney
The issue is that *all* lingo stops while it's copying (in my case, a
100MB file which takes time). Within my Flash copying... sprite, I
have a Cancel button, but it doesn't register as clicked while copying
is going on.
I've seen this too. Not sure that there are any workarounds. Love to 
know if there are! Be nice if there was a period lingo callback.

--
Cole
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l Negative verbose statement

2004-09-29 Thread roymeo
And without the brackets it makes it more confusing to read!
Horay!
roymeo
At 12:30 PM 9/29/2004, you wrote:
Thanks folks, it helped a lot. So the solution I was looking for is:
set the aValue of me to - the aValue of me
it works even without brackets! Great!
All the best
Petro Bochan
-
roymeo(AT)brokenoffcarantenna.com
-
i used to love you
back when you wrote poetry
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l Re: buddyAPI's baCopyFileProgress hogs the computer

2004-09-29 Thread roymeo
That commany is synchronous, not asynchronous/threaded.
You'll need to find an asynchronous widget to do that with.  I've used 
custom ActiveX's and custom Xtras in the past (which isn't much help (as I 
can't give these to you), I know).

roymeo
At 12:42 PM 9/29/2004, you wrote:
The issue is that *all* lingo stops while it's copying (in my case, a
100MB file which takes time). Within my Flash copying... sprite, I
have a Cancel button, but it doesn't register as clicked while copying
is going on.
I've seen this too. Not sure that there are any workarounds. Love to know 
if there are! Be nice if there was a period lingo callback.

--
Cole
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]
-
roymeo(AT)brokenoffcarantenna.com
-
i used to love you
back when you wrote poetry
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l Director MX Azeri (Latin) on a Windows machine

2004-09-29 Thread Daniel Plaenitz
At 17:38 29.09.2004 +0100, you wrote:
Hi Daniel,
We've got the problem in the office with Win2000 SP4 and XP SP1  SP2.
I think the target machines are XP, but I'm not sure (no control over it).
The only time where I've seen it working was on Win2000, where we copied 
the text from Word and pasted it in Flash MX2004 Pro - without any changes!

I've tinkered with the options in XP, but to no avail... It feels as 
though the problem comes from here though! Unless my spider-senses are a 
bit off, of course...
The setting I was thinking of is in xp/control panel/regional 
settings/advanced/language for programs which do not support unicode (I 
have a German localized xp here so the propper naming might differ a bit)
But I doubt it would help much as you have no control over the target machines.

daniel
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: lingo-l Re: buddyAPI's baCopyFileProgress hogs the computer

2004-09-29 Thread Mendelsohn, Michael
Thanks, for the info Roymeo.  And I appreciate that it's the thought
that counts.

And thanks, Cole, for responding, too.

- MM




 (which isn't much help (as I can't give these to you), I know).


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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: lingo-l Opening Word

2004-09-29 Thread Stephen Ingrum
Here's a list of command line switches I found for Word (no page or line 
number)
For page/line numbers you could use Buddy API and the sendkeys function.

HTH,
Stephen

*Type* 	*To do this*
*/a* 	Starts Word and prevents add-ins and global templates (including 
the Normal template) from being loaded automatically.

The */a* switch also locks the setting files; that is, the setting files 
cannot be read or modified if you use this switch.
*/l*/addinpath/ 	Starts Word and then loads a specific Word add-in.
*/m* 	Starts a new instance of Word without running any AutoExec macros.
*/m*/macroname / 	Starts Word and then runs a specific macro. The */m* 
switch also prevents Word from running any AutoExec macros.
*/n* 	Starts a new instance of Word with no document open. Documents 
opened in each instance of Word will not appear as choices in the 
*Window* menu of other instances.
*/t*/templatename/ 	Starts Word with a new document based on a template 
other than the Normal template.
*/w* 	Starts a new instance of Word with a blank document. Documents 
opened in each instance of Word will not appear as choices in the 
*Window* menu of the other instances.
(no switch) 	A new Word window is opened with a blank document using the 
existing instance of the Word program.


The following Word startup (command-line) switches are not listed in 
Word Help.

*Type * 	*To do this *
*/c* 	Starts a new instance of Word and then invokes NetMeeting.
*/q* 	Starts Word without displaying the Word splash screen. This switch 
is only available in Word 2000 Service Release 1 (SR-1).
*/r* 	Starts Word in the background, makes changes in the Windows 
registry, and then quits. This switch forces a re-register of Word in 
the Windows registry.
*/u* 	Has no effect and does not start Word.
*/x* 	Starts a new instance of Word from the operating shell (for 
example, to print in Word). This instance of Word responds to only one 
DDE request and ignores all other DDE requests and multi-instances. If 
you are starting a new instance of Word in the operating environment 
(for example, in Windows), it is recommended that you use the */w* 
switch, which starts a fully functioning instance.
*pathname\filename* 	Starts Starts Word with a specific document open.

*Note* To open multiple files at once, use pathname\filename.
Example: C:\Program Files\Microsoft Office\Office\Winword.exe 
c:\filename1.doc c:\filename2.doc
(any other switch) 	Starts a new instance of Word. For example, if you 
start Word with just the / and no switch, or with any unlisted switch 
combination, Word just starts a new instance of Word with a new blank 
document.

The following Word startup (command-line) switch is listed in Word 2000 
Help but not listed in Word 2002 or Word 2003 Help.
*Type* 	*To do this*
*/m*file/n/ 	Starts Word and then opens the specified file on the Most 
Recently Used (MRU) list on the *File* menu.


Daniel Plaenitz wrote the following on 9/29/2004 10:55 AM:
At 11:09 29.09.2004 -0400, you wrote:
Hello LINGO-Lers,
Anyone know if it is possible to open a Microsoft Word document to a 
specific line, anchor, or page via LINGO? I'm concerned mostly with 
doing this on the Windows platform.

lingo plays a minor role here, methinks.
How would you tell Word to open and display a specific whatEver in the 
first place? I think if you call word with command line parameters it 
will interprete these as file names and try to open them one by one, 
if there is any way to fine-control word via the command line then its 
unknown to me.

The only thing that comes to mind is to create a vba-script which 
reads some parameters from an external file and then does what you 
want using all the power of that application control language. Lingo 
would be needed to write that external control file and to call Word 
to open the document.

A kludge, but it could be done.
daniel
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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/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: lingo-l Opening Word

2004-09-29 Thread Thomas W.J.C. McCrystal
Anyone know if it is possible to open a Microsoft Word document to a 
specific line, anchor, or page via LINGO? I'm concerned mostly with 
doing this on the Windows platform.
On the Mac side, you could do this with an ApplesScript.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]