Search found 7 matches

by AlbertoP
Thu Nov 13, 2014 5:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Save remote image to disk
Replies: 5
Views: 4013

Re: Save remote image to disk

<Hi Alberto, you are mixing some different techniques and that is not healthy for the downloaded file :D Do like this and use the shorter URL syntax: ... ## Only use this if you are SURE, WHAT THE CURRENT FOLDER IS! put "./tmp/" & user_id_str & ".jpg" into profile_img_filename ## Images are binary ...
by AlbertoP
Thu Nov 13, 2014 4:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Save remote image to disk
Replies: 5
Views: 4013

Re: Save remote image to disk

I've tried something like this: put "./tmp/" & user_id_str & ".jpg" into profile_img_filename open file profile_img_filename for write put URL profile_image_url into profile_img_filename close file profile_img_filename But most of the times, the file .jpg is corrupted or shows weird stuff (like wron...
by AlbertoP
Thu Nov 13, 2014 4:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Execute command every XX seconds [solved!]
Replies: 6
Views: 5261

Re: Execute command every XX seconds [solved!]

It works perfectly, thanks! Now take a few seconds and think about what your original code was doing. It wasn't executing one iteration of the repeat every 20 seconds. instead it was repeating at full speed (which is pretty darn fast) and creating a pending message of "send FillList to me in 20 sec...
by AlbertoP
Thu Nov 13, 2014 3:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Execute command every XX seconds [solved!]
Replies: 6
Views: 5261

Re: Execute command every XX seconds

There is no need for the repeat. just create a command that sends for itself in 20 seconds if the autorefresh button hilite is true. example (psuedocode) on fillList do your current filllist stuff if the hilite of button autorefresh is true then send fillist to me in 20 seconds end filllist Nice ex...
by AlbertoP
Thu Nov 13, 2014 3:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Execute command every XX seconds [solved!]
Replies: 6
Views: 5261

Execute command every XX seconds [solved!]

Hi all, I want to add the option to auto execute a function every 20 or 30 seconds so the user doesn't have to be pushing buttons manually. I read I can use the "send" command, but it doesn't work for me... I wrote something like this: on mouseUp if the hilite of button "AutoRefresh" is true then re...
by AlbertoP
Thu Nov 13, 2014 2:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Save remote image to disk
Replies: 5
Views: 4013

Save remote image to disk

Hi all, Thanks for this great forum. I'm a complete livecode beginner, and I'm having trouble finding how to save a remote image into the disk (local or samba). I need this for a project that involves twitter and live production for media. I need to download images from tweets, save them into the di...