mousemove doesn't recognize "shiftkey is down", but only under Windows

2018-09-22 Thread Howard Bornstein via use-livecode
This is exceedingly weird. I can't get a mousemove handler to recognize if
the shiftkey is down (although I think this is true for all key
modifiers—Shiftkey down and OptionKey down for sure). The only way it
detects this state is if I click the mouse button while holding the
shiftkey down. Then it continues to return the correct state of the
shiftkey (including when the shiftkey is up), but after that can not detect
when it is down again without another mouseclick.

This is only the case under Windows. Under MacOS everything works fine.

Here's the simple test code:

*on* mousemove

   *if* the shiftkey is up *then*

  *put* the mouseloc && "Up"

   *else*

  *if* the shiftkey is down *then*

 *put* the mouseloc && "Down"

  *end* *if*

   *end* *if*

*end* mousemove

When the shiftkey is down, it isn't detected by this code unless the mouse
button is also clicked.

I'm running this under LiveCode Community 9.01 under Windows 7 via
Parallels Desktop on a Mac.

Why would this not work under Windows when it works perfectly under MacOS?
Any suggestions on how to get Livecode to recognize that the shiftkey is
down in a mousemove handler under Windows? Ideas and suggestions are
welcome.

-- 
Regards,

Howard Bornstein
---
www.designeq.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

RE: saving file on android to use as email attachment

2018-09-22 Thread Ralph DiMola via use-livecode
If there is no immediate clean solution offered on the list then my first 
instinct is to use the SD card. This assumes that everyone has "external 
storage". Most do. So the edge case would be...if you can't write to external 
storage then ask for the preference.

No prose from me.
JLG, made me smile, Nice

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
scott--- via use-livecode
Sent: Saturday, September 22, 2018 5:17 PM
To: use-revolut...@lists.runrev.com
Cc: sc...@elementarysoftware.com
Subject: saving file on android to use as email attachment

 I have an app that creates a pdf, then opens the client’s mail app and 
