Using LC server to check for existence of mp3 on our web server?

2017-01-21 Thread Tim Selander via use-livecode
Hi, On-rev.com hosting, using LC server to present a list of our AM/FM radio programs for people to listening to on-demand. Out of a month's 20 programs, 3 or 4 might not get uploaded due to copyright issues, etc. Also, mp3's are not on the on-rev.com server, but another hosting service we

Re: Using LC server to check for existence of mp3 on our web server?

2017-01-22 Thread Tim Selander via use-livecode
d it tells you if the file is in the programs folder or not. So the url would look something like this: http://my.programserver.com/check.lc?1234.mp3 The text of the 'check.lc' file: This is most likely not exactly what you need, but maybe it'll give you a starting point. Than

Cancelling a script??

2017-02-10 Thread Tim Selander via use-livecode
The documentation says Cmd + . should stop a running script. I haveset the allowinterrupts to true in my openstack script. But if I get into a long repeat loop, cmd + . does not stop anything. Community v8.1, OSX 10.9. Any advice appreciated. Tim Selander Tokyo, Japan

Re: Cancelling a script??

2017-02-10 Thread Tim Selander via use-livecode
00 AM, Tim Selander via use-livecode < use-livecode@lists.runrev.com> wrote: The documentation says Cmd + . should stop a running script. I haveset the allowinterrupts to true in my openstack script. But if I get into a long repeat loop, cmd + . does not stop anything. Community v8.1

