Re: memory databases fail in Windows

2018-04-03 Thread Mike Bonner via use-livecode
try changing :MEMORY: to :memory: On Tue, Apr 3, 2018 at 11:38 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi all. I have a function that works in Mac but not in Windows. Here is > the relevant code: > > function arrayToMemoryDB aArrayData >put the keys of aArra

Re: Selection Handles

2018-03-29 Thread Mike Bonner via use-livecode
lects and pops up my own selection handles, though that might be a > bit ugly. > > > On Mar 29, 2018, at 12:02 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Since you already have code in place to use your homegrown selection &g

Re: Selection Handles

2018-03-29 Thread Mike Bonner via use-livecode
Since you already have code in place to use your homegrown selection handles, can you adjust things so that the line doesn't actually have to be "selected" to make changes? My guess is that the small button you implemented can be dragged, and then you do your magic and adjust length while constrain

Re: Blurring field contents

2018-03-29 Thread Mike Bonner via use-livecode
You could set the imagesource of the characters into the field, take the snapshot, then "set the text of field "whatever" to the text of field "whatever" to revert. Did a quicky test, and it seems to work well enough. local simageOn on mouseup lock screen if sImageOn is empty then put false int

Re: Dinamyc variables.

2018-03-19 Thread Mike Bonner via use-livecode
Use an array instead... put empty into tCardArrayA[the short name of this card] Newly created cards where you don't specify the card name on creation, will have a card name set to the id of the card. (like "card id 1002") On Mon, Mar 19, 2018 at 9:43 AM, Bob Sneidar via use-livecode < use-livecode

Re: Not sure what to do.....can I run this by you guys?

2018-03-16 Thread Mike Bonner via use-livecode
ove example of what you are discussing > correct? If not could you please post an example? > > Thanks, > > Rick > > > On Mar 16, 2018, at 9:31 AM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Another way around the cache

Re: Not sure what to do.....can I run this by you guys?

2018-03-16 Thread Mike Bonner via use-livecode
Another way around the cache problem is to use the #2 trick at the end of the url. Send each request with a pound and different number at the end of the url and it'll be seen as a new request thus doing an end run around the cache. Since it designates an inline anchor position on the page, it sho

Re: Not sure what to do.....can I run this by you guys?

2018-03-15 Thread Mike Bonner via use-livecode
I've used load for this in the past. The ability to specify a callback message makes it work well. In my case I was experimenting with offloading a large job to a webserver for processing. To help with organizing the data being returned, I tacked a # and an incrementing number to the end of each

Re: When me is not me

2018-03-09 Thread Mike Bonner via use-livecode
Nevermind. Another card. DOH On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner wrote: > What version? Its working for me in 9 dp11 by using either dispatch or > send to the group. > > In the group: > command doit pbtn >set the hilitedbutton of me to pbtn > end doit > &g

Re: When me is not me

2018-03-09 Thread Mike Bonner via use-livecode
What version? Its working for me in 9 dp11 by using either dispatch or send to the group. In the group: command doit pbtn set the hilitedbutton of me to pbtn end doit And from the message box.. send ("doit" && 2) to group 1 or dispatch "doit" to group 1 with 3 On Fri, Mar 9, 2018 at 6:23 P

Re: Overwriting a file on a server

2018-03-06 Thread Mike Bonner via use-livecode
The specific lesson for lc server file uploads is here: http://lessons.livecode.com/m/4070/l/40708-how-to-upload-a-file-with-livecode-server but as mentioned, setup https first! On Tue, Mar 6, 2018 at 9:33 AM, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Graham Samue

Re: LC server and fonts

2018-03-06 Thread Mike Bonner via use-livecode
ev/fontconfig set up to handle this for you sounds like the way to go. On Tue, Mar 6, 2018 at 7:41 AM, Mike Bonner wrote: > Sure, i'll dig up a font file and try. > > On Tue, Mar 6, 2018 at 7:37 AM, jbv via use-livecode < > use-livecode@lists.runrev.com> wrote: > >>

Re: LC server and fonts

2018-03-06 Thread Mike Bonner via use-livecode
Mar 6, 2018 at 1:07 AM, jbv via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> When using > >> load font file "nameofyourfont.ttf" the result contains Handler: can't > >> find handler (file) > >> > >>