attaches the pdf to an email. This works fine with iOS and used to work fine on 
android. However I now have customers reporting problems on android. These 
problems appear to be connected to where the pdf file is saved. I had been 
using  * specialFolderPath("external documents”) * but recently found that 
gMail would no longer accept that location. I switched to * 
specialFolderPath("temporary”) * which worked for gMail but seems to produce an 
i/o error with Microsoft Outlook. I could present the user with a preference 
setting so that the app would know in advance which path to use… but I would 
like to avoid that if possible.  Is there a read/write location that works with 
both / all?

In the case of this app, another solution might be to just send everything 
through my own mail server and simply bypass the user’s mail app. But that puts 
other restrictions on the user that I’m hoping to avoid.

Regards,

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-800-615-0867
mobile  360-920-0715
--








___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mobile write to text file woes

2018-09-22 Thread scott--- via use-livecode
sweet!

> On Sep 22, 2018, at 2:10 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 9/22/18 6:39 AM, FlexibleLearning.com via use-livecode wrote:
>> I have a little app
>> It works and makes me smile
>> It reads text data in a snap
>> But won't write with "Can't open file"
>> The path is set the same for both
>> The file is in the bundle
>> So why can't I write to the file it reads?
>> Mutter, mumble, grumble, grumble...
> 
> You cannot write inside the app,
> It's neither smart nor shrewd.
> And if you try you'll want to cry
> Because, in fact, you're screwed.
> 
> It matters much what path you use,
> As just a few make sense.
> Write to temp or cache or prefs
> Or also documents.
> 
> I knew a hack who wrote a crack
> And saved it to the bundle.
> His malware failed; it was assailed
> As a very stupid fumble.
> 
> So lend an ear, all ye who hear,
> Do not proceed apace.
> Unless you know where files should go
> You'll end up losing face.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile write to text file woes

2018-09-22 Thread AndyP via use-livecode
Jacqueline, love the prose, put a smile on my face before bed.



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


saving file on android to use as email attachment

2018-09-22 Thread scott--- via use-livecode
 I have an app that creates a pdf, then opens the client’s mail app and 
attaches the pdf to an email. This works fine with iOS and used to work fine on 
android. However I now have customers reporting problems on android. These 
problems appear to be connected to where the pdf file is saved. I had been 
using  * specialFolderPath("external documents”) * but recently found that 
gMail would no longer accept that location. I switched to * 
specialFolderPath("temporary”) * which worked for gMail but seems to produce an 
i/o error with Microsoft Outlook. I could present the user with a preference 
setting so that the app would know in advance which path to use… but I would 
like to avoid that if possible.  Is there a read/write location that works with 
both / all?

In the case of this app, another solution might be to just send everything 
through my own mail server and simply bypass the user’s mail app. But that puts 
other restrictions on the user that I’m hoping to avoid.

Regards,

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-800-615-0867
mobile  360-920-0715
--








___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mobile write to text file woes

2018-09-22 Thread J. Landman Gay via use-livecode

On 9/22/18 6:39 AM, FlexibleLearning.com via use-livecode wrote:

I have a little app
It works and makes me smile
It reads text data in a snap
But won't write with "Can't open file"

The path is set the same for both
The file is in the bundle
So why can't I write to the file it reads?
Mutter, mumble, grumble, grumble...


You cannot write inside the app,
It's neither smart nor shrewd.
And if you try you'll want to cry
Because, in fact, you're screwed.

It matters much what path you use,
As just a few make sense.
Write to temp or cache or prefs
Or also documents.

I knew a hack who wrote a crack
And saved it to the bundle.
His malware failed; it was assailed
As a very stupid fumble.

So lend an ear, all ye who hear,
Do not proceed apace.
Unless you know where files should go
You'll end up losing face.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Script-only-stack file issue 9.0.1

2018-09-22 Thread Mike Kerner via use-livecode
NM.  This is related to having double-quotes in a foldername.

On Sat, Sep 22, 2018 at 3:47 PM Mike Kerner 
wrote:

> Is anyone having issues with creating and assigning SOS's as behaviors in
> 9.0.1?
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Script-only-stack file issue 9.0.1

2018-09-22 Thread Mike Kerner via use-livecode
Is anyone having issues with creating and assigning SOS's as behaviors in
9.0.1?

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile write to text file woes

2018-09-22 Thread AndyP via use-livecode
Hi Hugh,

Have a look at this lesson
I'm sure it will help
If the location is right
then the file you can write

http://lessons.livecode.com/m/4069/l/14301-how-do-i-read-write-to-files-on-mobile

  



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile write to text file woes

2018-09-22 Thread Brian Milby via use-livecode
To be more clear, “engine” and “resources” paths are read only on iOS. When 
starting an app, you need to copy any resources you need to change to the 
“documents”, “cache”, “temporary”, or “library” specialFolderPath depending on 
how you want the file to last.

Thanks,
Brian
On Sep 22, 2018, 6:40 AM -0500, FlexibleLearning.com via use-livecode 
, wrote:
> I have a little app
> It works and makes me smile
> It reads text data in a snap
> But won't write with "Can't open file"
>
> The path is set the same for both
> The file is in the bundle
> So why can't I write to the file it reads?
> Mutter, mumble, grumble, grumble...
>
>
> Hugh Senior
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mobile write to text file woes

2018-09-22 Thread Paul Dupuis via use-livecode
On the pretense of increased security, more and more OSes are
incorporating various levels of Sandboxing. Eventually it seems, you
will only be able to write to the users Documents folder and no where else.

I'd don't know what OS and version you are on, but I am not surprised
you can not write, without admin permissions, to the Program files (Win)
or Applications (OSX) folders.


On 9/22/2018 7:39 AM, FlexibleLearning.com via use-livecode wrote:
> I have a little app
> It works and makes me smile
> It reads text data in a snap
> But won't write with "Can't open file"
>
> The path is set the same for both
> The file is in the bundle
> So why can't I write to the file it reads?
> Mutter, mumble, grumble, grumble...
>
>
> Hugh Senior
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Mobile write to text file woes

2018-09-22 Thread FlexibleLearning.com via use-livecode
I have a little app
It works and makes me smile
It reads text data in a snap
But won't write with "Can't open file"

The path is set the same for both
The file is in the bundle
So why can't I write to the file it reads?
Mutter, mumble, grumble, grumble...


Hugh Senior


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode