how to detect x64 vs. x86?

2012-09-27 Thread Phil Davis
I know this has been discussed before, but my search reveals nothing. So I ask. On Windows, is there a variable / shell command / registry entry my app can look at to see whether the OS is 32- or 64-bit? It would be nice if you could do it the same way across Vista, 7, 8; but I'll settle for

Re: how to detect x64 vs. x86?

2012-09-27 Thread Thierry Douez
Hi Phil, Maybe enough to start with? @echo off ver | find “2003″ nul if %ERRORLEVEL% == 0 goto v2003 ver | find “XP” nul if %ERRORLEVEL% == 0 goto vxp ver | find “2000″ nul if %ERRORLEVEL% == 0 goto v2000 ver | find “NT” nul if %ERRORLEVEL% == 0 goto vnt echo Unknow OS Version. goto

Re: how to detect x64 vs. x86?

2012-09-27 Thread Thierry Douez
Hi again, Maybe worth a look at: http://forums.techguy.org/7927375-post8.html HTH, Thierry 2012/9/27 Thierry Douez th.do...@gmail.com: Hi Phil, Maybe enough to start with? @echo off ver | find “2003″ nul if %ERRORLEVEL% == 0 goto v2003 ver | find “XP” nul if %ERRORLEVEL% == 0

Re: how to detect x64 vs. x86?

2012-09-27 Thread Matthias Rebbe
Hi Phil, the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx should help. Regards, Matthias -- -- Matthias Rebbe matthias (at) rebbe.tk Tel +49.5741.31 Tel +49.160.5504462 -- Life is too short for boring code Am 27.09.2012 um 09:05 schrieb Phil Davis

Re: how to detect x64 vs. x86?

2012-09-27 Thread Richmond
On 27/09/12 10:05, Phil Davis wrote: I know this has been discussed before, but my search reveals nothing. So I ask. On Windows, is there a variable / shell command / registry entry my app can look at to see whether the OS is 32- or 64-bit? It would be nice if you could do it the same way

Android app - free vs. paid

2012-09-27 Thread Richard Miller
I have an Android app I've been selling only from my website. It works as a free version until the user enters an email address matched to a paid-for entry in a database (meaning, they can pay for the full version from my site, when then upgrades the status of their email address in a central

Re: how to detect x64 vs. x86?

2012-09-27 Thread Richard Gaskin
Phil Davis wrote: On Windows, is there a variable / shell command / registry entry my app can look at to see whether the OS is 32- or 64-bit? It would be nice if you could do it the same way across Vista, 7, 8; but I'll settle for what exists. On an exclusively 64-bit system you'll know it's

Re: how to detect x64 vs. x86?

2012-09-27 Thread Mike Bonner
Not sure this applies to all versions of windows that can be either 64 or 32 bit, but.. It might work to see if: there is a folder program files (x86) (not positive that is the correct way to specify it, not at windows right this sec) If the folder is there its 64 bit, if not its 32 bit. On

Re: Android, Ubuntu, and the JDK

2012-09-27 Thread Richard Gaskin
Mark Wieder wrote: Have any of you been able to successfully set up Android building from LC 5.5.2 under Ubuntu? Don't know about ubuntu, but in fedora it was happy when I pointed it to /usr/lib/java-1.6.0/jvm/java-1.6.0-openjdk Thanks for that, Mark. With your encouragement that Open JDK

Re: SafeWallet

2012-09-27 Thread Bob Sneidar
Thanks Bill. I was actually looking for SafeWallet. Someone created a 16 character password with symbols in it in compliance with the apps recommendations, and are now kicking themselves every time they have to unlock their app. This should be a lesson to all developers. ALWAYS give users a way

Re: DataGrids with no UI

2012-09-27 Thread Bob Sneidar
That sounds great Peter. I'm definitely interested. Bob On Sep 26, 2012, at 6:25 PM, Peter Haworth wrote: Hi Todd, I'm not sure of your timeframe but you might be interested in a product I'm working on, liquidSQL. It will eliminate the scripting and SQL statement coding for a high

Re: Android, Ubuntu, and the JDK