Re: LC server and fonts

2018-03-06 Thread Mike Bonner via use-livecode
t;nameofyourfont.ttf" > the result contains > Handler: can't find handler (file) > > It looks like "load" is accepted only in the form "load URL"... > > On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode wrote: > > Hmm. Not sure w

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread Mike Bonner via use-livecode
most works: > -- > if char 1 of the last item of tInstructions is "W" > then > put the last item of tInstructions into fld "instructions2" > delete the last item of tInstructions > -- > This fails if the last item is the first and only item (when there are 7 &

Re: LC server and fonts

2018-03-05 Thread Mike Bonner via use-livecode
fld to one of the fonts > available in the fontnames, but I still can't figure how to use any > other ttf font... > load font file "nameofyourfont.ttf" -> returns an error > I tried load URL "nameofyourfont.ttf", it works, but then the textfont > property is

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread Mike Bonner via use-livecode
ow. > All they know is a 'puzzle' to solve with pixelcoloring. > Funny I can solve it this way :-) > Still figuring how to do it because the children instruction is not just > binary writing as you explained it. > > Did you see my picture? > http://www.camelcaps.nl/pix

Re: Rotating PNG images

2018-03-05 Thread Mike Bonner via use-livecode
if you set the resizequality of your images to "best" prior to rotating, does it help? It should make quite a difference. On Sun, Mar 4, 2018 at 3:48 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > I have just spent/wasted 60 minutes rotating 64 PNG images in GIM

Re: Reverse 'pixelcoloring' and total amount of colors

2018-03-05 Thread Mike Bonner via use-livecode
If you want to know which "pixel" is on in a row, you could treat them as binary bits. Farthest right in a row is bit 1, next to the left is bit 2.. So your buttons could be 0 0 1 0 1 0 1 64 32 16 8 4 2 1 for a total of 21 which would

Re: LC server and fonts

2018-03-05 Thread Mike Bonner via use-livecode
With on-rev, I put up this script.. " & cr end repeat ?> And it works fine, with the exception of fonts with a - in the name. All of them are Hershey fonts, so not sure if its the font family that is broken, or the dashes causing the issue. If you have a ttf font file to use, you can probably p

Re: building deb packages

2018-03-01 Thread Mike Bonner via use-livecode
I'm giving up on the file size. No clue where the extra comes from, and I even went to far as to try compressing the .deb after the fact looking to see if it could be squeezed any tighter. But, Newp. On Wed, Feb 28, 2018 at 7:24 PM, Mike Bonner wrote: > Thanks for testing! Tickled

Re: building deb packages

2018-02-28 Thread Mike Bonner via use-livecode
Mbps.) Reading while answering, I think I may have some compression clues to follow up. Thanks Mark On Wed, Feb 28, 2018 at 6:48 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 02/28/2018 11:37 AM, Mike Bonner via use-livecode wrote: > >> I

building deb packages

2018-02-28 Thread Mike Bonner via use-livecode
I decided to see how hard it was to turn LC into a deb package. So far it hasn't been too difficult, the only thing I need to find again is how to have the icon auto update during the install. (as it is, to see the lc icon one must log out and in for it to show up, otherwise its the generic icon t

Re: Another server question (mixing node.js and LC)

