Re: object beneath mouseLoc?

2011-07-04 Thread J. Landman Gay
On 7/4/11 7:59 PM, Nicolas Cueto wrote: Well, my solution was to use Jacqueline's idea of polling all the controls for an "if within". Also followed Dave Cragg's advice about mouseLoc (x,y) values. That's how my Klondike solitaire game worked too, using a flag if the mouse was down and the x,y

[TEASER] Google OAuth 2.0 demo screencast

2011-07-04 Thread Andre Garzia
Hello Folks, Today I managed to implement Google OAuth 2.0 authorization with LiveCode. The library is very simple to use, it will authorize you but it will not help you with the other thousand Google APIs. All it does is authorize access to protected resources, you then access those resources usi

Livecode Server

2011-07-04 Thread stephen barncard
I am trying to get a revserver instance working at Dreamhost. But the site structure is different there than the on-rev server examples included. There is no public-html level at Dreamhost. - so the question is - has anyone successfully installed a revserver instance at Dreamhost using only a .ht

chasing the focus

2011-07-04 Thread Slava Paperno
I'm trying to figure out why a field is losing focus and I don't know which tools to use for the hunt. At the very end of a mouseUp handler of a button I have this: on mouseUp . focus on field "SearchTarget" put the name of the focusedObject & cf after msg end mouseUp And I do see [field

Re: object beneath mouseLoc?

2011-07-04 Thread Nicolas Cueto
Well, my solution was to use Jacqueline's idea of polling all the controls for an "if within". Also followed Dave Cragg's advice about mouseLoc (x,y) values. Stack works fast. But on machines that are VERY old... Thanks to all. -- Nicolas Cueto (iPhone) __

Re: object beneath mouseLoc?

2011-07-04 Thread Nicolas Cueto
> Hi, Nicolas. Your problem sounded familiar, so I found a relevant previous > post. Does it work for you? Dick, Wasn't familiar with frontscripts so tried your suggestion, but with the mouseMove in my group control. Didn't work well, though. The target object's id got returned, but the mou

Re: object beneath mouseLoc?

2011-07-04 Thread Colin Holgate
If you were making a word game, where you want the consecutively passed over letters to join the increasingly long string, you would only need to check the x,y being within the eight tiles or less that are next to the last letter chosen. At least one of those tiles is likely to already be in the

Re: object beneath mouseLoc?

2011-07-04 Thread Dave Cragg
On 4 Jul 2011, at 14:11, Ken Ray wrote: > The only current way is through polling during > mouseMove, which, although ugly, is usually fast enough even if you have > hundreds of objects: > > > on mouseMove >if the mouse is down then >repeat with x = 1 to the number of controls >

Re: object beneath mouseLoc?

2011-07-04 Thread Nicolas Cueto
> For the OP: my Klondike stack polls "is within" on dozens of controls on > each mouseMove message, many times per second, and shows no sign of delay. > It's very fast. Jacqueline, If you could give a figure more precise than "dozens", I'd appreciate it. I too had thought about polling for "is

RE: Anyone using MobGUI?

2011-07-04 Thread John Dixon
:-) > John- > > Monday, July 4, 2011, 1:32:18 PM, you wrote: > > > A kodak and 'Lamb's Navy Rum' it is then...:-) > > Sheep have ships? Methinks Andre's not the only one who's been hitting > the rum... > > -- > -Mark Wieder > mwie...@ahsoftware.net

Re: Tab Key

2011-07-04 Thread Warren Kuhl
Ken, I can't that you enough This was what the problem was. Appreciate you taking the time this weekend to help me! Warren On Sun, Jul 3, 2011 at 3:35 PM, Ken Ray wrote: > > >> This is a scrolling list field.  The platform is Windows. >> >> Thanks for any help! > > The problem is that the

Re: Anyone using MobGUI?

2011-07-04 Thread Mark Wieder
John- Monday, July 4, 2011, 1:32:18 PM, you wrote: > A kodak and 'Lamb's Navy Rum' it is then...:-) Sheep have ships? Methinks Andre's not the only one who's been hitting the rum... -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing l

RE: record sound problem on windows

2011-07-04 Thread Slava Paperno
PS: After I set the codec to be "ima4" the file recorded in Windows XP was playable by Windows Media Player and other players. S. Alex, Your Windows test wave file sounds like some recordings I've seen where the sample rate or sample size is not stated correctly in the file's header. I've seen t

RE: Anyone using MobGUI?

