Search found 132 matches
- Sat Sep 10, 2022 9:01 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Is there a simple equation for this?
- Replies: 30
- Views: 15056
Re: Is there a simple equation for this?
by stam » Fri Sep 09, 2022 2:22 pm You may also want to check out some of Roger's excellent stacks: https://livecodeshare.runrev.com/stack/ ... Boids-2019 https://livecodeshare.runrev.com/stack/ ... -Detection These are masterful works of art and science. Impressive! In the LiveCode menu > Sample S...
- Mon Sep 05, 2022 9:57 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: styledtext, mixed content and clipboarddata
- Replies: 35
- Views: 7462
Re: styledtext, mixed content and clipboarddata
Hmmm. I spend yesterday trying to understand why copying a field with styled text doesn't carry over the styles when pasted. In the Dictionary, I saw this: ...the styled text. (Must be correctly constructed as a LiveCode styledText array, see comments) So, apparently the LiveCode has a specific styl...
- Sun Sep 04, 2022 8:52 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: styledtext, mixed content and clipboarddata
- Replies: 35
- Views: 7462
Re: styledtext, mixed content and clipboarddata
According to the Dictionary, the StyledText property is an array. This little example stack gets the array of an example field and puts the array into a Tree View widget. The widget allows us to see how the array is structured. Perhaps the visual representation will help us decipher the problem and ...
- Sat Sep 03, 2022 6:17 pm
- Forum: CGIs and the Server
- Topic: How to get the headers of the requesting client?
- Replies: 5
- Views: 6771
Re: How to get the headers of the requesting client?
Torsten: Take a look at this posting on the forum: https://forums.livecode.com/viewtopic.php?f=120&t=37188#p217208 From that posting: Open the LiveCode dictionary and look for $_SERVER. I have a file on my server (at on-rev LiveCode Hosting) that loops through the $_SERVER array and returns each lin...
- Sat Sep 03, 2022 6:02 pm
- Forum: HTML5
- Topic: Is there anyway to determine the OS of the device running a web deployment ?
- Replies: 17
- Views: 33414
- Sat Aug 20, 2022 9:09 pm
- Forum: HTML5
- Topic: Is there anyway to determine the OS of the device running a web deployment ?
- Replies: 17
- Views: 33414
Re: Is there anyway to determine the OS of the device running a web deployment ?
From: djkesler 2. A work-around that I have employed is to determine that the browser is actually running on an Android device. Big thanks to bobcole for the idea to use $_SERVER["HTTP_USER_AGENT"]. I don't know where he found this in the documentation, I haven't been able to locate it(the _USER_AG...
- Fri Aug 19, 2022 12:31 am
- Forum: HTML5
- Topic: Is there anyway to determine the OS of the device running a web deployment ?
- Replies: 17
- Views: 33414
Re: Is there anyway to determine the OS of the device running a web deployment ?
I implemented your two "do ... as javaScript" statements in the attached stack. Running in the IDE, the platform shows as "MacOS" as expected on my Mac laptop. Testing in a web browser, using LC's "the platform" shows as "web" and Testing in a web browser, the "do ... as javaScript" platform shows a...
- Thu Aug 18, 2022 10:19 pm
- Forum: HTML5
- Topic: Anyone have a recent livecode webapp i could run?
- Replies: 7
- Views: 6881
Re: Anyone have a recent livecode webapp i could run?
written by ajperks All I needed to do was run something built with Livecode HTML5 to see if it will run on my Edge browser in Win 10. No HTML apps, even yours will run. I always get an # Exception thrown, see JavaScript console error message. Perhaps LiveCode's default HTML/JavaScript file is causi...
- Thu Aug 18, 2022 4:33 am
- Forum: HTML5
- Topic: A web app launcher with responsive design
- Replies: 20
- Views: 11702
Re: A web app launcher with responsive design
I was curious as to what the minimum html file, with the minimum javaScript, might be. I put this into a .html file (I called it "Minimum.html") and put it in the standalone folder on my server. I navigated the browser to open that file on the server. It worked for a simple LiveCode stack I'm playin...
- Thu Aug 18, 2022 3:48 am
- Forum: Off-Topic
- Topic: MacOS Network Utility
- Replies: 18
- Views: 8884
Re: MacOS Network Utility
by FourthWorld » Fri Aug 12, 2022 3:15 pm Making a UI for this in LiveCode would seem like a useful exercise. Here is a starting point for a UI. Needs work. I don't understand why some of the commands don't seem to terminate. Free to modify and use. Have at it! Bob Macos Network Utility.livecode.zip
- Wed Aug 17, 2022 6:19 am
- Forum: HTML5
- Topic: A web app launcher with responsive design
- Replies: 20
- Views: 11702
Re: A web app launcher with responsive design
When testing in the IDE (localhost), a small "Hello World" stack may load from disk so quickly the spinner may not seem to appear. I tested a slightly larger stack in the IDE and the spinner appears briefly. When downloading an app from a server, the spinner grinds away for a few seconds. Refreshing...
- Thu Aug 04, 2022 4:16 pm
- Forum: Off-Topic
- Topic: MsgBox being a bit odd . . .
- Replies: 7
- Views: 2890
Re: MsgBox being a bit odd . . .
Try adding "with messages" to the wait command:
That works for me.
Bob
LiveCode 1.0.0-dp-3
MacBook Pro (M1 Arm)
macOS 12.5 (Monterey)
Code: Select all
wait 15 ticks with messages
Bob
LiveCode 1.0.0-dp-3
MacBook Pro (M1 Arm)
macOS 12.5 (Monterey)
- Thu Aug 04, 2022 3:01 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: List all Custom Properties in a stack
- Replies: 54
- Views: 18017
Re: List all Custom Properties in a stack
put the customProperties of this stack into temp This command will retrieve the full array of data, at all levels, in the current (default) "customKeys" Set. If you have created other Sets of custom properties outside of the customKeys Set, they will not be displayed. According to the dictionary, t...
- Wed Aug 03, 2022 5:14 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: List all Custom Properties in a stack
- Replies: 54
- Views: 18017
Re: List all Custom Properties in a stack
Mark:
Nice comparison of the two approaches.
Thanks,
Bob
Nice comparison of the two approaches.
Thanks,
Bob
- Wed Aug 03, 2022 5:26 am
- Forum: HTML5
- Topic: Is there anyway to determine the OS of the device running a web deployment ?
- Replies: 17
- Views: 33414
Re: Is there anyway to determine the OS of the device running a web deployment ?
I have been playing with a stack to answer the question of determining the OS of the device that requests a web app. My stack may be a solution to the question. It asks the server to return the Browser's User Agent (a string sent by the device to the server). The default User Agent string provided b...