Re: Rookie question - mouseUp on unlocked field
I think making the field clear whenever the user clicks in it it is not nice. If the user want to select some characters, the field clears. Maybe you want to clear the field when the user clicks the first time (so a cursor appears). Then the script would be: on openField put empty into field "Degrees C" put empty into field "Degrees F" end openField A nice one would be: on returnInField send "mouseUp" to button "Convert" end returnInField on enterInField send "mouseUp" to button "Convert" end enterInField So when the user presses return or enter, the convert starts. BTW Do you know how to round numbers on a certain digits? If not, you can use this: set the numberFormat to "0.##" Tim Barber wrote: Hi all I'm just fiddling around trying to learn how to use MC. I'm creating a simple temperature converter, and I've encountered a problem. My card consists of two fields (Degrees C and Degrees F), two labels(for the fields) and two buttons (Convert and Quit) If I understand the MetaTalk reference correctly (and it's more than likely I don't), an unlocked field doesn't receive mouseUp messages unless you hold down the ctrl key (I'm on a Mac). How then do I script the field to clear itself when I click in it? I've tried using a selectionChanged message handler, but it started acting weird. Here is the code I'm using. on selectionChanged #or mouseUp put empty into field "Degrees C" put empty into field "Degrees F" #I want it to clear both fields select field "Degrees C" end selectionChanged #or mouseUp My plan is that you click on either field and it clears both. You then enter whichever value you have (Centigrade or Fahrenheit) into the field, and click the Convert button. Depending on which field you entered, the Convert button calculates the result and populates the other. TIA Tim Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Digest metacard.v003.n530
you can try finding the email address of a given user like that my machine name here is kevin.kplab.com but my email addy isnt [EMAIL PROTECTED], nor [EMAIL PROTECTED] its [EMAIL PROTECTED] you dont know if sendmail is running on localhost, nor if the mail server they ACTUALY use shares a primany domain with the localhost. best just to ask, although it would be nice to see the programme make an educated guess. robin-david hammond lead systems engineer KPL From: andu [EMAIL PROTECTED] Subject: Re: Implementing mailto: Mac Date: Mon, 25 Sep 2000 19:35:42 -0400 (EDT) Thanks to Dave and Sjoerd for arriving at the elegant 2-line solution on a PC: put word 1 to -2 of \ queryRegistry("hkey_local_machine\software\classes\mailto\shell\open\command \") \ into tBrowserPath launch "mailto:"tAddress with tBrowserPath I think originally you wanted to do this within MC. I just found out there is nslookup for windows (probably a port from Linux) which can be called with "shell()" and return the mail server given the domain name([EMAIL PROTECTED]). Nslookup is here: http://www.trumphurst.com/dnsocx/nslookup.exe and the dos commands are : Using nslookup, you can find the email server of your domain, as shown in the sample session below. Start a MS-DOS command prompt (in our case we use shell()) and type the nslookup command: C:\ nslookup Default Server: youserver.yourdomain Address: X.X.X.X set type=MX microsoft.com microsoft.com MX preference = 10, mail exchanger = mail1.microsoft.com microsoft.com MX preference = 20, mail exchanger = mail2.microsoft.com microsoft.com MX preference = 30, mail exchanger = mail3.microsoft.com microsoft.com MX preference = 40, mail exchanger = mail4.microsoft.com microsoft.com MX preference = 50, mail exchanger = mail5.microsoft.com The lowest preference indicates the best (primary) mail server. A mailer would try it first and if it cannot connect to this server, it would use other servers (by order of preference). Now... Does anyone have the AppleEvent equivalent for a Mac? I also found a perl script which gets the mail server name from InternetConfig. It just needs to be translated into Metatalk: use Mac::InternetConfig; print $InternetConfig{kICSMTPHost()}; I tested it and it works I just don't know perl ;-) /H Hugh Senior XIIdigitation, n.: The practice of trying to determine the year a movie was made by deciphering the Roman numerals at the end of the credits. -- Rich Hall, "Sniglets" Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Standalone Metacard Document Distribution Support (SMDDS):Starter Kit suggestion..
On Tue, 26 Sep 2000, David Bovill wrote: (snip) To be specific I suggest that: 1) the Starter Kit be broken down to appropriately compressed minimal engines for each platform, with "progressive download and save" options for all the relevant documentation and tutorials. Sounds reasonable, but would require abandoning InstallShield for the Windows installer (or require the user doing two installs, one to unpack, one to download the stacks, if what they wanted was the Starter Kit). I think this could probably be done (and we have no great love of InstallShield, believe me), but there are a couple of issues: 1) The total size of the download would be larger, because the engine is larger even than the InstallShield engine, not to mention the merely compressed files we distribute for MacOS and UNIX. 2) We'd have to have different installers for people who get the Starter Kit on CDs (either produced by us or others) or who need to install on systems without Internet access (note that the military and other secure facilities are a significant fraction of our installed base). 2) The Metacard site contains a page for cutting and pasting appropriate cross platform HTML code for use in a developers site. 3) A Javascript version is created for auto-platform detection with default code for all platforms for non-Javascript browsers 4) Appropriate html code is available for inclusion in emails, so that the recipient can easily follow the html links in the body of the email message to download the minimal engine. To give an example of how this would help, it would mean that all we would have to do to send someone an example stack is copy the relevant cross platform html code and include it in the email message alongside either the attached stack of another ftp link to where you have posted your specific stack. This would save everyone having to download all the engines for all the platforms, for simple quick distributions. The cross platform browser detection code would also be a useful community resource. Lessons from History... Macromind Director's Shockwave and Xtra plugin architecture only really started to take off when they improved there download site to make it eas(ier) for people download the Xtra and/or plugins for those people that did not already have them pre-installed. As I have to do this in any case, I am offering my services to try and crack this one. If anyone likes the idea and could help in any way please let me know what you think/what you could help with. Bullet proof cross platform browser detection scripts anyone? We'd be happy to host (or be a mirror site) for this type of "runtime installer" package, even if we can't use this system to distribute the Starter Kit itself. Regards, Scott Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
All things are not equal:
Maybe you all know this, but on the Mac I've got into the habit of using "" rather than the less than pleasing "" third estate alternative. Not sure if this is a font/or script editor incompatibility, but my PC balks at the beautiful sight of these characters - replacing the with an anonymous square (which quite rightly the engine rejects -:). Unequal cross-platform development? 8 months of Metacard development and this is all I have to complain about? C'mon Scott this contented customer thing is getting a little tiresome. Can't you throw in a few bugs - just for fun??? Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Rookie question - mouseUp on unlocked field
Sjoerd Op 't Land wrote: I think making the field clear whenever the user clicks in it it is not nice. If the user want to select some characters, the field clears. Maybe you want to clear the field when the user clicks the first time (so a cursor appears). Then the script would be: on openField put empty into field "Degrees C" put empty into field "Degrees F" end openField A nice one would be: on returnInField send "mouseUp" to button "Convert" end returnInField on enterInField send "mouseUp" to button "Convert" end enterInField So when the user presses return or enter, the convert starts. BTW Do you know how to round numbers on a certain digits? Take a look at the description of the "round" function in the Metatalk Reference stack. It explains how to tell MC which digit to round on. Phil If not, you can use this: set the numberFormat to "0.##" Tim Barber wrote: Hi all I'm just fiddling around trying to learn how to use MC. I'm creating a simple temperature converter, and I've encountered a problem. My card consists of two fields (Degrees C and Degrees F), two labels(for the fields) and two buttons (Convert and Quit) If I understand the MetaTalk reference correctly (and it's more than likely I don't), an unlocked field doesn't receive mouseUp messages unless you hold down the ctrl key (I'm on a Mac). How then do I script the field to clear itself when I click in it? I've tried using a selectionChanged message handler, but it started acting weird. Here is the code I'm using. on selectionChanged #or mouseUp put empty into field "Degrees C" put empty into field "Degrees F" #I want it to clear both fields select field "Degrees C" end selectionChanged #or mouseUp My plan is that you click on either field and it clears both. You then enter whichever value you have (Centigrade or Fahrenheit) into the field, and click the Convert button. Depending on which field you entered, the Convert button calculates the result and populates the other. TIA Tim Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list. -- Phil Davis - [EMAIL PROTECTED] (503) 417-7930 x234 - Facilitator Essentials of eBusiness Computing Information Technology Institute http://www.iti.com Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Digest metacard.v003.n530
you can try finding the email address of a given user like that my machine name here is kevin.kplab.com but my email addy isnt [EMAIL PROTECTED], nor [EMAIL PROTECTED] its [EMAIL PROTECTED] Yes but you can do nslookup on bestweb.net to obtain the address of say mail.bestweb.net and send the mail for [EMAIL PROTECTED] there without using your own smtp server , can't you? you dont know if sendmail is running on localhost, nor if the mail server they ACTUALY use shares a primany domain with the localhost. best just to ask, although it would be nice to see the programme make an educated guess. robin-david hammond lead systems engineer KPL From: andu [EMAIL PROTECTED] Subject: Re: Implementing mailto: Mac Date: Mon, 25 Sep 2000 19:35:42 -0400 (EDT) Thanks to Dave and Sjoerd for arriving at the elegant 2-line solution on a PC: put word 1 to -2 of \ queryRegistry("hkey_local_machine\software\classes\mailto\shell\open\command \") \ into tBrowserPath launch "mailto:"tAddress with tBrowserPath I think originally you wanted to do this within MC. I just found out there is nslookup for windows (probably a port from Linux) which can be called with "shell()" and return the mail server given the domain name([EMAIL PROTECTED]). Nslookup is here: http://www.trumphurst.com/dnsocx/nslookup.exe and the dos commands are : Using nslookup, you can find the email server of your domain, as shown in the sample session below. Start a MS-DOS command prompt (in our case we use shell()) and type the nslookup command: C:\ nslookup Default Server: youserver.yourdomain Address: X.X.X.X set type=MX microsoft.com microsoft.com MX preference = 10, mail exchanger = mail1.microsoft.com microsoft.com MX preference = 20, mail exchanger = mail2.microsoft.com microsoft.com MX preference = 30, mail exchanger = mail3.microsoft.com microsoft.com MX preference = 40, mail exchanger = mail4.microsoft.com microsoft.com MX preference = 50, mail exchanger = mail5.microsoft.com The lowest preference indicates the best (primary) mail server. A mailer would try it first and if it cannot connect to this server, it would use other servers (by order of preference). Now... Does anyone have the AppleEvent equivalent for a Mac? I also found a perl script which gets the mail server name from InternetConfig. It just needs to be translated into Metatalk: use Mac::InternetConfig; print $InternetConfig{kICSMTPHost()}; I tested it and it works I just don't know perl ;-) /H Hugh Senior XIIdigitation, n.: The practice of trying to determine the year a movie was made by deciphering the Roman numerals at the end of the credits. -- Rich Hall, "Sniglets" Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list. . Regards, Andu ___ [EMAIL PROTECTED] Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
MetaCard runs fine in Classic
Just to let everyone know, I've run MC in the Classic environment of OS X now. I haven't tested every feature by a long shot, but so far, so good. gc Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
RE: Rookie question - mouseUp on unlocked field
Title: RE: Rookie question - mouseUp on unlocked field Excellent suggestions, thank you. Tim -- From: Sjoerd Op 't Land Reply To: [EMAIL PROTECTED] Sent: Tuesday, 26 September 2000 16:28 To: [EMAIL PROTECTED] Subject: Re: Rookie question - mouseUp on unlocked field I think making the field clear whenever the user clicks in it it is not nice. If the user want to select some characters, the field clears. Maybe you want to clear the field when the user clicks the first time (so a cursor appears). Then the script would be: on openField put empty into field Degrees C put empty into field Degrees F end openField A nice one would be: on returnInField send mouseUp to button Convert end returnInField on enterInField send mouseUp to button Convert end enterInField So when the user presses return or enter, the convert starts. BTW Do you know how to round numbers on a certain digits? If not, you can use this: set the numberFormat to 0.## Tim Barber wrote: Hi all I'm just fiddling around trying to learn how to use MC. I'm creating a simple temperature converter, and I've encountered a problem. My card consists of two fields (Degrees C and Degrees F), two labels(for the fields) and two buttons (Convert and Quit) If I understand the MetaTalk reference correctly (and it's more than likely I don't), an unlocked field doesn't receive mouseUp messages unless you hold down the ctrl key (I'm on a Mac). How then do I script the field to clear itself when I click in it? I've tried using a selectionChanged message handler, but it started acting weird. Here is the code I'm using. on selectionChanged #or mouseUp put empty into field Degrees C put empty into field Degrees F #I want it to clear both fields select field Degrees C end selectionChanged #or mouseUp My plan is that you click on either field and it clears both. You then enter whichever value you have (Centigrade or Fahrenheit) into the field, and click the Convert button. Depending on which field you entered, the Convert button calculates the result and populates the other. TIA Tim Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: All things are not equal:
On Tue, 26 Sep 2000, David Bovill wrote: Maybe you all know this, but on the Mac I've got into the habit of using "" rather than the less than pleasing "" third estate alternative. Not sure if this is a font/or script editor incompatibility, but my PC balks at the beautiful sight of these characters - replacing the with an anonymous square (which quite rightly the engine rejects -:). It's just that the ISO character set doesn't include characters for not-equal, less-than-or-equal, or greater-than-or-equal. So they're translated to non-printing characters when you move a stack from a Mac to a Win32 or UNIX system. At least when you move them back to the Mac, the characters will still be there. Unequal cross-platform development? 8 months of Metacard development and this is all I have to complain about? C'mon Scott this contented customer thing is getting a little tiresome. Can't you throw in a few bugs - just for fun??? We've debated about adding support for these non-printing operators (they don't show up at all on UNIX systems), but so far have decided not to because they'd be pretty hard to edit around with the script editor. At least now they throw an execution error (or sometimes even a script error). Regards, Scott Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Writing and submitting a form from a browser
In VB you can type into text fields of open apps by using "appActivate" (to launch the app or else bring it to the front), followed by the "sendKeys" command (which does the typing). Question: Can you do this with the MC "launch" or some other command/function? That *would* be nice. Seems to me I did something similar once from MC (on Win32) by using "launch", but I wasn't typing stuff into the app - I was passing a filename to it as part of the "launch" command. I was controlling RealPlayer at the time. I'll see if I can locate that stack. Phil Kevin Miller wrote: On 19/9/00 3:15 am, Sound Medicine, Inc. [EMAIL PROTECTED] wrote: I am very unsophisticated as a programer. I can't for the life of me get the post comand to work submitting a form. Is there any simple way to have metacard fill in the fields of a form on a browser like Internet Explorer and somehow hit the submit button? And, while I'm asking, is there an easy way to get the source code of the resultant web page sent back to the browser read into metacard? Thanks to all you folks who have helped me in the past. Peter Bower, M.D. As far as I know, you can't do this. Actually communicating with an open browser to fill in fields on a page and then press a button is not something I've ever though about doing. As a long shot, it might just about be possible on Windows with DDE and the Externals Collection, but I don't think this is very likely and wouldn't have any idea where to start. What you *can* do is post to a URL from inside MetaCard, and then get back the resulting page. Use the post command to do this, and search through the list archives for examples of this command in action. Regards, Kevin Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited (formerly Cross Worlds Computing). Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list. -- Phil Davis - [EMAIL PROTECTED] (503) 417-7930 x234 - Facilitator Essentials of eBusiness Computing Information Technology Institute http://www.iti.com Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Hilited button text
I have set a button with a background pattern and a custom hilite color. When the button is hilited, I want the button text to display white. I have tried setting the forecolor to "white" but it doesn't work. Right now I am managing all the hiliting myself by changing the backcolor and forecolor individually via script. However, changing the backcolor consequently removes the background pattern, so I have to keep track of that too in order to restore it later. It would be a lot easier if the text inverted automatically. What I need is a "hiliteTextColor" property. Anything like that available? Or is the inability to display a custom forecolor over a hilite just a bug? -- Jacqueline Landman Gay| [EMAIL PROTECTED] HyperActive Software | [EMAIL PROTECTED] Custom hypermedia solutions | http://www.hyperactivesw.com 612.724.1596 | 612.724.1562 - fax Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.