2011-07-04 Thread John Dixon
A kodak and 'Lamb's Navy Rum' it is then...:-) > CHALLENGE ACCEPTED! > > next conference... please bring a camera to record any brilliance that might > or might not happen. ___ use-livecode mailing list use-l

Re: Anyone using MobGUI?

2011-07-04 Thread Andre Garzia
On Mon, Jul 4, 2011 at 5:25 PM, John Dixon wrote: > > Andre...:-) > > I would pay money to watch someone drink 3 pints of rum > CHALLENGE ACCEPTED! next conference... please bring a camera to record any brilliance that might or might not happen. > > > From: an...@andregarzia.com > > > the on

RE: Anyone using MobGUI?

2011-07-04 Thread John Dixon
Andre...:-) I would pay money to watch someone drink 3 pints of rum > From: an...@andregarzia.com > the only time my mind is brilliant is after 3 pints of rum, just before > falling asleep, then I am brilliant but I never remember... _

Re: Anyone using MobGUI?

2011-07-04 Thread Andre Garzia
On Mon, Jul 4, 2011 at 3:18 PM, Chipp Walters wrote: > And there I thought I was just not able to 'keep up' with > your brilliant mind! > the only time my mind is brilliant is after 3 pints of rum, just before falling asleep, then I am brilliant but I never remember... > > On Mon, Jul 4, 2011

Re: Adventures in Unicode

2011-07-04 Thread Richmond Mathewson
On 07/04/2011 10:44 PM, Slava Paperno wrote: Richmond, Why don't you switch to using revBrowser to do all your text display, font resizing, and font-family changes? Works like a clock... and you don't have to hold your breath. (But there's no revBrowser for mobiles.) I think the sheer effort o

RE: Adventures in Unicode

2011-07-04 Thread Slava Paperno
Ah, thanks, John. I must look into this. S. > -Original Message- > From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] On Behalf Of John Dixon > Sent: Monday, July 04, 2011 3:52 PM > To: use-livecode@lists.runrev.com > Subject: RE: Adventures in Un

RE: record sound problem on windows

2011-07-04 Thread Slava Paperno
Alex, Your Windows test wave file sounds like some recordings I've seen where the sample rate or sample size is not stated correctly in the file's header. I've seen this happen with some audio drivers that are not capable of recording at a particular combination of sample rate and depth. I downlo

Re: [ANN] aagPasswordField DropTool

2011-07-04 Thread Andre Garzia
Mark, No clue, but could you try and provide feedback? Cheers andre On Mon, Jul 4, 2011 at 4:36 PM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Andre, > > Does it work if the input method (or keyboard) is Arabic or Chinese? > > -- > Best regards, > > Mark Schonewille > > Econo

RE: Adventures in Unicode

2011-07-04 Thread John Dixon
Slava... Browser control – UIWebView Page 41 iOS 4.6.1 relase notes... > Richmond, > > Why don't you switch to using revBrowser to do all your text display, font > resizing, and font-family changes? Works like a clock... and you don't have > to hold your breath. (But there's no revBrowser for

RE: Adventures in Unicode

2011-07-04 Thread Slava Paperno
Richmond, Why don't you switch to using revBrowser to do all your text display, font resizing, and font-family changes? Works like a clock... and you don't have to hold your breath. (But there's no revBrowser for mobiles.) Slava > -Original Message- > From: use-livecode-boun...@lists.run

Re: [ANN] aagPasswordField DropTool

2011-07-04 Thread Mark Schonewille
Andre, Does it work if the input method (or keyboard) is Arabic or Chinese? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugi

Re: [ANN] aagPasswordField DropTool

2011-07-04 Thread Andre Garzia
\O/ On Mon, Jul 4, 2011 at 4:12 PM, Ken Ray wrote: > For his first foray at developing a DropTool, Andre Garzia created > aagPasswordField, an über-simple DropTool that provides a simple password > field that you can drag and drop into your stacks. > > You can get the password from the control b

Re: object beneath mouseLoc?

2011-07-04 Thread Dick Kriesel
Hi, Nicolas. Your problem sounded familiar, so I found a relevant previous post. Does it work for you? On 3/19/07 3:38 AM, "Dick Kriesel" wrote: > Here's another technique for identifying the object at the mouseLoc. This > technique is different because it works with no repeat loop, no chec

[ANN] aagPasswordField DropTool

2011-07-04 Thread Ken Ray
For his first foray at developing a DropTool, Andre Garzia created aagPasswordField, an über-simple DropTool that provides a simple password field that you can drag and drop into your stacks. You can get the password from the control by getting "the plaintextpassword" of it; pressing backspace or

Re: object beneath mouseLoc?

2011-07-04 Thread Richmond Mathewson
On 07/04/2011 09:51 PM, Ken Ray wrote: Personally I'd like to kick that concept to the curb and have all mouseXXX function relate to where the actual mouse *is*, regardless of whether it's state is up or down... That would break scripts that need to act on mouseRelease, wouldn't it? OK, you're

Adventures in Unicode

2011-07-04 Thread Richmond Mathewson
possibly subtitled "Wading through treacle". My 'eternal' Devawriter didn't display glyphs properly once they were entered via a slightly mephistophelian process into the OUTPUT field, and at least one of my beta-testers was getting quite crochety about it (mainly as I had had no epiphanies of la

Re: interesting custom property behavior...

2011-07-04 Thread Ken Ray
>> Sure enough, messages are being locked, and there's a note in the IDE script >> for the handler related to bug #8345: > > Yeah, I ran into this when I was throwing PowerTools together as well > and had to some some arcane scripting to get around the problem when > trying to set default propert

Re: object beneath mouseLoc?

2011-07-04 Thread Ken Ray
>> Personally I'd like to kick that concept to the curb and have all mouseXXX >> function relate to where the actual mouse *is*, regardless of whether it's >> state is up or down... > > That would break scripts that need to act on mouseRelease, wouldn't it? OK, you're right about mouseRelease; th

Re: Anyone using MobGUI?

2011-07-04 Thread Chipp Walters
And there I thought I was just not able to 'keep up' with your brilliant mind! On Mon, Jul 4, 2011 at 12:36 PM, Andre Garzia wrote: > sometimes I am afraid that someone will actually read the code on > RevOnRockets, specially the processrequest handler... > > that code is so full of hacks that w

Re: System Date/Time Format Problems

2011-07-04 Thread Pete
Thanks a lot Ken, this looks great and I'll be trying it out very soon. I might add the ability to return the 3-char timezone since I just found out how to get hold of that from OS X (it's in word -2 of the shell date command) Pete Molly's Revenge On Mon, Jul 4,

Re: Anyone using MobGUI?

2011-07-04 Thread Andre Garzia
On Mon, Jul 4, 2011 at 2:28 PM, Mark Wieder wrote: > Chipp- > > Sunday, July 3, 2011, 8:30:17 PM, you wrote: > > > I can more understand developers protecting scripts when those scripts > are > > part of tools which don't end up inside the codebase of another > developer's > > project. For instan

Re: Anyone using MobGUI?

2011-07-04 Thread Mark Wieder
Chipp- Sunday, July 3, 2011, 8:30:17 PM, you wrote: > I can more understand developers protecting scripts when those scripts are > part of tools which don't end up inside the codebase of another developer's > project. For instance it might be a good idea to protect a plugin script > which acts as

Re: object beneath mouseLoc?

2011-07-04 Thread J. Landman Gay
On 7/4/11 8:11 AM, Ken Ray wrote: Personally I'd like to kick that concept to the curb and have all mouseXXX function relate to where the actual mouse *is*, regardless of whether it's state is up or down... That would break scripts that need to act on mouseRelease, wouldn't it? For the OP: my

Re: interesting custom property behavior...

2011-07-04 Thread Mark Wieder
Ken- Monday, July 4, 2011, 6:03:54 AM, you wrote: > Sure enough, messages are being locked, and there's a note in the IDE script > for the handler related to bug #8345: Yeah, I ran into this when I was throwing PowerTools together as well and had to some some arcane scripting to get around the p

Re: System Date/Time Format Problems

2011-07-04 Thread Ken Ray
I have a handler I've been using for a while that works great with formatting dates. Here it is (sorry for the length, but it's heavily commented - oh and watch for word wraps): -- --| FUNCTION: stsFormattedDate --| --| Author:

Re: record sound problem on windows

2011-07-04 Thread Alex Shaw
Hi Benjamin See.. http://quality.runrev.com/show_bug.cgi?id=9606 regards alex On 4/07/11 9:14 PM, Benjamin Beaumont wrote: Hi Alex, If you report this in the QCC we'll investigate it. If you could upload the stack that is demonstrating the problem at your end that will help us a great deal.

Re: object beneath mouseLoc?

2011-07-04 Thread Ken Ray
> Never mind, cheer up! > > I just set up a stack consisting of one card and an image called "gl", and a > field called "POZ". > > I put this into the card script: > > on mouseMove > if the mouseLoc is not within the rect of img "GL" then >put "outwith" into field "POZ" > else >

