Search found 58 matches

by japino
Sun May 05, 2019 4:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Easier way to do this? Find variables in text
Replies: 17
Views: 1275

Re: Easier way to do this? Find variables in text

Thanks a lot everybody! This is most helpful!
by japino
Sun May 05, 2019 12:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Easier way to do this? Find variables in text
Replies: 17
Views: 1275

Easier way to do this? Find variables in text

I’m going to work on a small project which includes finding all variables in a long text. I’ve done something like this before and I was wondering if what I did in the past can be coded better. The variables take this form: @{xxx} What I did before is this: - search from the beginning of text and fi...
by japino
Thu Sep 07, 2017 9:25 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't set the clipboard to plain text on Mac
Replies: 15
Views: 1932

Re: Can't set the clipboard to plain text on Mac

The bug number is 20336. About the htmlText bug, the text in the field is this (the word bold is bold, and the word italic is italic): This is some text. It has bold formatting. And italic formatting. All very nice. The script returns this output: This is some text. It has bold formatting. And itali...
by japino
Wed Sep 06, 2017 4:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't set the clipboard to plain text on Mac
Replies: 15
Views: 1932

Re: Can't set the clipboard to plain text on Mac

Just tried again with "htmlText" in a fresh stack. Result has no tags and the Return characters are gone. The code is simply this: on mouseUp set the clipboardData["htmlText"] to field "myField" end mouseUp The bug I logged about not getting plain text but RTF text has been acknowledged. It's a know...
by japino
Wed Sep 06, 2017 8:44 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't set the clipboard to plain text on Mac
Replies: 15
Views: 1932

Re: Can't set the clipboard to plain text on Mac

1. Try LC v8.1.7 2. Try the fullClipboardData instead of the clipboardData. 3. File a bug report I tried LC v8.1.7 with the same result: the type reported in the Clipboard window in the Finder is RTF, where it should be "text", as before. I tried fullClipboardData, but the result is exactly the sam...
by japino
Wed Sep 06, 2017 8:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't set the clipboard to plain text on Mac
Replies: 15
Views: 1932

Re: Can't set the clipboard to plain text on Mac

The line spacing aspect of this is curious. What do you get when you query the clipboardData["htmlText"]? Can you post that here? I get the text that's inside the field with all Return characters replaced by a space. The Clipboard window in the Finder still displays the type of the clipboard as RTF.
by japino
Tue Sep 05, 2017 5:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't set the clipboard to plain text on Mac
Replies: 15
Views: 1932

Re: Can't set the clipboard to plain text on Mac

Pasting into LC (and TextEdit etc...) results in non-formatted text! In my stack and in my clipboard the text looks like plain text, but the type reported at the bottom of the clipboard window is RTF. Is it "text" for you, Klaus? When pasting into the receiving app I get plain text but the line spa...
by japino
Tue Sep 05, 2017 3:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't set the clipboard to plain text on Mac
Replies: 15
Views: 1932

Re: Can't set the clipboard to plain text on Mac

Thanks for your reply. Unfortunately, it doesn't solve the issue. on mouseUp put field "mail" into myText repeat for each char tChar in myText put numToChar(charToNum(tChar)) after temp end repeat set the clipboardData["text"] to temp end mouseUp Running this code still give me type "RTF (Rich Text ...
by japino
Tue Sep 05, 2017 11:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't set the clipboard to plain text on Mac
Replies: 15
Views: 1932

Can't set the clipboard to plain text on Mac

I'm running into a weird issue which I swear worked properly in earlier versions of my app - which were built with earlier versions of LiveCode. In my app I have a scrolling field with some text. The text doesn't have any formatting. What I want to do is copy the text from that field to the clipboar...
by japino
Thu Dec 01, 2016 3:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Geometry question
Replies: 2
Views: 439

Re: Geometry question

Thanks Craig, I was finally able to figure it out using a combination of the Geometry Manager and a resizeStack script.
by japino
Wed Nov 30, 2016 5:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Geometry question
Replies: 2
Views: 439

Geometry question

This is probably a very simple question, but I can't seem to get it right. I've created a few stacks in the past and now I'm creating a stack in which I want to resize some fields and controls or change their positions when the stack size changes (when the user resizes the stack window). I'm using t...
by japino
Thu Jul 21, 2016 9:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Check which version of Excel is installed
Replies: 2
Views: 523

Re: Check which version of Excel is installed

Thank you Klaus, you're a better googler than I am :)
by japino
Thu Jul 21, 2016 4:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Check which version of Excel is installed
Replies: 2
Views: 523

Check which version of Excel is installed

I'm creating a small application for OS X. I need to check which version of Microsoft Excel is installed on a user's machine. Can I do this straight from LiveCode or do I need to add some AppleScript to my code? Was looking at "files" in LiveCode, but this doesn't seem to give me the version number.
by japino
Tue Feb 09, 2016 1:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Dragged and dropped file paths not plain text?
Replies: 3
Views: 485

Re: Dragged and dropped file paths not plain text?

Thank you (again) Klaus!

When changing the code to...
put the dragData["files"] into me
...everything then works as expected again.

When I now ask for a particular line in the field, I get the complete line again instead of just a character.

Your fast reply is much appreciated!
by japino
Tue Feb 09, 2016 1:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Dragged and dropped file paths not plain text?
Replies: 3
Views: 485

Dragged and dropped file paths not plain text?

I'm working on OS X and I've created a field in a stack which accepts files being dragged into it. The field then displays the file paths. The code is this: on dragEnter set acceptDrop to true end dragEnter on dragDrop put the dragData into me pass dragDrop end dragDrop However, the field value does...

Go to advanced search