Re: Mobile Clipboard?

2022-12-24 Thread Mark Talluto via use-livecode
> On Dec 23, 2022, at 10:12 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> ark Talluto wrote:
> 
> On Fri, Dec 16, 2022 at 10:54 AM Richard Gaskin wrote:
> >> Unless there's been a very recent change, I don't believe LC-made
> >> mobile apps can use the clipboard at all outside of user interactions
> >> within scripted instantiations of mobile-native fields.
> >>
> >> Do we have any word from the team on when this will be added?
> >
> > Livecode apps for mobile devices take advantage of the host OS
> > clipboard. You have to use the native input fields to access the
> > clipboard.
> 
> Yes, the mobile-native fields you describe were what I was referring to.
> 
> Those are useful for many if not most tasks, but on desktop we're accustomed 
> to a copy command (and deliciously more in recent LC versions) that lets us 
> put things on the clipboard outside of user text editing operations.

The level of control over the clipboard on a desktop <> mobile devices, thanks 
to OS vendor decisions.

LiveCode supports text copy/paste that is on par with other development tools. 
But we can’t copy an image or pdf with a long press as we can in other apps. 
That would be nice to have.

Developers for mobile will have to be more creative in moving data between 
apps. For example, LC devs can write hacks to get tab-delimited data from a DG 
and paste it into another app. 

You are right; It is more complex than desktop development. 


Best regards,
Mark Talluto

appli.io 
livecloud.io 
nursenotes.net 
canelasoftware.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: Mobile Clipboard?

2022-12-23 Thread Richard Gaskin via use-livecode

Mark Talluto wrote:

On Fri, Dec 16, 2022 at 10:54 AM Richard Gaskin wrote:
>> Unless there's been a very recent change, I don't believe LC-made
>> mobile apps can use the clipboard at all outside of user interactions
>> within scripted instantiations of mobile-native fields.
>>
>> Do we have any word from the team on when this will be added?
>
> Livecode apps for mobile devices take advantage of the host OS
> clipboard. You have to use the native input fields to access the
> clipboard.

Yes, the mobile-native fields you describe were what I was referring to.

Those are useful for many if not most tasks, but on desktop we're 
accustomed to a copy command (and deliciously more in recent LC 
versions) that lets us put things on the clipboard outside of user text 
editing operations.


I don't know Dan Friedman's need specifically, but cases where I've 
allowed users to copy things beyond selected text include things like 
DataGrid list items, where the copy of the data I export to the 
Clipboard for use in other apps is a tab-delimited set of record items 
(pretty much the same as Excel does), suitable for pasting in anything 
that can accept that, from plain text editors to email clients to Google 
Sheets or Apple Numbers.


This hasn't been a show-stopper for me yet, and I don't know how 
critical it is for Dan.  But given the excellent Clipboard support 
xTalks have always enjoyed, and how far beyond those conventions LC has 
taken it in recent years, just about any useful subset of LC's Clipboard 
options would be very useful to have on mobile.


--
 Richard Gaskin
 Fourth World Systems

___
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 Clipboard?

2022-12-22 Thread Mark Talluto via use-livecode
On Fri, Dec 16, 2022 at 10:54 AM Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Dan Friedman wrote:

 > Is there a way to set the clipboard text on a mobile (iOS and Android)
 > device?  Something equivalent to "set the clipboardData to someText"?

Unless there's been a very recent change, I don't believe LC-made mobile 
apps can use the clipboard at all outside of user interactions within 
scripted instantiations of mobile-native fields.

Do we have any word from the team on when this will be added?


Livecode apps for mobile devices take advantage of the host OS clipboard. You 
have to use the native input fields to access the clipboard.

Here is some sample code from the Appli Player, where one would paste in an app 
code to access a project.
This assumes you are using the version of the input field where you build it 
yourself vs. dragging the input field from the toolbox.

  on inputTextChanged
 local tTarget, tText

 //VALIDATE THE ENTRY
 put mobileControlTarget() into tTarget
 put mobileControlGet(tTarget,"text") into tText
 put validateAppCodeInput(tText) into tText

 //SUPPORT PASTE FROM CLIPBOARD
 if the num of chars of tText = 9 then
  repeat with xChar = 1 to 9
   if xChar = 5 then next repeat --SKIP HYPHEN
   mobileControlSet gMobileAppCodeFieldIDa[xChar], "text", char 
xChar of tText
  end repeat
 else
  //SUPPORT ENTER ONE CHAR AT A TIME
  if tText is false then
   //PUT EMPTY INTO INPUT FIELD
   mobileControlSet tTarget, "text", ""
  else
   //GO TO NEXT INPUT FIELD
   put getNextIOSinputField(tTarget) into tTarget
   mobileControlDo ("appCode" && tTarget), "focus"
  end if
 end if
end inputTextChanged


Due to challenges with this method of the input field for Android, we settled 
on using the input field from the toolbox. 
In that case, you would pick up the clipboard as you would for a desktop. This 
is from memory. Let me know if there are problems, and I’ll dig deeper.

Best regards,
Mark Talluto

appli.io 
livecloud.io 
nursenotes.net 
canelasoftware.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: Mobile Clipboard?

2022-12-16 Thread Richard Gaskin via use-livecode

Dan Friedman wrote:

> Is there a way to set the clipboard text on a mobile (iOS and Android)
> device?  Something equivalent to "set the clipboardData to someText"?

Unless there's been a very recent change, I don't believe LC-made mobile 
apps can use the clipboard at all outside of user interactions within 
scripted instantiations of mobile-native fields.


Do we have any word from the team on when this will be added?

--
 Richard Gaskin
 Fourth World Systems

___
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 Clipboard?

2022-12-16 Thread Bob Sneidar via use-livecode
All the clipboard functions are for Win, Mac and Linux. I searched the 
dictionary for Android, and nothing seems to be available for Android. I 
reviewed ALL the Merg commands and functions. Perhaps mefgNotify can be of 
assistance, but there s nothing specific to the clipboard. 

Bob S


> On Dec 16, 2022, at 09:31 , Dan Friedman via use-livecode 
>  wrote:
> 
> Is there a way to set the clipboard text on a mobile (iOS and Android) 
> device?  Something equivalent to "set the clipboardData to someText"?
> 
> Thanks in advance,
> -Dan
> 
> ___
> 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 Clipboard?

2022-12-16 Thread Dan Friedman via use-livecode
Is there a way to set the clipboard text on a mobile (iOS and Android) device?  
Something equivalent to "set the clipboardData to someText"?

Thanks in advance,
-Dan

___
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