Re: is a date

2017-10-15 Thread Yves COPPE via use-livecode
Hi, I hope this works for any date format on mouseUp ask "Give a date" if it is empty then exit to top answer IsDate(it) end mouseUp function IsDate textToSearch local theDay, TheMonth, TheYear put empty into tresult if

Re: Send "rawKeyUp"

2017-10-15 Thread Richmond Mathewson via use-livecode
Nothing quite beats answering one's own e-mails, except, possibly, banging one's head against the wall (Don't believe me? Try it some time!) this in a cardScript: on rawKeyDown RAWK if the of this card = "in" then do something end if set the of this card to "out" end

Send "rawKeyUp"

2017-10-15 Thread Richmond Mathewson via use-livecode
I'm suffering from "sticky finger syndrome" and cannot get my finger off a key quickly enough to stop it firing more than once . . . SO . . . Wondered about this sort of thing [pseudocode]: on rawKeyDown RAWK do something send "rawKeyUp" to where? end rawKeyDown answers on a

Re: In GRAB control

2017-10-15 Thread Tom Glod via use-livecode
richmond, are you asking a question or giving us code snippet to use? On Sun, Oct 15, 2017 at 1:01 PM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > Imagine a stack with a picture of an orange in its centre . . . > > The picture: img "arancia", contains the

Re: Send "rawKeyUp"

2017-10-15 Thread J. Landman Gay via use-livecode
On 10/15/17 11:31 AM, Richmond Mathewson via use-livecode wrote: Normally, when I have personal problems . . . I hope you saw the invisible smiley after my comment. Here's one: :) I suppose an enhancement request for the rather obvious: rawKeyStillDown & keyStillDown might not be a bad

In GRAB control

2017-10-15 Thread Alejandro Tejada via use-livecode
Hi Richmond, Tell me if this recipe works in your own setup: 1) Import an image 2) Create a small rectangle graphic with no fill (rectangles without fill is the default style) 3) Paste this script into the image: local tLocation, OriginalXposition, OriginalYposition on mouseDown put the

Re: Send "rawKeyUp"

2017-10-15 Thread Richmond Mathewson via use-livecode
Normally, when I have personal problems . . . This was, oddly enough, someone else's "personal" problem that came my way and got me thinking . . . Certainly, the ability to make sure chummy doesn't muck things up by keeping his/her finger on a button/key is important. I suppose an

In GRAB control

2017-10-15 Thread Richmond Mathewson via use-livecode
Imagine a stack with a picture of an orange in its centre . . . The picture: img "arancia", contains the following script: on mouseDown grab me end mouseDown so the end-user can move the picture wherever they want all over the stack. HOWEVER . . . I want to know whether their initial

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: I hope this works for any date format ... if matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) is true then Yes, it seems to work with any numeric date now. I also like Ken Ray's solution which lets the

Re: is a date

2017-10-15 Thread Mark Wieder via use-livecode
On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote: On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: I hope this works for any date format ... if matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) is true then Yes, it seems to work with any

Re: Send "rawKeyUp"

2017-10-15 Thread Richmond Mathewson via use-livecode
And how, pray tell, would one have "stuff" in a LiveCode standalone to tell the OSes to which LiveCode deploys to alter their key repeat rates? Richmond. On 10/15/17 6:16 pm, J. Landman Gay via use-livecode wrote: And here I was, looking for a post card. What I was planning to write on it

Re: Send "rawKeyUp"

2017-10-15 Thread J. Landman Gay via use-livecode
I see. You threw me off with the use of "I" which implied this was a merely personal problem. Carry on. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 15, 2017 10:33:05 AM Richmond Mathewson via

Re: In GRAB control

2017-10-15 Thread Tore Nilsen via use-livecode
Try on mouseMove instead of on grab: on mouseMove if the mouse is down — to make sure you are holding on to something your code goes here end if end mouseMove Tore > 15. okt. 2017 kl. 19:07 skrev Richmond Mathewson via use-livecode > : > > If you try that "code

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
On 10/15/17 1:57 PM, Mark Wieder via use-livecode wrote: On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote: On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: I hope this works for any date format ... if

Re: In GRAB control

2017-10-15 Thread Richmond Mathewson via use-livecode
If you try that "code snippet" I think you will get terribly stuck: that's a question. Richmond. On 10/15/17 8:04 pm, Tom Glod via use-livecode wrote: richmond, are you asking a question or giving us code snippet to use? On Sun, Oct 15, 2017 at 1:01 PM, Richmond Mathewson via use-livecode <

Re: Send "rawKeyUp"

2017-10-15 Thread J. Landman Gay via use-livecode
And here I was, looking for a post card. What I was planning to write on it was: it's easiest to set the key repeat rate in the OS. Macs allow that, not sure about other systems. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: Creeping IDE Script Editor window position

2017-10-15 Thread Bob Hall via use-livecode
Mac OS 10.13.x LC 8.1.7 (rc3) I invested a some time into figuring out the creepring IDE SE Windows. This issue I am sure is related to Bugs #19419 & 19853 (sure would be nice if this could get looked at, pretty please). I find the creeping window only occurs when I open the IDE on my

Commmunity widget #53

2017-10-15 Thread hh via use-livecode
Just shared a new widget. Works in LC 8 (8.1.5ff) of LC 9 (9.0.0ff). Oct 15, 2017: hhColorPicker 1.0.0 #53 -- see http://forums.livecode.com/viewtopic.php?f=93=28020 The widget runs as "ordinary widget", sending a message "cholorChosen " that you can use in your scripts OR it runs as

Re: is a date

2017-10-15 Thread Yves COPPE via use-livecode
Hi, Does such a text « 99/99/00 » exist ? You can also always say that it is possible that « 15/10/17 » is not a date in a certain context Now seriously if the function returns a valid date, you can test afterwards the result to see if it can be something else than a date. Now i’m not enough

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
Yeah. Unless you require a year or something, that'd work. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 15, 2017 4:23:20 PM Alex Tweedly via use-livecode wrote:

Re: is a date

2017-10-15 Thread Mike Kerner via use-livecode
why not have the engine do it for you - use convert to convert the possible date to whatever format you're expecting. If it the answer isn't the same, then you don't have a date. On Sun, Oct 15, 2017 at 7:05 PM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > Yeah.

Re: is a date

2017-10-15 Thread Jim Lambert via use-livecode
Roger wrote: > > put "11/20/2017" is a date > returns true > > put "10" is a date > returns true > > put "raccoon" is a date > returns false > > > WHY is "10" seen as a date? Because it is legitimately a date expressed in seconds? convert 10 to long date = Wednesday, December

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
You know, after all the dicussion here, I'm not sure any of the options are better than "x is a date". The one exception may be that any integer is considered a date. To get around that we could just check that there are 3 items delimited by slashes before testing for "is a date". --

Re: is a date

2017-10-15 Thread Alex Tweedly via use-livecode
Or   x is a date and x is not an integer  ? -- Alex. On 15/10/2017 21:37, J. Landman Gay via use-livecode wrote: You know, after all the dicussion here, I'm not sure any of the options are better than "x is a date". The one exception may be that any integer is considered a date. To get