Detect scroll activity (when LC is not frontmost)

2016-12-21 Thread Terry Vogelaar
I’m working on a productivity & RSI prevention app. So I want to notice activity while my project is not the frontmost application. Thanks to a very helpful list member, my LiveCode stack can detect key strokes (the keysdown is not empty) and mouse clicks (the mouse is down). I added mouse movem

[BUG] Searching the Dictionary with $

2016-12-21 Thread Kay C Lan
Devin posted about $_POST_RAW so I decided to have a look at it in the LC 9.0.0 dp4 Dictionary where I discovered that $ must be a special character (I'm guessing REGEX end of line) as I needed to escape it with \$ to get the results I wanted. In LC 6.6.5 there is no need to escape the $ character

Re: Drag command--does this seem right?

2016-12-21 Thread dunbarx
Well, it would be, right? For me the important thing is that the "grab" command MUST have a mouseDown message for initiation. It is a symbiosis likely built into the engine. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drag-command-does-this-seem-right

Re: Drag command--does this seem right?

2016-12-21 Thread J. Landman Gay
On 12/21/16 3:48 PM, Devin Asay wrote: Why would the mouseMove handler act exactly like the mouseDown handler? I seem to remember a mouseDown being sent while I was tracking mouseMove. I can't test that right now, but if you open the Message Watcher does it show up? -- Jacqueline Landman Ga

Re: Drag command--does this seem right?

2016-12-21 Thread Devin Asay
On Dec 21, 2016, at 3:19 PM, dunbarx mailto:dunb...@aol.com>> wrote: Hi again. Hmmm. A single button on a card, I tried this in the card script: on mouseMove put the target if the target contains "button" then grab the target end if end mouseMove The target does indeed become the bu

Re: Drag command--does this seem right?

2016-12-21 Thread dunbarx
Hi again. Hmmm. A single button on a card, I tried this in the card script: on mouseMove put the target  if the target contains "button" then     grab the target  end if end mouseMove The target does indeed become the button when the cursor is over its rect (no clicking). So the grab sh

Re: Drag command--does this seem right?

2016-12-21 Thread dunbarx
Hi. Because the "target" is always the card. Think about this instead: on mouseMove  if the target contains "button" then --same as "the target <> me" in this case     grab the target  end if end mouseMove Now when you click on the button, the target changes from its initial value (a card r

Re: Drag command--does this seem right?

2016-12-21 Thread Devin Asay
On Dec 21, 2016, at 2:02 PM, dunb...@aol.com wrote: Devin. I don't see it that way. The "mouseMove" message is sent continuously and "me" is always going to be the card, since that is where the handler lives. Try moving the handler to the stack script. You will need to

Re: Drag command--does this seem right?

2016-12-21 Thread dunbarx
Devin. I don't see it that way. The "mouseMove" message is sent continuously and "me" is always going to be the card, since that is where the handler lives. Try moving the handler to the stack script. You will need to modify it a little: on mouseMove put "" wait 1 put me --if the

Re: Drag command--does this seem right?

2016-12-21 Thread Devin Asay
Actually, what I meant to say is: On Dec 21, 2016, at 1:38 PM, Devin Asay mailto:devin_a...@byu.edu>> wrote: Hi all, I just accidentally discovered something curious: Given a card with a any control object on it, and the following two handlers in the card script, the outcome is identical: Gi

Drag command--does this seem right?

2016-12-21 Thread Devin Asay
Hi all, I just accidentally discovered something curious: Given a card with a any control object on it, and the following two handlers in the card script, the outcome is identical: on mouseDown if the target <> me then grab the target end if end mouseDown on mouseMove if the target

Re: How to quit an Android app

2016-12-21 Thread J. Landman Gay
I did write about it but I hadn't tried it yet. You were right on the nose, that fixes it. I had to allow a short wait. This fails as before: tsNetClose quit But this works: tsNetClose wait 1 with messages quit Success! :) On 12/21/16 11:17 AM, Matthias Rebbe wrote: Hi, ignore my

Re: More Android Woes!

2016-12-21 Thread panagiotis merakos
Hi Dan, This error is caused because of a combination of installed packages in Android SDK Manager that tsNet does not like. I am now on macOS Sierra, LC 8.1.1, JDK 1.8.0_111.jdk. Here is a working combination for me: Android 2.2 Android 4.0.3 Android 4.4.2 Android SDK *Build-Tools* 24.0.3

Re: More Android Woes!

2016-12-21 Thread Dan Friedman
Panos, Thank you for the very quick response! From what I can tell, I have all the proper settings. In Android Studio (2.2.3), I have Android 7.1.1, 5.1, 4.0.3 and 2.2 installed. I have SDK Tools 23.0.2, 24.0.3 and 25.0.2 enabled. LC “Mobile Support” shows JDK 1.8.0_111.jdk. I’m on a Mac

Re: More Android Woes!

2016-12-21 Thread panagiotis merakos
Hi Dan, This is the report for adding Firebase Cloud Messaging support: http://quality.livecode.com/show_bug.cgi?id=18075 According to this report, it is still possible to use GCM in new projects. Best regards, Panos -- On Wed, Dec 21, 2016 at 4:37 PM, panagiotis merakos < panos.mera...@liveco

Re: iOS rejection - requesting services

2016-12-21 Thread Mid West Coast Media
>> I just downloaded the Orbitz app the other day and saw it had a special >> message about how it used your coordinates when allowing Location Services. >> Didn't know how they changed that message from the default, but thought it >> was cool. >> >> Fast forward to today when Apple rejected my

Re: How to quit an Android app

2016-12-21 Thread Matthias Rebbe
Hi, ignore my last posting. Just noticed that you wrote about that possiblitiy already. > Am 21.12.2016 um 18:05 schrieb Matthias Rebbe > >: > > Hi, > > just a shot in the dark, but did you try tsNetClose before quitting. This > would close all open

Re: no answer, nobody any experience in printing images on windows?

2016-12-21 Thread Ton Kuypers
Good idea Mark, will test this :-) Met vriendelijke groeten, Warm Regards, Ton Kuypers +32 (0) 477 739 530 Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium www.publishingtools4u.com > On 21 dec. 2016, at 18:13, Mark Schonewille > wrote: > > Hi Ton, > > I import a picture as con

Re: no answer, nobody any experience in printing images on windows?

2016-12-21 Thread Mark Schonewille
Hi Ton, I import a picture as control, type "print this cd" in the message box while my PDF printer driver has been set to default and I get a PDF file with a correct picture. Perhaps you try the same and see what kind of result you get. Kind regards, Mark Schonewille http://economy-x-talk.

Re: How to quit an Android app

2016-12-21 Thread Matthias Rebbe
Hi, just a shot in the dark, but did you try tsNetClose before quitting. This would close all open connections and disables tsNet. Matthias > Am 21.12.2016 um 07:24 schrieb J. Landman Gay : > > Sending "quit" in 10 milliseconds doesn't crash the app on second launch > (good.) But it hangs fo

Re: no answer, nobody any experience in printing images on windows?

2016-12-21 Thread Ton Kuypers
Hi Paul, Images are rgb png and jpg files… Is there a known issue with embedded icc profiles maybe? Met vriendelijke groeten, Warm Regards, Ton Kuypers +32 (0) 477 739 530 Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium www.publishingtools4u.com > On 21 dec. 2016, at 17:48, Paul

Re: no answer, nobody any experience in printing images on windows?

2016-12-21 Thread Paul Dupuis
On 12/21/2016 11:01 AM, Ton Kuypers wrote: > When printing from a standalone app, all images print as black boxes, when > testing in the IDE on Mac it works fine… What format are the images? - tiff for example is only supported under OSX and not under Windows

Re: More Android Woes!

2016-12-21 Thread panagiotis merakos
Hi Dan, This sounds exactly the same as the problem Paul had, see bug http://quality.livecode.com/show_bug.cgi?id=19001 Regarding the Push Messaging issue, I think I have seen a bug report about it. I'll have a look now. Best, Panos -- On Wed, Dec 21, 2016 at 4:31 PM, Dan Friedman wrote: > Gr

More Android Woes!

2016-12-21 Thread Dan Friedman
Greetings (especially Panos), I went to build my Android app again this morning and I get yet more errors. As you recommended last time, I added got “the result” from stack “revSaveAsAndroidStandalone”. Here is is: trouble processing: bad class file magic (cafebabe) or version (0033.) ...

no answer, nobody any experience in printing images on windows?

2016-12-21 Thread Ton Kuypers
When printing from a standalone app, all images print as black boxes, when testing in the IDE on Mac it works fine… Anyone any tips? Met vriendelijke groeten, Warm Regards, Ton Kuypers +32 (0) 477 739 530 Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium www.publishingtools4u.com

Re: upload base64 encoded image data

2016-12-21 Thread hh
Moreover it is possible that they expect JSON-Base64 (without saying it). Then instead of urlencoding the base64 code the following should work. put base64Encode(myImg) into tImage64 replace numToChar(10) with empty in tImage64 -- doesn't harm replace "+" with "-" in tImage64 replace "/" with "_"

Re: upload base64 encoded image data

2016-12-21 Thread hh
Because "+/=" is possibly in the encoded data: Did you already try the following? put urlEncode(base64encode(myImg)) into tImage64 put quote& "data:image/jpg;base64," & tImage64 "e into myContent post ... "content": & myContent ... The image size will increase by a factor of 3 to 4 using base64.