Search found 133 matches
- 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: 33836
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...
- Sun Jul 31, 2022 1:59 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: List all Custom Properties in a stack
- Replies: 54
- Views: 18156
Re: List all Custom Properties in a stack
Here is the same example from earlier (see above) but I added two Tree View widgets to display my two custom property sets.
All of the code is in the one button. Easy.
FYI,
Bob
All of the code is in the one button. Easy.
FYI,
Bob
- Fri Jul 29, 2022 4:53 am
- Forum: HTML5
- Topic: Anyone have a recent livecode webapp i could run?
- Replies: 7
- Views: 7132
Re: Anyone have a recent livecode webapp i could run?
I have a web app at: https://morrevbon.com/wordhelper.html It is a helper app for the Wordle game. I only have Mac computers but the app works without issues in Safari, Brave (chrome based) and Firefox. My app doesn't need to read or write a textfile, though. It would be helpful if you could share s...
- Fri Jul 29, 2022 4:24 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: List all Custom Properties in a stack
- Replies: 54
- Views: 18156
Re: List all Custom Properties in a stack
Here is a example stack with some custom properties added to the stack's built-in "customKeys" property (a.k.a, a set of properties). Also, I added two additional custom property sets. The customKeys set is built-in so I just had to add two test properties and values in the stack inspector. The two ...
- Mon Jul 25, 2022 2:56 am
- Forum: Talking LiveCode
- Topic: Change button label by pressing the command key
- Replies: 34
- Views: 10794
Re: Change button label by pressing the command key
See: System Prefs > Keyboard > Keyboard (not Shortcuts)I couldn't find the "Use F1…" in System Prefs > Keyboard > Shortcuts.
I don't think this is helpful, though.
FYI,
Bob
MacOs 12.5
LC 9.6.8
- Sun Jul 10, 2022 5:35 am
- Forum: HTML5
- Topic: Need to do a browser "empty cache", is it possible?
- Replies: 4
- Views: 9487
Re: Need to do a browser "empty cache", is it possible?
Changing the tooltip seems to work for me with web deployment. I created a stack with one button. When the button is clicked, the tooltip is set to a random string of characters (see the script). I first tried to set the tooltip to a 1 to 4 digit random number but that didn't work. Apparently, only ...
- Fri Jul 08, 2022 3:59 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Position of character in a for-each loop
- Replies: 26
- Views: 7532
Re: Position of character in a for-each loop
Here is a stack with my code for determining character positions in a word or phrase.
Two nested loops. One is a "for-each" loop.
My two cents.
Bob
Two nested loops. One is a "for-each" loop.
My two cents.
Bob
- Thu May 05, 2022 4:27 am
- Forum: HTML5
- Topic: My attempt to read a text file on the web
- Replies: 2
- Views: 4785
Re: My attempt to read a text file on the web
Kangaroo: I have played with all three of your contributions so far. The ability to pass text files to and from LiveCode and Javascript is an important capability. This ReadTextFile example is a great addition as is your SaveTextFile example. I have examined and am impressed with your scripting in y...
- Thu May 05, 2022 4:18 am
- Forum: HTML5
- Topic: My attempt to write a text file to the local disk
- Replies: 2
- Views: 4995
Re: My attempt to write a text file to the local disk
Kangaroo:
This is tremendous work!
You are kind to share this example with the LiveCode community.
Thanks,
Bob C.
This is tremendous work!
You are kind to share this example with the LiveCode community.
Thanks,
Bob C.
- Thu Apr 28, 2022 6:56 pm
- Forum: Made With LiveCode
- Topic: Alien Civilization Detection
- Replies: 5
- Views: 7874
Re: Alien Civilization Detection
Fascinating!
Thanks for posting this elegant and informative stack.
Bob C
Thanks for posting this elegant and informative stack.
Bob C
- Wed Apr 27, 2022 1:05 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Export long texts to PDF?
- Replies: 40
- Views: 10157
Re: Export long texts to PDF?
The Dictionary is accessible from the LiveCode website: https://livecode.com/resources/api/
FYI,
Bob C
FYI,
Bob C
- Mon Apr 25, 2022 4:27 pm
- Forum: HTML5
- Topic: My attempt to scroll a field on the web
- Replies: 3
- Views: 5467
Re: My attempt to scroll a field on the web
I, too, have had a scrolling field that doesn't work well.
I downloaded your file and will spend some time looking at your solution.
Thank you for posting your stack.
Bob
I downloaded your file and will spend some time looking at your solution.
Thank you for posting your stack.
Bob
- Mon Apr 25, 2022 4:11 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Export long texts to PDF?
- Replies: 40
- Views: 10157
Re: Export long texts to PDF?
I have the Script Reporter version 1.1 stack and am now using the version (1.2) from Bernd's link. I have always liked the Script Reporter (SR) app and have used it to produce searchable documents with all of the scripts in a stack. Handy for searching. Today I had an issue with a button that did no...
- Sat Apr 16, 2022 8:00 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Clear the MessageBox
- Replies: 88
- Views: 47740
Re: Clear the MessageBox
I put Bernd's code into a button: on mouseUp pButtonNumber put revIDEGetPreference("IDESingleLineMessageHistory") into field "MessageBox History" put the number of lines of field "MessageBox History" into field "Lines" end mouseUp The script stuffs the number of lines into another field. The results...
- Fri Apr 15, 2022 10:36 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: How to take a screenshot and send it by email?
- Replies: 20
- Views: 6817
Re: How to take a screenshot and send it by email?
It seems there are two parts to this thread, 1) the correct snapshot rectangle and 2) how to attach an image to an email by script. 1) The globalLoc function will help you translate a local point to a screen coordinates. See the Dictionary. Below is a button script that takes a snapshot of a card an...