LC faithfully includes all styling information in the clipboard when text is copied. It is up to the receiving app to interpret that styling. Text background color is almost never supported in other apps, it is a LC-specific field feature, but I vaguely recall that once in a while it works in some apps. There is nothing LC can do about this. Either the receiving app supports background color or it doesn't.I need to fix another livecode limitation where it can’t retain text background colors OUTSIDE of livecode as in the case I have a livecode field that has my output results but the user wants to copy these colored highlights outside of livecode say to a word processing app
Sorry, I still don't understand how this would work. "Launch" is a specific LC term that means to open another app. If you launch, for example, a browser, you are no longer in control of what that browser does. You may mean that you open a new LC stack/window. If so, you can control the input and output of fields in that stack and, to some extent, the content of a browser widget in the stack. But I don't see how that will help you transfer unsupported text styling to an app that doesn't support receiving it.My fix to this is to launch my OWN LOCAL html file from within livecode that is COMPLETELY MINE not some else’s sandboxed app or someone’s information stored on someone’s remote web server. This launched local html file contains an on-the-fly fix to being able to retain text colored backgrounds.
Again, if the window you launched is in an external browser app, you have lost control over it. You would need to use a system-level extension or DLL to talk to the other app. That is what "do as <script language>" is for in LC.While doing this, the OTHER livecode limitation I need to overcome is that livecode does not seem to provide a way that MY OWN launched web page can communicate back to my current livecode card telling it that it now exists and is now active window.
This is not a limitation of LC per se, it is a limitation of all apps. The examples you posted originally of languages that allow cross-app communication are actually installed as system-level DLLs on Windows.
If the window you opened is in fact a LC stack, then you have complete control over the clipboard and there is no need to simulate mouse clicks or keyboard shortcuts. You can get the clipboard content, manipulate it in any way you like, set the clipboard content, insert any text into any part of a field or set the content of a browser widget to anything you like. You can copy, paste, edit entirely by script without simulating user actions. You can even create an entire web page by script and set the content of a browser widget to show it. But again, I don't see how this will help you get styled text into an app that does not support it.So in summary livecode does NOT provide the tools to do some VERY SIMPLE task to MY OWN locally launched html file. These are:
[1] Let me know my locally launched web page finally emerged and is now the active window
[2] Let me send it Ctrl-A and Ctrl- C keystrokes for selecting and copying MY own programs information to MY OWN html file.
[3]Let me close MY OWN local html file after leaving it up for 2 secs worth of user feedback.
In the LC toolbar there is an icon named "Sample Stacks". This opens an interface to stacks that users have uploaded to share. You will need to create an account there, and then you can upload your own stacks for download. (I don't know if you've looked at the latest 8.1.3rc1 release, but it has fixed the slowdown when using regex in certain situations.)Jacque, regarding another unanswered but related post whose subject states: “Unclear on using “sample stacks” from the livecode toolbar” can you be kind enough to provide me guidance there so I can distribute my app and quell the past forum complaints folks have had regarding livecode regular expression functions. I think this app has resolved all of those issues and will make many people happy.