Re: delete array element

2011-07-04 Thread Ken Ray
> When I try to use that command in the Message box, I get an error: > > global myVariable; put "A" into myVariable[1]; put "B" into myVariable[2]; > delete global myVariable[2] > > "Error description: delete: bad variable expression" This is one of those cases where the Message Box can't resol

Re: interesting custom property behavior...

2011-07-04 Thread Ken Ray
>> It turns out when you set a custom prop from within a LC custom property >> inspector, it doesn't pass the setProp message. I'm sure this design is on >> purpose, but I wonder why? > > I believe the property inspector locks messages before setting > properties. But that's just dragged from so

Re: object beneath mouseLoc?

2011-07-04 Thread Richmond Mathewson
On 07/04/2011 02:25 PM, Nicolas Cueto wrote: I have a feeling that on mouseLeave works whether the mouse button is up or down. About mouseLeave from the docs: "If the mouse button is down when the mouse pointer leaves the control, the mouseLeave message is not sent until the mouse button is r

RE: object beneath mouseLoc?

2011-07-04 Thread John Dixon
Would 'mouseWithin' help ? on mouseDown repeat until the mouseLoc is not within the rect of me put the mouseLoc wait 0 millisecs with messages end repeat beep end mouseDown > >> I have a feeling that on mouseLeave works whether the mouse button > >> is up or down. > > >

Re: object beneath mouseLoc?

2011-07-04 Thread Keith Clarke
What about the on drag... messages - if the mouse is down during movements then these should be active? Best, Keith.. On 4 Jul 2011, at 12:25, Nicolas Cueto wrote: >> I have a feeling that on mouseLeave works whether the mouse button >> is up or down. > > About mouseLeave from the docs: > >

Re: object beneath mouseLoc?

2011-07-04 Thread Nicolas Cueto
> I have a feeling that  on mouseLeave  works whether the mouse button > is up or down. About mouseLeave from the docs: "If the mouse button is down when the mouse pointer leaves the control, the mouseLeave message is not sent until the mouse button is released." -- Nicolas Cueto __

Re: object beneath mouseLoc?

2011-07-04 Thread Richmond Mathewson
On 07/04/2011 01:45 PM, Nicolas Cueto wrote: Try "the mouseControl" - that should work. Phil Thanks, Phil. Didn't know about that function. But, still a no-go. My script relies on mouseMove and mouseStillDown to let the user select grouped objects by dragging the mouse. I'd also now like the sc

Re: record sound problem on windows

2011-07-04 Thread Benjamin Beaumont
Hi Alex, If you report this in the QCC we'll investigate it. If you could upload the stack that is demonstrating the problem at your end that will help us a great deal. Warm regards, Ben On 4 July 2011 05:25, Alex Shaw wrote: > Hi > > Just tried on a Windows 7 machine. Works ok. > > This is d

Re: object beneath mouseLoc?

2011-07-04 Thread Nicolas Cueto
> Could you track mouseEnter messages to capture the object rect entered Way back when, I tried both mouseEnter and mouseLeave. And learnt the hard way that these messages only get sent when the mouse is no longer down. Which is when I began experimenting with mouseStillDown and mouseMove. Thanks

Re: object beneath mouseLoc?

2011-07-04 Thread Keith Clarke
Could you track mouseEnter messages to capture the object rect entered (or does that only work on fields - sorry not on my LC machine to check the docs)? Best, Keith.. On 4 Jul 2011, at 11:45, Nicolas Cueto wrote: >> Try "the mouseControl" - that should work. >> Phil > > Thanks, Phil. Didn't kn

Re: object beneath mouseLoc?

2011-07-04 Thread Nicolas Cueto
I should also note that I'm using AnimationEngine, in case there's an AE-based solution. -- Nicolas Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferenc

Re: object beneath mouseLoc?

2011-07-04 Thread Nicolas Cueto
> Try "the mouseControl" - that should work. > Phil Thanks, Phil. Didn't know about that function. But, still a no-go. My script relies on mouseMove and mouseStillDown to let the user select grouped objects by dragging the mouse. I'd also now like the script to "know" when the user has moved out

AW: why does lock screen doesn't locks the screen?

2011-07-04 Thread Tiemo Hollmann TB
Good idea Chris, thank you Tiemo > -Ursprüngliche Nachricht- > Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] Im Auftrag von Nonsanity > Gesendet: Freitag, 1. Juli 2011 17:29 > An: How to use LiveCode > Betreff: Re: why does lock screen doesn't