Re: Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
Yes, that had occurred to me, but my explanation was too simplistic. While it is a Scrabble-esque game with tiles, the tiles are hexagons and are staggered on the board. (pic-- http://tinyurl.com/jjcqolm) That still might be calculate-able, but is beyond my math skills! Thanks, Tim On

Re: Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
ist of the objects you wish to check against (or array, or whatever) on mousemove if the mouse is down then repeat for each line tLine in objectList if within(tLine,the mouseloc) then put tLine into tResult exit repeat end repeat end if if tResult end mousemove On Sat, Mar 11, 2017 at 1:02 AM,

Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
I miss the Zynga "Pathwords" game on Facebook, so for my own amusement I'm trying to recreate it in Livecode. For those who don't know the game, it had a solid screenful of Scrabble-like lettered tiles. Click and drag the mouse through adjacent letters to make words. Without clicking,

Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
Hi, My company gave up on hosting our email and website at on-rev.com back when they were having lots of reliability problems. We're using a host in Japan; no LC server installed, nor is it installable. I still have our Founder's account on on-rev.com, and use quite a few .lc scripts,

Re: Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
th ftp outgoing connections. Matthias Matthias Rebbe +49 5741 31 ‌matthiasrebbe.eu <http://matthiasrebbe.eu/>‌ Am 18.07.2017 um 10:38 schrieb Tim Selander via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: Hi, My company gave

Re: Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
of lc server. Regards, Matthias Matthias Rebbe +49 5741 31 ‌matthiasrebbe.eu <http://matthiasrebbe.eu/>‌ Am 18.07.2017 um 12:50 schrieb Tim Selander via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: Hi Matthias, Good idea. I

Re: Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
u/>‌ Am 18.07.2017 um 10:38 schrieb Tim Selander via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: Hi, My company gave up on hosting our email and website at on-rev.com <http://on-rev.com/> back when they were having lots of reliability

Re: Goofy question #7234

2017-07-10 Thread Tim Selander via use-livecode
Hi Richmond This works (both scripts in the button): on mouseUp put goRed() end mouseUp function goRed set the backGroundColor of card 1 to red end goRed I think the general idea is that a function returns information. So date() returns the date. But just having a line "date()" in the script

Re: Sending an FTP command from one web server to another?

2017-07-19 Thread Tim Selander via use-livecode
Richard, Have never written a CGI in my life but you got me thinking; a quick Google found me a php script to "print" a folder listing. So now my .lc script on my on-rev serve puts the url of the .php page on the server with the mp3s into a variable -- which gives me the list of file names

Re: IP to decimal function?

2017-05-14 Thread Tim Selander via use-livecode
, 17:02, Richmond Mathewson via use-livecode wrote: I almost never know anything, but I do know where to look to find out: https://www.mkyong.com/java/java-convert-ip-address-to-decimal-number/ Hope that spoils your Sunday :) Richmond. On 5/14/17 8:25 am, Tim Selander via use-livecode wrote: Hi

IP to decimal function?

2017-05-13 Thread Tim Selander via use-livecode
Hi I need to convert IP address from web logs to decimal for easier processing... Before I try to "reinvent the wheel" (and no doubt roll off a cliff) I'm wondering if anyone already has such a function they'd be willing to share? TIA Tim Selander Tokyo, Japan

Re: IP to decimal function?

2017-05-15 Thread Tim Selander via use-livecode
It should be in the master library. Bob S On May 13, 2017, at 22:25 , Tim Selander via use-livecode <use-livecode@lists.runrev.com> wrote: Hi I need to convert IP address from web logs to decimal for easier processing... Before I try to "reinvent the wheel" (and no doubt roll off a cliff

Getting directory list from web server??

2017-11-06 Thread Tim Selander via use-livecode
Hi, Up until now, in my livecode server script, put URL "http://www.myserver.com/radio/15/; after vlist has gotten me text list of the directory contents. Now it gets me a "You don't have permission to access." error message. on-rev hosting, "sage" is the server. Anyone know what is

UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
Hi, In LC, if I have a field or variable in Japanese (double-byte) and get, say, the 5th character, it returns the correct double-byte character. But on LC server (on-rev hosting) "character" commands get single bytes, breaking the Japanese character turning it into gibberish. Is there any

Re: UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
kanji got split in half. Identical results to "put char 500 to 550." Tim Selander On 2018/06/01 8:39, kee nethery via use-livecode wrote: On May 31, 2018, at 4:33 PM, Tim Selander via use-livecode wrote: Thanks, Warren. Yes, I've got that header set up, and UTF8 is working fi

Re: UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
for than info is, and Googling failed me this time... Tim Selander On 2018/06/01 8:55, kee nethery via use-livecode wrote: I’m assuming you are using “unicode” (aka UTF-16) and not UTF8 to do all your transforming of the data? Kee On May 31, 2018, at 4:46 PM, Tim Selander via use-livecode

Re: UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
rren Samples via use-livecode wrote: On 05/31/2018 06:43 AM, Tim Selander via use-livecode wrote: Is there any way to get LC Server to handle double-byte characters the same way LC desktop does? Tim Selander Tokyo, Japan LC Server serves pages with a default "Content-Type" header o

Re: UTF8 on LC server

2018-06-01 Thread Tim Selander via use-livecode
Hi Mark, Here is the script. The files I'm using are bamboobabies.com/getjapanesetext.lc, and the text it is getting is bamboobabies.com/news.txt. In the script, there are two lines reading the text file that I've taken turns commenting out If you can give me any hints, it would be

Re: UTF8 on LC server

2018-06-01 Thread Tim Selander via use-livecode
Mark, Success! Greatly appreciate your walking me through this. Have a great weekend. Tim Selander Tokyo, Japan On Fri, Jun 1, 2018 at 7:15 AM, Mark Waddingham via use-livecode < use-livecode@lists.runrev.com> wrote: On 2018-06-01 12:53, Tim Selander via use-livecode wrote: H

Getting current line number of a table field.

2018-02-14 Thread Tim Selander via use-livecode
Hi, Editing a table field (not datagrid) and need to track the number of the line that is being edited. If I click into a new line, "selectionchanged" will let me figure out what line I'm editing. But if I hit return or tab to go to a new line, how can I track what line the cursor is in?

Re: Getting current line number of a table field.

2018-02-14 Thread Tim Selander via use-livecode
Hi Mike, Thanks! I put the script in the table field itself with no luck. But when I moved it to the card script, it works! Great! I never would have come up with that in a million years. This list is fantastic. Oh, and I just re-named the table field to "Opera" ;-) Tim Selander Tokyo,

Re: another mac to Windows gotcha

2018-02-24 Thread Tim Selander via use-livecode
er Tokyo, Japan On 2018.02.24 23:44, Paul Dupuis via use-livecode wrote: controlKeyDown is absolutely available on Windows. See the dictionary entry in LC8.1.9 for example. What version of LiveCode are you using? On 2/24/2018 9:04 AM, Tim Selander via use-livecode wrote: Hi, Trying my first litt

Re: another mac to Windows gotcha

2018-02-24 Thread Tim Selander via use-livecode
ff via use-livecode wrote: Tim, Try both commands in order: set playRate, then start. Peter Bogdanoff On Feb 24, 2018, at 10:16 AM, Tim Selander via use-livecode <use-livecode@lists.runrev.com> wrote: Hi Paul, Using 9.0 dp11 community. After sending the post, I found in the dictionary

another mac to Windows gotcha

2018-02-24 Thread Tim Selander via use-livecode
Hi, Trying my first little LC app on Windows. I wrote an app on osx and am now trying to get it to work in a Win7 machine. On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video player. JKL is pretty standard video player control in video editing software. On the mac app,

playing a video in Win7?

2018-02-24 Thread Tim Selander via use-livecode
Hi, Trying to simply play an h264 video on LC 9 in a player on a Win7 machine. Quicktime installed. I have .mov, .mp4, .mv4 videos that all play fine on Mac osx /and/ in QT on the Win7 machine. But I can only get .wmv to play in the LC player object on Win7. Have to create a little in-house

Using the $_POST global in LiveCode server

2018-08-02 Thread Tim Selander via use-livecode
Hi, Is it possible to change, or even delete, the $_POST[] array in LiveCode server? I want to clear it after my script has pulled out the info it needs. Or, maybe there's another way to skin the cat. I have a search page that returns a list of our online TV programs. But even if the page is

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Tim Selander via use-livecode
Thanks, Mike. This seemed like a good hint/possible solution. Another though has just occurred to me also.. If you use session variables, you can store the search term in the session, and since the browser will re-post on reload, if $_POST and your session variable contain the same search

$_POST[] variable?

2018-08-02 Thread Tim Selander via use-livecode
Hi, Is it possible to manipulate the contents of the $_Post[] global directly on Livecode serve? When I reload a page, the values in the array still have the values in them from the previous time the "Submit" button was used... efforts to delete or put empty into, do not seem to work.

Re: Writing a UTF8 text file to server.

2018-10-04 Thread Tim Selander via use-livecode
o Tim, Did you look at the textEncode function? — Scott Morrow On Oct 3, 2018, at 10:22 PM, Tim Selander via use-livecode wrote: I am using Livecode Server on Livecode's hosting plan. Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply d

Writing a UTF8 text file to server.

2018-10-03 Thread Tim Selander via use-livecode
I am using Livecode Server on Livecode's hosting plan. Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply do something like: put $_POST[firstname] the UTF8/Kanji word shows up fine in the webpage. But I am unable to save the data to a file

Re: Writing a UTF8 text file to server -- solved

2018-10-04 Thread Tim Selander via use-livecode
properly saved the data as utf8/kanji to the file on the server. All's well that ends well. Tim Selander Tokyo, Japan On 2018.10.04 15:48, Tim Selander via use-livecode wrote: Hi Scott, Added info; I have at the top of the web page source. Then, I only found outputTextEncoding

Re: multi line Livecode field uploaded to MySQL

2019-02-16 Thread Tim Selander via use-livecode
:17, Tim Selander via use-livecode a écrit : Thank you for your reply, but I haven't gotten it working yet. The code in my first post was from my working stack. Here is what I have from my non-working stack after re-writing to follow your instructions: # Construct SQL put "I

multi line Livecode field uploaded to MySQL

2019-02-15 Thread Tim Selander via use-livecode
I have a routine to take data from fields on a card and upload to a mysql database. Has worked well for years, got the original script off the Livecode learning site. --- # Construct SQL put "INSERT INTO

Re: multi line Livecode field uploaded to MySQL

2019-02-16 Thread Tim Selander via use-livecode
line n/a (External handler execution error: revdberr,syntax error) near "revdberr,syntax error"} I appreciate your taking the time to educate me. Tim Selander On 2019.02.16 16:12, Ludovic THEBAULT via use-livecode wrote: Le 16 févr. 2019 à 07:59, Tim Selander via use-livecode