2018-02-28 Thread Mike Bonner via use-livecode
One thing you might do if you were to decide to stick with apache would be to make sure you use either the worker mpm or events mpm (sounds like events would be the one you wanted for this) (read more on this page... https://httpd.apache.org/docs/2.4/misc/perf-tuning.html ) to get better performanc

Re: send "keyUp" / "rawKeyUp" ?

2018-02-25 Thread Mike Bonner via use-livecode
If you add rawkeydown handlers to your field, and then use the "type" command to type into them, you'll trap the key code being sent (which will always be the same for q no matter the keyboard) but there is then no relationship to the actual key on the keyboard that I can see. As for your 2 field

Re: send "keyUp" / "rawKeyUp" ?

2018-02-25 Thread Mike Bonner via use-livecode
, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > That's great, but I'm currently working on a Macintosh. > > Richmond. > > On 25/2/2018 7:38 pm, Mike Bonner via use-livecode wrote: > >> Just realized, if all you need

Re: send "keyUp" / "rawKeyUp" ?

2018-02-25 Thread Mike Bonner via use-livecode
yout (overriding normal mapping,) it might show in HKEY_CURRENT_USER\Keyboard Layout\Substitutes\1 For example, looking at the number 00010409 denotes 409 english us keyboard layout overridden to be a dvorak layout. After all this, i'm thinking that having the user do a nice keyboard faceroll mig

Re: Question about the result

2018-02-25 Thread Mike Bonner via use-livecode
2018 5:36 pm, Mike Bonner via use-livecode wrote: > > Ah, well the only useful part of my answer then would regard the first > > issue. The result remaining empty was the correct response because the > > base url was valid, so the command didn't fail to connect to the url, and &

Re: Question about the result

2018-02-25 Thread Mike Bonner via use-livecode
ned empty. > > On Sun, February 25, 2018 3:48 pm, Mike Bonner via use-livecode wrote: > > In the first case, I would check all 3 locations.. Since i'm assuming the > > first part of the url (yourdomain.com/index.php?) is correct, the put > > URL > > is most likely

Re: send "keyUp" / "rawKeyUp" ?

2018-02-25 Thread Mike Bonner via use-livecode
s. > > Now I realise I cannot SEND a command telling the key on the keyboard to do > "a pianola" and depress itself (wouldn't that be fun?). > > It would, however, be groovy if one could work out Farhad's keys without > having him to > go "bash, bash"

Re: Question about the result

2018-02-25 Thread Mike Bonner via use-livecode
In the first case, I would check all 3 locations.. Since i'm assuming the first part of the url (yourdomain.com/index.php?) is correct, the put URL is most likely succeeding in connecting to the url, so you would need to look at the contents of myVar to see what if anything was actually returned.

Re: send "keyUp" / "rawKeyUp" ?

2018-02-25 Thread Mike Bonner via use-livecode
A quick example placed in the card script. local sKeysPushed --keys kept in this variable for the example on rawkeydown pkey if sKeysPushed is empty then put pkey into sKeysPushed else put comma & pkey after sKeysPushed end if -- You would want to remove this block of course

Re: Did numberFormat Break?

2018-02-15 Thread Mike Bonner via use-livecode
If I recall what I read way back, I think the numberrformat only applies to containers other than variables. If you were to put tpoextprice into field "field" the numberformat should be applied correctly. I think the reason for this is that numberformat can be used to add non-number chars ($) bu

Re: Livecode.com server down

2018-02-15 Thread Mike Bonner via use-livecode
It looks like the option to generate offline activation files is version specific, but if it were me I think I'd generate files for the version I was most likely to install and carry them on a usb stick and/or add them to a place I could get to them on a droplet that I could easily spin up if neede

Re: Getting current line number of a table field.

2018-02-14 Thread Mike Bonner via use-livecode
ontains "revCell-" then put the short name of the focusedobject into tName replace "revCell-" with empty in tname set the cCol of the target to item 1 of tName set the cRow of the target to item 2 of tName end if end getline On Wed, Feb 14, 2018 at 10:19 AM, Mi

Re: Getting current line number of a table field.

2018-02-14 Thread Mike Bonner via use-livecode
For some reason I now want to name a table field "Opera." On Wed, Feb 14, 2018 at 10:09 AM, dunbarx via use-livecode < use-livecode@lists.runrev.com> wrote: > The extra field is what I once called a "phantom" field, ephemeral and > elusive. But it does exist: > > In a table field script: > > on m

Re: Mysql load dump

2018-02-14 Thread Mike Bonner via use-livecode
> > > Le 14 févr. 2018 à 17:12, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> a écrit : > > > > If this is sqlite, you might be able to use the .read dot command.. (note > > the nearly invisible period that begins .read) > > > > Unteste

Re: Getting current line number of a table field.

2018-02-14 Thread Mike Bonner via use-livecode
ingle table though, the first idea works great. Time to poke some more. On Wed, Feb 14, 2018 at 9:28 AM, Mike Bonner wrote: > a table field ISN'T a single field, its a field bundled with an extra > "editing" field that pops up as an overlay. I figured there had to be a > w

Re: Getting current line number of a table field.

2018-02-14 Thread Mike Bonner via use-livecode
a table field ISN'T a single field, its a field bundled with an extra "editing" field that pops up as an overlay. I figured there had to be a way to pass the cell data back to the field proper, and poked around till I found out that the transfer mechanism is the name of the overlay field. I was

Re: Mysql load dump

2018-02-14 Thread Mike Bonner via use-livecode
If this is sqlite, you might be able to use the .read dot command.. (note the nearly invisible period that begins .read) Untested, but this might work. put "path/to/dump.sql" into tPath put merge(".dump [[tpath]]") into tSql revexecutesql tDatabaseId, tsql If the dump is IN to sqlite, but is fro

Re: Getting current line number of a table field.

2018-02-14 Thread Mike Bonner via use-livecode
Try this... on rawkeyup pkey send "getline" to me in 10 millisec pass rawkeyup end rawkeyup command getline put the short name of the focusedobject end getline This gives you the name of the editing field that appears for each cell in the form of: revCell-2,2 Parse that and voila, you

Re: any tricks to make SHELL non blocking?

2018-02-05 Thread Mike Bonner via use-livecode
Don't recall if anyone has already mentioned using open process but.. But.. If you build your known working string ( ./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav') and put it in a variable tCommand and then do.. o

Re: Pasting tabs into Excel

2018-02-02 Thread Mike Bonner via use-livecode
It's strange. If you paste into excel, then select the cell and use the text to columns tool, using Space as delimiter, poof. Columns. Also, in libreoffice, paste special can be used to choose "unformatted text" and that works also. Surely there is a way to pop a simple tab delimited string into

Re: get URL problem on on-rev account

2018-01-25 Thread Mike Bonner via use-livecode
is it only the url calls that don't work? Meaning, if you do a simple: put "after url # " following each attempt, do THOSE work? If so, then i'm not sure what to say, especially since you mentioned that the logs don't show the requests. If any of the following "puts" fail, it might help you trac

Re: OT - What linux do you recommend for older PCs?

2018-01-23 Thread Mike Bonner via use-livecode
If you can switch to the 4.15 kernel the screen issue may be fixed, alternatively.. If you can get to a terminal screen with lubuntu, it looks like you can do the following to fix the display problem.. (works for some, not all it seems) sudo nano /etc/default/grub Simple editor 'nano' will open.

Re: Switcheroo

2018-01-21 Thread Mike Bonner via use-livecode
You aren't actually providing a line number. Try this.. repeat with i = 1 to the number of lines in field "mm" switch (line i of fld "mm" is empty) case true break case false break end switch end repeat Though if you have a LOT of lines you'd be better off adjusting it to use repea

Re: accessing 2 databases in 1 sql query

2018-01-18 Thread Mike Bonner via use-livecode
Does this help? http://www.sqlitetutorial.net/sqlite-attach-database/ Short version.. attach database lets you attach another db file to the current connection. So if you have db "contacts" open, and you attach a file AS contacts2 (which is an alias defined during the attach) then you can addres

Re: Streaming video..

2018-01-14 Thread Mike Bonner via use-livecode
a url that will work with vlc to the player object instead, no joy getting that to work so far. On Sun, Jan 14, 2018 at 10:22 AM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 01/13/2018 12:45 PM, Mike Bonner via use-livecode wrote: > >> Quick question.

Streaming video..

2018-01-13 Thread Mike Bonner via use-livecode
Quick question.. I'm attempting to write a program to work with my hdhomerun (networked tv streamer) and think i'm on track.. However, i'm not sure if its possible to tell the player to open a udp connection on port 5000 and wait for the stream to come in. (apparently, I need to have it ready to re

Re: Getting datagrid content from other stack in Standalone

2018-01-12 Thread Mike Bonner via use-livecode
this: > > put getParentCard(the long id of me) into tThisCard > put the dgData of grp 1 of tThisCard into tDataA > > Bob S > > > > On Jan 11, 2018, at 09:28 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Have you

Re: Getting datagrid content from other stack in Standalone

2018-01-11 Thread Mike Bonner via use-livecode
Have you tried something like this? It works for me. (though I just set the folder to the stacks location and use only the filename of the stack) put the dgdata of grp 1 of stack "path/to/dgstack.livecode" into tDataA On Thu, Jan 11, 2018 at 8:32 AM, Matthias Rebbe via use-livecode < use-liveco

Re: OT: system recommendation

2018-01-10 Thread Mike Bonner via use-livecode
k capture and post production workflow is a > contradiction in terms. > > Bob S > > > > On Jan 10, 2018, at 09:10 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Thanks Bob. Yeah I've already been stressing the need for a b

Re: Externally reffed-off

2018-01-10 Thread Mike Bonner via use-livecode
Yeah "/" exactly like you had it in your posted code. I swear, not useless. On Wed, Jan 10, 2018 at 11:50 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > Presumably the itemDelimiter should be "/" ? > > Richmond. > > > _

Re: OT: system recommendation

2018-01-10 Thread Mike Bonner via use-livecode
Ask me > how I know. Barring that, a RAID 5 may be a better choice, but it's not as > fast. > > Bob S > > > > On Jan 10, 2018, at 02:01 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > I also don't know how imp

Re: Problem pasting from Livecode to Mac Mail

2018-01-10 Thread Mike Bonner via use-livecode
Does this work? set the clipboarddata["text"] to "whatever text here" On Wed, Jan 10, 2018 at 8:20 AM, Richard Burkett via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks for the suggestion, Jacqueline, but it didn’t change anything. > Anyone else have a script-based solution to ma

Re: OT: system recommendation

2018-01-10 Thread Mike Bonner via use-livecode
way, final cut Pro X for > the Mac is what I would suggest. It’s the best deal at $300 > > On Wed, Jan 10, 2018 at 02:02 Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > Sorry for the off topic question, but this is my most trusted place for &

Re: Externally reffed-off

2018-01-10 Thread Mike Bonner via use-livecode
you still need to set the itemdelimiter for it to work Richmond, otherwise its not able to count items. Also, I thought part of the issue was that you were referencing a folder that is NOT in the application bundle using the copy files pane of the standalone settings. This is why using specialfol

Re: Externally reffed-off

2018-01-10 Thread Mike Bonner via use-livecode
f the environment is development you use the first method, else you use the second. On Wed, Jan 10, 2018 at 4:05 AM, Mike Bonner wrote: > Its because of this... > > *Cross-platform note:* On OS X systems, standalone applications are > stored as application bundles. A bundle behaves l

Re: Externally reffed-off

2018-01-10 Thread Mike Bonner via use-livecode
Its because of this... *Cross-platform note:* On OS X systems, standalone applications are stored as application bundles. A bundle behaves like a file but is actually a folder, and the main stack of a standalone application is inside this folder. The filename of stack property reports the location

OT: system recommendation

2018-01-10 Thread Mike Bonner via use-livecode
Sorry for the off topic question, but this is my most trusted place for tech knowledge. Appreciate any tips and advice (for a friend). My friend is looking to buy or build a pc to do 4k video editing. I know the obvious part.. If you can afford more memory, add more memory. After that, I'm lost

Re: Local Image Paths in HTML for Browser Widget Fails

2018-01-07 Thread Mike Bonner via use-livecode
ok, nevermind, you can't overlay the browser widget I guess. Is there a way? On Sun, Jan 7, 2018 at 9:14 PM, Mike Bonner wrote: > 2 possible options I can see.. either have a 2nd browser widget with that > page in it, and enable/disable hide/show or just move it out of the &

Re: Local Image Paths in HTML for Browser Widget Fails

2018-01-07 Thread Mike Bonner via use-livecode
k screen waiting. > > I must have been working too late and didn't see either of these to > things, which, are of course obvious. I'll start another thread on loading > web pages/user notifications. > > On 1/6/18, 10:15 AM, "use-livecode on behalf of Mike Bonner vi

Re: Local Image Paths in HTML for Browser Widget Fails

2018-01-06 Thread Mike Bonner via use-livecode
It may be easier if you hit the file directly.. Build up your path string to the html file and put it into a variable (including the file itself) Then rather than grabbing the contents of the file, first edit and hard code a relative path to your image in the file itself. Then load the file as a

Re: SQL Insert Syntax

2018-01-05 Thread Mike Bonner via use-livecode
Use the placeholder method? put your data into a numerically keyed array and change the insert to this.. INSERT INTO arraydata ("rect","controlname","owner","visible") VALUES (:1,:2,:3,:4) On Fri, Jan 5, 2018 at 2:24 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Possi

Re: Long Launch Time

2018-01-04 Thread Mike Bonner via use-livecode
I think this is what you're looking for: http://runtime-revolution.278305.n4.nabble.com/Slow-Opening-IDE-td4720805.html On Thu, Jan 4, 2018 at 10:34 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi all. > > I perused the forums but could not find the post and solutio

Re: Error deleting a stack

2018-01-01 Thread Mike Bonner via use-livecode
Try using a send in time to do the deletion? Also, with the settings you currently have, closing the stack SHOULD remove it from memory once any running scripts are complete. On Mon, Jan 1, 2018 at 9:03 AM, Graham Samuel via use-livecode < use-livecode@lists.runrev.com> wrote: > Happy New Year t

Re: LC Server - MySQL - update about 2000 rows/records of a table

2017-12-29 Thread Mike Bonner via use-livecode
On mysql.. can't you prebuild your multi-command transaction in a variable (with a beginning and ending to the transaction) and then use revexecutesql with a single call for the one big transaction? On Fri, Dec 29, 2017 at 5:59 PM, Dr. Hawkins via use-livecode < use-livecode@lists.runrev.com> wr

Re: Using open process instead of shell

2017-12-25 Thread Mike Bonner via use-livecode
had one more thought to make it easier. go back to your original idea of using a shell script but make the script have the format.. #!/bin/sh [your command here] echo "Command Complete" That way, its easy to see when an individual command finishes. In addition, if you use 3 separate files, 1 fo

Re: Using open process instead of shell

2017-12-24 Thread Mike Bonner via use-livecode
ess" to me in 100 millisec end if -- quick and dirty method of stopping the processes after a minute -- since this is only testing if the seconds - tstarttime > 60 then closeProcesses end monitorSlave command closeprocesses repeat for each line tline in openprocesses() close pro

Re: Using open process instead of shell

2017-12-24 Thread Mike Bonner via use-livecode
Off the top of my head, untested (no mac available) on executeProcess pData put whereAmI() into a; set the defaultFolder to a -- I'd bipass this --get "file:xprocess.bat" --put pData into URL it open process "file:xprocess.bat" for text write -- this part, if you want to use a

Re: rename folder not working?

2017-12-14 Thread Mike Bonner via use-livecode
Can you use shell? mv to move a folder or cp -R and do a recursive copy? >From reading the dictionary, it does seem that your first example should work if the intention is to move the 201 folder from "Childrens Law Center" to folder "bobtest" assuming bobtest already exists, and folder 201 doesn'

Re: rename folder not working?

2017-12-13 Thread Mike Bonner via use-livecode
Is "Childrens Law Center" the 5th level? Possibly a problem due to the spaces in the folder name? On Wed, Dec 13, 2017 at 6:00 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Yup just confirmed won't go more than 5 levels deep. > > Bob S > > > > On Dec 13, 2017, at 16:

Re: Website scraping - How can I load a 'partial' page?

2017-12-13 Thread Mike Bonner via use-livecode
method is best. On Wed, Dec 13, 2017 at 8:39 AM, Mike Bonner wrote: > I suppose one could use sockets and partial GET requests (using a range: > header), but i suspect it would be easier to just use an intermediary > server to handle things. To test, I set up an extremely simple p

Re: Website scraping - How can I load a 'partial' page?

2017-12-13 Thread Mike Bonner via use-livecode
I suppose one could use sockets and partial GET requests (using a range: header), but i suspect it would be easier to just use an intermediary server to handle things. To test, I set up an extremely simple page with the following: http://url.goes.here put char 1 to 6000 of url tpage -- request

Re: can´t save Standalone

2017-12-09 Thread Mike Bonner via use-livecode
Since you already have checked the box to move substacks to separate files, chances are that it is either a ) Saving the file as a name that is different than the one you are using in your "open stack ..." command, or b ) its looking in the wrong place. when you build the standalone, you can look

