Search found 62 matches

by japino
Wed Nov 27, 2019 1:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Run command prompt script in Windows and keep window visible
Replies: 2
Views: 284

Re: Run command prompt script in Windows and keep window visible

I got this to work by having my script create a .bat file which ends with a PAUSE command and having LiveCode launch that .bat file...
by japino
Tue Nov 26, 2019 2:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Run command prompt script in Windows and keep window visible
Replies: 2
Views: 284

Run command prompt script in Windows and keep window visible

Hi, I'm trying to run a command in a command prompt window in Windows and keep the command prompt window open while the command is running and when the command is finished. To test this, I'm using this simple script: on mouseUp set the hideconsolewindows to false put shell("dir c:\") into myOutput e...
by japino
Thu Nov 21, 2019 5:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Move substack to file not working
Replies: 4
Views: 383

Re: Move substack to file not working

Thanks for all the replies, I finally got everything working by following the lesson on how to use a launcher stack and the information in https://forums.livecode.com/viewtopic.php?f=8&t=32909&p=181803&hilit=splash#p181803. The livecode file with my main application now gets stored in the Documents ...
by japino
Wed Nov 20, 2019 4:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Move substack to file not working
Replies: 4
Views: 383

Move substack to file not working

I'm using Livecode 9.5.0 Community Edition on a Mac. I'm trying to get a standalone to save data in a stack using the launcher stack method. This has worked fine for me before. It doesn't work in a small new project I'm working on now. I'm trying to find out why. I've seen some other posts where the...
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: 1661

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: 1661

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: 2144

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: 2144

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: 2144

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: 2144

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: 2144

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: 2144

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: 2144

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: 480

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: 480

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...

Go to advanced search