Images and Players in "background" groups

2019-02-02 Thread Tim Selander via use-livecode
For the first time ever, probably, I have a little project that needs the HC "stack of cards" structure. Have a few buttons and fields in a group, acting a a background and it all works as expected. However, I also have an image and a play in the group/background. Oddly, when I set one

Re: Images and Players in "background" groups

2019-02-03 Thread Tim Selander via use-livecode
where tURL is a path to a local or remote file. Player controls would use similar methods as above. Peter Bogdanoff On Feb 2, 2019, at 10:55 PM, Tim Selander via use-livecode wrote: For the first time ever, probably, I have a little project that needs the HC "stack of cards" s

background images

2021-01-18 Thread Tim Selander via use-livecode
This is driving me nuts. Have a 'background' group with an image. If I change the filename of an image on one card, ALL the cards change to that image. Yet a field in the same group properly will take unique values for each card. I know I've done this before... what setting am I missing??

Re: background images

2021-01-18 Thread Tim Selander via use-livecode
on stored data about that image/card combination. Peter Bogdanoff On Jan 18, 2021, at 4:44 PM, Tim Selander via use-livecode wrote: Right, which is why this is so confusing. I do not want a 'shared text' image. Each card should keep it's own unique image, but when I change the image on one

Re: background images

2021-01-18 Thread Tim Selander via use-livecode
-livecode wrote: Hi Tim, Am 18.01.2021 um 19:12 schrieb Tim Selander via use-livecode : This is driving me nuts. Have a 'background' group with an image. If I change the filename of an image on one card, ALL the cards change to that image. Yet a field in the same group properly will take unique