Re: What a datagrid "sees"

2017-12-06 Thread Mike Bonner via use-livecode
As a workaround, you could try a slightly different method.. local sLooping on mouseleave put false into sLooping -- stop the loop when outside the dg end mouseleave on mouseEnter if sLooping is empty then put false into sLooping if not sLooping then send "startloop" to me in 10 millisec

Re: Livecode Content Management System

2017-12-04 Thread Mike Bonner via use-livecode
While not exactly a CMS, I used LC as a paypal button code generator (encrypted buttons using openssl as the basis.) My little program generates a complete paypal button for each item and stores it in an sqlite database. It also takes an image drop and generates 2 sizes for the gallery I use. A

Re: Trapping multiple keystrokes

2017-12-01 Thread Mike Bonner via use-livecode
If you're using rawkeydown you can check to see if the key is actually still down before doing any processing.. on rawkeydown pKey -- since you're checking specifically for arrow keys, you can use pkey as the first part of the filter.. if pkey is among the items of "65361,65362,65363,65364"

Re: mouseWithin and mouseLeave problem

2017-11-17 Thread Mike Bonner via use-livecode
To set a scrollbar to vertical, make it taller than it is wide. On Fri, Nov 17, 2017 at 3:26 PM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > > > On 18/11/17 12:05 am, Kaveh Bazargan via use-livecode wrote: > >> Hi Bob >> >> Guess what. MouseRelease works if you c

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Mike Bonner via use-livecode
Look at mouserelease.. it should be sent to the scrollbar control if the mouse is released outside the control area, so you should be able to use the mouserelease message to reset your scrollbar to small size. On Wed, Nov 15, 2017 at 10:36 AM, Kaveh Bazargan via use-livecode < use-livecode@lists.