2012-09-27 Thread Bob Sneidar
How is it, after all these years, 64 vs. 32 bit is still biting us in the butt? (Or should it be butting us in the bit?) Just a rhetorical query. Bob On Sep 27, 2012, at 8:26 AM, Richard Gaskin wrote: Mark Wieder wrote: Have any of you been able to successfully set up Android building

Re: DataGrids with no UI

2012-09-27 Thread Peter Haworth
I'll add you to my ever growing list of interested parties. Pete lcSQL Software http://www.lcsql.com On Thu, Sep 27, 2012 at 9:26 AM, Bob Sneidar b...@twft.com wrote: That sounds great Peter. I'm definitely interested. Bob On Sep 26, 2012, at 6:25 PM, Peter Haworth wrote: Hi Todd,

Re: artificially causing a field to be left in a script

2012-09-27 Thread Dr. Hawkins
On Tue, Sep 25, 2012 at 9:59 PM, dunb...@aol.com wrote: on mouseLeave focus on nothing end mouseLeave focus on nothing seems to have possibilities here . . . but not from the mouse, as someone is likely to have reached the field by tab (in fact, probably) If I put the focus on nothing in a

Re: how to detect x64 vs. x86?

2012-09-27 Thread Phil Davis
Wow! Lots of great answers! As usual. Thanks everyone. Phil On 9/27/12 7:42 AM, Mike Bonner wrote: Not sure this applies to all versions of windows that can be either 64 or 32 bit, but.. It might work to see if: there is a folder program files (x86) (not positive that is the correct way to

Re: SafeWallet

2012-09-27 Thread Andre Garzia
On Thu, Sep 27, 2012 at 1:25 PM, Bob Sneidar b...@twft.com wrote: This should be a lesson to all developers. ALWAYS give users a way to change their password. Bob, I don't think this is true. If the encrypted information is sensitive then, in my humble opinion, having a way to change their

Re: artificially causing a field to be left in a script

2012-09-27 Thread Bob Sneidar
You would need to put it in a mouseUp handler in any button a user can click on while editing. If someone tabs out of the field, and the field has been altered, closeField will get sent ok. The issue is clicking a button, and only with OS X (if memory serves me, which is to say check it

Re: SafeWallet

2012-09-27 Thread Bob Sneidar
You may misunderstand me. I don't mean there should be a way to change it if you don't know it. I would call that a reset. I mean there should be a way to change it given that you DO know the old password. The option to reset the password if it is forgotten is wrought with problems, but with

Card Names

2012-09-27 Thread Peter Haworth
It would appear that a card shown in the App Browser with a name like card id 1002 (in other words, the default name when the card was created) doesn't really have that name, or maybe any name at all. I get a runtime error when I try to refer to a card like that by name, e.g. card card id 1002 of

Re: Card Names

2012-09-27 Thread Bob Sneidar
Yup. Cards with no name... well... have no name. LC is faking it. I'm trying to think how this would be useful, but I cannot. I think cards are the only thing this happens with. Odd huh? Wanna know what is even odder? If you delete the 2 in the name, then type it back in again, it now has a

Re: Card Names

2012-09-27 Thread Mark Wieder
Peter Haworth pete@... writes: This seems like pretty strange behavior so wondering if anyone else sees it. Unless I *know* that a card has a name I don't refer to its name, just its id. And its long id if I can get away with it. ...I've been known to ask if word 2 of the short name of card x

Re: Card Names

2012-09-27 Thread Mike Bonner
Its possible to cause this issue with other objects by accident. Happens to me once in a while when typing on a laptop with a trackpad. Accidental selections wiping out the objects name in the inspector. When you come back to it later it shows the id like cards do. Of course then if you click in

Re: Card Names

2012-09-27 Thread Peter Haworth
Yes, that's my conclusion too. As you say, it's easy to find another way to refer to the card. It's just very puzzling why the IDE wouldn't just set the name property to card ID 1002 when the card is created instead of showing incorrect information in the App Browser. Pete lcSQL Software

Re: Card Names

2012-09-27 Thread Scott Rossi
IMO, I don't think it's a good idea to name things using id xyz since that's a specific way to refer to objects. In theory you could name a card card id 4001 while its id is 1004, but that seems like a recipe for confusion. Just like it's not a good idea to name a control using only a number

Re: artificially causing a field to be left in a script

2012-09-27 Thread Dr. Hawkins
On Thu, Sep 27, 2012 at 10:42 AM, Bob Sneidar b...@twft.com wrote: You would need to put it in a mouseUp handler in any button a user can click on while editing. If someone tabs out of the field, and the field has been altered, closeField will get sent ok. The issue is clicking a button, and

SoCal LUG next Thurs, Oct 4 in Pasadena

2012-09-27 Thread Richard Gaskin
Just a quick reminder that the next SoCal LiveCode User Group meeting will be held in Pasadena on Thursday, 4 October, at 7PM - details here: http://forums.runrev.com/viewtopic.php?f=50t=12809 -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com

Re: Card Names

2012-09-27 Thread Peter Haworth
On Thu, Sep 27, 2012 at 4:56 PM, Scott Rossi sc...@tactilemedia.com wrote: IMO, I don't think it's a good idea to name things using id xyz since that's a specific way to refer to objects. In theory you could name a card card id 4001 while its id is 1004, but that seems like a recipe for

Message Equivalent of TextChanged for Graphics?

2012-09-27 Thread Scott Rossi
LC now has a textChanged message that gets sent when text in a field is changed by the user. Is there an equivalent message for when a the fill or color of a graphic has been changed? Or is the only option to run a looping script that checks for changes in visual properties? Thanks Regards,

Re: Card Names

2012-09-27 Thread Scott Rossi
If you're trying to manage card references, did you consider using numbers? Card numbers are unique in the context of a stack. Regards, Scott Rossi Creative Director Tactile Media, UX Design On 9/27/12 5:31 PM, Peter Haworth p...@lcsql.com wrote: No problem referring to a card by it's ID

More weirdness

2012-09-27 Thread Peter Haworth
This is not a new one, but my latest problem has to do with code that doesn't appear to get executed unless there is a breakpoint in the code. In the past, this happened in preOpenxxx handlers and the consensus was that it was a timing issue of some sort. Now I'm getting it in a mouseUp button

Re: Card Names

2012-09-27 Thread Peter Haworth
Thanks for the tip Scott. In this case, I think IDs will work fine. I know they can change but my code is working on a card that is selected by the user on the screen so it's immediate, I'm not storing the ID away for later use. Pete lcSQL Software http://www.lcsql.com On Thu, Sep 27, 2012 at

Re: DataGrids with no UI

2012-09-27 Thread Robert Mann
Hi all! I take the occasion to inform the list that I shall make available a new data structure that i called dbStack. It is a stack that uses arrays in custom properties, on cards, to store any kind of data. But it keeps the analogy of stack/cards/fields. The basic idea I followed was that fields

Re: More weirdness

2012-09-27 Thread Mark Wieder
Pete- Thursday, September 27, 2012, 6:18:38 PM, you wrote: This is not a new one, but my latest problem has to do with code that doesn't appear to get executed unless there is a breakpoint in the code. Without some actual code to look at it's hard to make a relevant comment. However, lack of

Re: More weirdness

2012-09-27 Thread Mike Bonner
Next time this happens, go into the script in the editor, put a space in or type ANYTHING to set the dirty bit (as mentioned you cna delete it afterwards) hit the apply button and then save the stack and see if it works. This is another one that.. well i can't recall how it actually occurs, but

Re: More weirdness

2012-09-27 Thread J. Landman Gay
On 9/27/12 8:18 PM, Peter Haworth wrote: When I run the stack toplevel, all works fine. When I run the stack as a plugin without the breakpoint, the scrolling list field is not populated, no runtime error, no indication of any error of any sort. With the breakpoint, everything works perfectly.

Re: Card Names

2012-09-27 Thread J. Landman Gay
On 9/27/12 7:31 PM, Peter Haworth wrote: No problem referring to a card by it's ID when it has no name - the trick is how to figure out that it has no name since there is nothing to stop someone naming a card in a way that makes it look like the default-but-non-existent name. if there is a