Re: Getting directory list from web server??

2017-11-06 Thread Mike Bonner via use-livecode
My guess would be that the default setting for directory browsing on the server has been changed to off. You have a couple options if that is the case.. enable directory browsing with using an htaccess file, or put an .lc script page in there that gets the list of files and folders and returns the

Re: Strange permissions issues calling 'shell' in Windows

2017-10-31 Thread Mike Bonner via use-livecode
don't know how to do so, but if you can give a group permission to run pslist, and then set the task to that group, that might be a way also. Here is the screen i'm looking at for all this... https://www.dropbox.com/s/0chbhqcn8hi4cu1/image%20%281%29.png?dl=0 On Tue, Oct 31, 2017 at 10:32

Re: Strange permissions issues calling 'shell' in Windows

2017-10-31 Thread Mike Bonner via use-livecode
i'm on 10, no clue what earlier versions would look like. On Tue, Oct 31, 2017 at 10:23 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Windows 10? > > Bob S > > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.

Re: Android Filing System?

2017-10-27 Thread Mike Bonner via use-livecode
Engine is the virtual/read only part of the file system. Your app will need to copy your initial data files from there into usable locations. you can use 'put url' to do this.. (or copy file..) put url ("binfile:" & specialfolderpath("engine") & "/myfile.dat") into url ("binfile:" & specialfolder

Re: Need an Applescript Expert

2017-10-24 Thread Mike Bonner via use-livecode
try this.. set the shellcommand to "powershell" set the hideconsolewindows to true put shell("ls") should return a listing of files for the current directory. You could also make it interactive.. open process "powershell" for update write "ls" & cr to process "powershell" read from process "power

Re: Export GIF File Does Retain Frames of Animation

2017-10-19 Thread Mike Bonner via use-livecode
instead do this.. put img "myGif" into url ("binfile:Usersrogerguay/Desktop/myGif2.gif") just tried it here, and it seems to work. On Thu, Oct 19, 2017 at 8:53 PM, Roger Guay via use-livecode < use-livecode@lists.runrev.com> wrote: > I meant does NOT retain . . . . > > > On Oct 19, 2017, at 2:50

Re: find name of handler that triggered current handler

2017-09-28 Thread Mike Bonner via use-livecode
Look at executionContexts in the dictionary, it should do what you want. On Thu, Sep 28, 2017 at 1:15 PM, Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi folks, > > How do i find the name and location of a handler that triggered the current > handler? somehow it seems like

Re: A modest proposal for a new property

2017-09-27 Thread Mike Bonner via use-livecode
As far as the pie charts go.. A workaround is to create the required ovals one at a time and import an image from each, then stack THOSE up. Or alternatively use the ovals, stack them, group them, and have a list of background colors used in each, and then in the group mouseup handler use the mous

Re: Developing Methods: Creating Scrolling groups larger than screen rect

2017-09-24 Thread Mike Bonner via use-livecode
Since you can copy an object to a group, all it takes is the second command.. copy btn "fred" to grp "mygroup" set the loc of btn "fred" of grp "mygroup" to x,y On Sun, Sep 24, 2017 at 8:35 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > Workin in 9.0.0 DP9 now. Old issues of editing

Re: Constraining an input field's contents to be a single line.

2017-09-20 Thread Mike Bonner via use-livecode
If "textchanged" triggers on paste, you can probably use that.. On Wed, Sep 20, 2017 at 3:40 PM, Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks for the prompt Mike. > > Short answer - don't know yet, though I suspect I'm going to have to find > out. > > I do not cu

Re: [OT] Alan Kay is angry

2017-09-18 Thread Mike Bonner via use-livecode
I agree for the most part. At this point, my hope is that people will clean the slate and kick everyone currently in office to the curb. Won't happen of course. Honestly though, I don't see how ANY politician, no matter how well intention-ed can get through the process of attaining office intact

Re: put after

2017-09-11 Thread Mike Bonner via use-livecode
seems like it should. In fact it should work with " into " also, but that has the same behavior On Mon, Sep 11, 2017 at 3:11 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Okay so if a field only has 1 word, and I state > > put tWord after word 2 of me into me > > Sh

Re: Group mouseup

2017-08-30 Thread Mike Bonner via use-livecode
You could place another transparent button over the top of the image to catch clicks if necessary. On Wed, Aug 30, 2017 at 10:12 AM, Ralph DiMola via use-livecode < use-livecode@lists.runrev.com> wrote: > Worked, Thanks! > > Another observation. If an image is in a group and you click on a > tran

Re: livecode changes image colors without being asked to do it

2017-08-30 Thread Mike Bonner via use-livecode
Not sure if it will make a difference, but you might want to-- set the resizequality of the img "imagename" to "best" On Wed, Aug 30, 2017 at 6:54 AM, Robert Brenstein via use-livecode < use-livecode@lists.runrev.com> wrote: > I have a stack that dynamically sets the image that is displayed on a

Re: Using "Launch URL" without actually opening browser?

2017-08-26 Thread Mike Bonner via use-livecode
without getting the Google Form response. I was thinking of > possible using this strategy in an HTML5 stack with student Chromebooks. > > Too bad, that would have been an easy way to store light weight stack data > without a lot of effort :( > > Thank you! > > > > >

Re: Using "Launch URL" without actually opening browser?

2017-08-26 Thread Mike Bonner via use-livecode
Try get url "https://docs.google.com/forms/d/e/1FAIpQLScoYoEfrcewj4IEG0FnfjBn feVVSLva5tWv-dVexoP95trNNA/formResponse?"& tStudentName & tDate & tSecondsSince & tCardName & tTargetObject On Sat, Aug 26, 2017 at 3:15 PM, JOHN PATTEN via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi All,

Re: notifications system using "the files"? bad idea?

2017-08-23 Thread Mike Bonner via use-livecode
If things don't work as well as you like, and you decide to go with sockets, (and you are ok with running a small server process) chatrev is cool, is already built, and should be easy to modify to do what you want. (Its already set to distribute messages from clients to the server then out to the

Re: Search Values of Array in "One Go"

2017-08-23 Thread Mike Bonner via use-livecode
is news! Where do we find docs on this? right now the SQLite > data base is in > > > > specialFolderPath("documents")/jnanam.sqlite > > > >how do you "create in memory? > > > > > According to an old message (i.e. I&

Re: Search Values of Array in "One Go"

2017-08-23 Thread Mike Bonner via use-livecode
I'm with bob on this.. If for some reason you can't use the database that produced the array, shove the data into an sqlite db instead. In memory, or if you need persistence a db file. Alternatively, if you store your data flat rather than in an array. Then you can repeat for each line tline i

Re: Goofy question #7234

2017-08-23 Thread Mike Bonner via use-livecode
Old question but.. since its a function, whether you use do or not, gotta have the () at the end. On Wed, Aug 23, 2017 at 8:57 AM, Jonathan Lynch via use-livecode < use-livecode@lists.runrev.com> wrote: > Sorry - old message that randomly popped up in my email! > > Sent from my iPhone > > > On A

<    1   2   3   4   5   6   7   8   9   10   >