Re: My own productivity app

2016-11-29 Thread Mike Bonner
The only way I know of to monitor keystrokes/mouse events is with a loop. Check to see if keysdown() is empty, and "if the mouse is down." Certain things won't trigger the mouse is down such as grabbing a title bar and dragging it around (on windows) but most other clicks will work fine. For a

Re: [OT] Hosed Xubuntu system

2016-11-28 Thread Mike Bonner
My english skills are degrading at a high rate of speed apparently. Fixes: "set it up clean and up to date" and "at the end of each day, multicast the clean image to all computers to prep for the next day" On Mon, Nov 28, 2016 at 3:59 PM, Mike Bonner <bonnm...@gmail.com

Re: [OT] Hosed Xubuntu system

2016-11-28 Thread Mike Bonner
If you have a spare machine and a large drive to store images, you might look at FOG. When I was working at the local computer lab it was very helpful since people can be..shall we say, destructive. We had a couple groups of machines, and would use one as master. Set it up clean and up to day,

Re: OT non LC: cross tab/window browser communication

2016-11-22 Thread Mike Bonner
st extensive book on the > LiveCode language: > http://livecodebeginner.economy-x-talk.com > > Op 22-Nov-16 om 21:02 schreef Mike Bonner: > >> I have a problem I need to solve with a web page i've set up.. On my page >> (my domain) I have forms that submit to an ext

OT non LC: cross tab/window browser communication

2016-11-22 Thread Mike Bonner
I have a problem I need to solve with a web page i've set up.. On my page (my domain) I have forms that submit to an external domain (paypal) and open a new named tab on submission. I need to be able to block further actions until the paypal page load is complete. Currently, I have simply set up

Re: roundUp function?

2016-11-22 Thread Mike Bonner
Kinda pointless since you can use ceiling, but you could go old school and add .5 to the number, then round to achieve the same affect. On Tue, Nov 22, 2016 at 7:29 AM, Roger Eller wrote: > Thanks, Peter! > > ~Roger > > > On Tue, Nov 22, 2016 at 9:27 AM, Peter TB

Re: roundUp function?

2016-11-22 Thread Mike Bonner
Actually, .4 I guess. On Tue, Nov 22, 2016 at 7:38 AM, Mike Bonner <bonnm...@gmail.com> wrote: > Kinda pointless since you can use ceiling, but you could go old school and > add .5 to the number, then round to achieve the same affect. > > On Tue, Nov 22, 2016 at 7:29 AM, Roger

Re: Inconsistent results in simple script

2016-11-16 Thread Mike Bonner
Yeah, you can use the same handler because order doesn't matter. It sounded from your description like the barcode was unique to 1 item, so it should work dandy. Once the array is built (assuming you decide to leave it as an array and not combine it) the array is keyed by the barcode so its easy

Re: Inconsistent results in simple script

2016-11-16 Thread Mike Bonner
Craig is right, this is asking to be an array, though if you prefer a flat file you can combine it at the end like so. on mouseUp repeat for each line tLine in field "csv1" put item 2 of tLine into tDataA[item 1 of tLine] end repeat repeat for each line tLIne in field "csv2" put comma &

Re: autoScript

2016-11-16 Thread Mike Bonner
I've found a way to make it fail, but find it is very unlikely it is the cause of your issue (because its a silly little thing) But out of curiosity. if you add some type of msg box output to the handler that sets the script of the button, this would ensure that the setting handler actually

Re: Recoding: search and replace

2016-11-16 Thread Mike Bonner
The only thing I would do different would be to use the "repeat for each" form rather than putting into lines. If your script is really long, the time savings will add up. I THINK it will make an even greater difference because you a) have to look at a specific line, then b) you have to grab the

Re: autoScript

2016-11-16 Thread Mike Bonner
Did you check the result after setting it? Hopefully it will tell you why it failed. On Wed, Nov 16, 2016 at 7:47 AM, Richmond wrote: > I honestly don't know. > > I have just tried my stack in LC 9dp1 and, yes, the thing worked. > > So I tried it again in LC 8.1.1

Re: autoScript

2016-11-16 Thread Mike Bonner
hardWork, creativity and perseverance, but > there are no > signs on even payForMyCoffee let alone makeMeRich . . . > > could be something to do with too many uses of the term 'wrongNiche' in my > code . . . > > now back to the Sanskrit . . . > > Love, Richmond. > > > O

Re: autoScript

2016-11-16 Thread Mike Bonner
the rng pops out the right combination. On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen <tore.nil...@me.com> wrote: > Has anyone ever been able to make the “makeMeRich” command work? If not, > has anyone filed a bug report? > > Tore > > 16. nov. 2016 kl. 14.49 skrev Mike Bo

Re: autoScript

2016-11-16 Thread Mike Bonner
> necessary magic myself. > > And I think that most people will find that making coffee is slightly > beyond the capabilities of LC, regardless of version or OS. > > Regards > Tore > > > > 16. nov. 2016 kl. 14.37 skrev Mike Bonner <bonnm...@gmail.com>: > >

Re: autoScript

2016-11-16 Thread Mike Bonner
hew...@gmail.com> wrote: > I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my initial > message as I thought they would be assumed. > > Richmond. > > > On 16.11.2016 15:24, Mike Bonner wrote: > >> I'm surprised it works in 7 since it should r

Re: autoScript

2016-11-16 Thread Mike Bonner
I'm surprised it works in 7 since it should result in an orphaned line of code with no handler designation. (as indicated by tore, you should need to include the on mouseup and end mouseup) On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen wrote: > On MacOS 10.12.2 > > > > 16.

Re: replaceText usage

2016-11-16 Thread Mike Bonner
I have a feeling you're trying to do something that I'm missing but I'll give it a shot.. you put line QOUNT into variable processt.. but then you don't actually use the variable. If you're wanting to actually change the line itself you would need to do replace "unicodeText" as the first

Re: excessive bounces

2016-11-14 Thread Mike Bonner
Got me (gmail) today again. On Mon, Nov 14, 2016 at 7:58 PM, Jerry Jensen wrote: > That was just a trip down memory lane. Besides you, Colin, on the east > coast, I had several people in southern cal trying to send to me from > verizon.net addresses with the same problem. I

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-08 Thread Mike Bonner
Very interesting discussion! I'm still curious though. Since the op already takes the json based file and turns it into an array ( probably using an existing json library.) Since this step is already done, and the array esists, is there an actual benefit to then breaking that array into

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-06 Thread Mike Bonner
Why not just leave it as an array? In fact, if you want to have separate preferences categories, that's easy enough to do too. local sPrefsA put getPref ("preferences/modules/color-meditation") into sPrefsA[ColorMedPrefs] at this point you have an local script array variable structured like

Re: Find chars

2016-11-06 Thread Mike Bonner
There is an optional "form" that can be specified with find, so it looks like it still exisits. form enum If no *form* is specified, the normal form is used. anywhere in the field's words One of the following items: - normal -Find each word in textToFind, at start of the field's words -

Re: Recoding: search and replace

2016-11-06 Thread Mike Bonner
Using a backup of course.. You might try something simple like.. repeat for each line tline in the script of stack "yourscripttarget"-- wherever your script is. if tline contains "set the unicodetext of fld " & quote & "fDECODE"& quote & " to (numtocodepoint(" then replace "set the

Re: disabled on 10/28 for bounces--to gmail???

2016-11-03 Thread Mike Bonner
Bumped from the list again. *sigh* On Thu, Nov 3, 2016 at 1:47 PM, Bob Sneidar wrote: > OK, that being said, my spam filter is reporting fairly regularly that > certain use list accounts have been quarantined for spam. This can happen > if someone gets ahold of your

Re: tableField . . . refering to columns

2016-11-03 Thread Mike Bonner
The why has been covered.. no "column" delimiter, and the fact that.. if it were to actually work, putting item 1 of your sample data into item 1 of the field should put the item separated by the specified item delimiter.. so there would be no change. (unless as above you use 2 delimiters Meaning

Re: excessive bounces

2016-10-28 Thread Mike Bonner
ssages backs up that there were bounces. > > > > On Oct 28, 2016, at 12:36 PM, Mike Bonner <bonnm...@gmail.com> wrote: > > > > Any idea why my account here might have been disabled due to "excessive > > bounces?" Says the last bounce was today and, ot

excessive bounces

2016-10-28 Thread Mike Bonner
Any idea why my account here might have been disabled due to "excessive bounces?" Says the last bounce was today and, other than this email right here, I haven't sent anything to the use list today. ___ use-livecode mailing list

Re: Closing a stack and deleting it too

2016-10-21 Thread Mike Bonner
n > use, a handler in the library ‘belongs’ to the stack which initiated its > execution. Amazing how something apparently simple can become so > complicated! > > Graham > > > On 21 Oct 2016, at 20:56, Mike Bonner <bonnm...@gmail.com> wrote: > > > > Make sur

Re: Closing a stack and deleting it too

2016-10-21 Thread Mike Bonner
Make sure if you are doing a send to delete the stack that you don't have it send to itself. An external (hidden?) mainstack would be the way to go, otherwise telling the stack to send the delete request to itself would be a circular type of thing. Can't delete the stack running the script, so

Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread Mike Bonner
, Mike Bonner <bonnm...@gmail.com> wrote: > Silly question but.. If the mainstack has a bunch of substacks, and you > try to close and remove the mainstack from memory while the substacks > remain open, is this even possible? Substacks have a mainstack property, > and it seem

Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread Mike Bonner
Silly question but.. If the mainstack has a bunch of substacks, and you try to close and remove the mainstack from memory while the substacks remain open, is this even possible? Substacks have a mainstack property, and it seems the message path is kinda hardwired in that instance. If you do

Re: OCR

2016-10-03 Thread Mike Bonner
. The biggest limitation ( in my eyes) would be connection speed to move image data around. On Mon, Oct 3, 2016 at 6:55 AM, Mike Kerner <mikeker...@roadrunner.com> wrote: > Have either of you tried these, and if so, have you tested response time? > > On Mon, Oct 3, 2016 at 8:44 AM, Mik

Re: OCR

2016-10-03 Thread Mike Bonner
Might look here too: https://cloud.google.com/vision/ and here https://developers.google.com/vision/text-overview On Mon, Oct 3, 2016 at 6:41 AM, Roger Eller wrote: > I have needed it for an android app before. I looked into shelling a > tesserract command. That

Re: Make substack a mainstack?

2016-09-26 Thread Mike Bonner
You can also do it from the message box.-- set the mainstack of stack "mystack" to "mystack" On Mon, Sep 26, 2016 at 8:12 AM, Richard Gaskin wrote: > Alan wrote: > > > Using LC 8.1, if I get the stack properties for a sub-stack, I can no > > longer set the substacks

Re: How to stop LoveCode running in Edit mode

2016-09-26 Thread Mike Bonner
With the exception of the datagrid helper (I think thats the only one) the others are part of the distribution. It sounds like the datagrid helper is installed in livcodes system plugin folder. On windows the plugins folder is at C:\Program Files (x86)\RunRev\LiveCode Community 8.1\Plugins On

Re: "Command" as control structure?

2016-09-25 Thread Mike Bonner
I don't think there is a difference, though I use command for my handlers and on for rev built ins (on mouseup, on keydown etc). Just another way to aid my recognition of things in my scripts. On Sun, Sep 25, 2016 at 2:20 PM, Peter Bogdanoff wrote: > I see that “command” is a

Re: ANN: new glx2 script editor now on line

2016-09-23 Thread Mike Bonner
My guess would be that glx2 filters handlers starting with rev, as in the case of reviewSelections. Just a guess though since I don't have glx2 set up at the moment. On Fri, Sep 23, 2016 at 6:44 PM, Sannyasin Brahmanathaswami < bra...@hindu.org> wrote: > Mark: Really > curious about

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Mike Bonner
The parameter is passed on, not set by you. To do what you want it would be more like on mouseup pvar if pvar is 3 then do stuff end if end mouseup On Thu, Sep 22, 2016 at 2:11 PM, Roger Eller wrote: > The script editor won't compile a mouseUp handler with 1 2

Re: Waiting for the train

2016-09-22 Thread Mike Bonner
y. >> >> >> On 9/22/2016 3:58 PM, Richmond wrote: >> >>> Well . . . that works as far as menu commands from the revMenubar >>> stack go, but it still blocks >>> mouseClicks on the revTools stack and keyboard commands . . . >>> >>> Ric

Re: The name of the property to trace scripts into the IDE

2016-09-22 Thread Mike Bonner
gRevDevelopment is the one you're thinking of I believe. On Thu, Sep 22, 2016 at 1:40 PM, Dr. Hawkins wrote: > Things are getting out of control more and more often. Today it was the > lack of buttons on dialog windows about closing stacks, the previous couple > of days had

Re: Waiting for the train

2016-09-22 Thread Mike Bonner
add "with messages" On Thu, Sep 22, 2016 at 1:37 PM, Richmond wrote: > I have a stack that sits around as a Palette with a script in it that > repeats itself every 18000 ticks (that's 5 minutes to Thee and Me) with > a code like this: > > *put 1 into KOUNT** >

Re: Any characters wildcard or regex?

2016-09-22 Thread Mike Bonner
. > > > On 22 Sep 2016, at 15:12, Klaus major-k <kl...@major-k.de> wrote: > > > > Hi Mike and Keith, > > > >> Am 22.09.2016 um 16:03 schrieb Mike Bonner <bonnm...@gmail.com>: > >> > >> Using replacetext, you're probably looking for

Re: Any characters wildcard or regex?

2016-09-22 Thread Mike Bonner
Using replacetext, you're probably looking for "<.*>" but you might be able to use a field for this.. set the htmltext of the field to your source text, Then if you don't want the formatting preserved set the text of the field to the text of the field. One problem with this method is that you

Re: Malte Brill stack

2016-09-22 Thread Mike Bonner
I only know the contest description referenced building a robowars clone as one of the objectives, I wasn't around at the time, so I don't know if starbattle is one of the entries.. But most likely my answer is yes, I do! I'd love to see it if it's available and ok with Geoff. On Thu, Sep 22,

Re: Malte Brill stack

2016-09-21 Thread Mike Bonner
DId anyone do the "advanced" challenge and make a robowars clone? And if so, is there any chance I can have a look at it? On Wed, Sep 21, 2016 at 3:55 PM, Malte Brill wrote: > Hi Al, > > this was way back in 2005. More than a decade ago (omg I am old). It > was a

Re: Fast way to retrieve a range of data

2016-09-20 Thread Mike Bonner
This should be pretty fast if I understand your criteria well enough.. put field "yourfield" into tData filter lines of tData with ("2" & tab & 54 & tab & "*") On Tue, Sep 20, 2016 at 8:08 PM, Nicolas Cueto wrote: > Given a text field ("Vocabulary Indices") of tab-delimited

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Mike Bonner
Thanks Richard, that does answer my question. Repeating for each line in an external url does load the whole thing at once. Someone remind me.. I think I read that the "for each" no longer creates a second copy of the data, is this correct? Or did it ever make a duplicate? On Tue, Sep 20, 2016

Re: Silly Text Field Question

2016-09-20 Thread Mike Bonner
ser does click the mouse, it > behaves normally and places the insertion point in the current content at > the position of the mouse pointer at the moment of the click. > > As with Mike's approach, the script for this behaviour is in the card > script to provide the default behaviour for

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Mike Bonner
If a file you can do this.. repeat for each line tline in url "file:yourfilename.csv" put item 1 of tLine & comma & item 3 of tline & comma & item 15 of tLine & return after tExtracted end repeat delete the last char of tExtracted -- remove the extraneous return Or you can put them into an

Re: Silly Text Field Question

2016-09-20 Thread Mike Bonner
Try this.. local sHilitedelay on openField -- sHilitedelay is used to avoid a weird side effect when regaining stack focus -- by clicking on a field in the card. If a field other than the previously selected -- is clicked, it can start a runaway loop. The delay solves this problem. -- when

Re: Dumb question about files on a server

2016-09-19 Thread Mike Bonner
trieve > the path to the remote server. I bet this is so simple that you didn't > think it was a problem. I will experiment some more, but I have not got it > right so far. > > Cheers > > Graham > > Sent from my iPad > > > On 19 Sep 2016, at 22:36, Mike Bonner &

Re: Dumb question about files on a server

2016-09-19 Thread Mike Bonner
s all > happening in a .lc script run by the LC Server engine. > > In these circumstances, I thought a fairly straightforward bit of LiveCode > coding would do the job. This is different from what you’re suggesting, I > think - though I am out of my comfort zone doing this at all. &

Re: Dumb question about files on a server

2016-09-19 Thread Mike Bonner
It sounds like you have an app that you want to use to manipulate files and folders on a remote server. You could set up a script on the server as a middle man pretty easily I think.. Something like this.. (off the top of my head) Have it accept $_POST data, one item of which could be

Re: Constrain word delimiter to space only

2016-09-17 Thread Mike Bonner
I still forget about trueword. Thanks for the reminder. On Sat, Sep 17, 2016 at 3:56 PM, Richard Gaskin wrote: > Sannyasin Brahmanathaswami wrote: > > > if you do this > > > > put "He said, " & quote & "LiveCode has a very supportive community." > > & quote into

Re: Constrain word delimiter to space only

2016-09-17 Thread Mike Bonner
set the itemdelimiter to space and use that instead. On Sat, Sep 17, 2016 at 3:30 PM, Sannyasin Brahmanathaswami < bra...@hindu.org> wrote: > if you do this > > put "He said, " & quote & "LiveCode has a very supportive community." & > quote into tQuote > put word 3 of the quote > > > you get

Re: detecting currently connected printer - Mac

2016-09-16 Thread Mike Bonner
ve no active > printers on my network at home. > > > > On Sep 16, 2016, at 2:02 PM, Mike Bonner <bonnm...@gmail.com> wrote: > > > > does-- lpstat -p give the info you need? (from shell) > > > > On Fri, Sep 16, 2016 at 11:52 AM, Peter M. Brigham &l

Re: detecting currently connected printer - Mac

2016-09-16 Thread Mike Bonner
does-- lpstat -p give the info you need? (from shell) On Fri, Sep 16, 2016 at 11:52 AM, Peter M. Brigham wrote: > Anyone know how to get a listing of the currently connected printer on a > Mac? I used to do this on my (very) old MacBook via a shell call: > put shell("ioreg")

Re: getProp puzzle

2016-09-11 Thread Mike Bonner
Hmm. Ok. My mistake. Seems to work.. is stack B a substack of stack A? If not, that might be the issue.. If stack b is a mainstack, then the request can't go up the message path to stack a, which then makes my previous point applicable. On Sun, Sep 11, 2016 at 3:59 PM, Mike Bonner <bo

Re: getProp puzzle

2016-09-11 Thread Mike Bonner
The "of stack b" part, delineates where the pseudo property resides. Since there is no getprop nSL of stack b, you get nothing back. Better off to create a function that takes an object reference as a parameter, and make sure its in the message path so you can hit it from anywhere. On Sun, Sep

Re: clickChunk discrepancy

2016-09-10 Thread Mike Bonner
You can turn off "list behavior" in the properties, and it will work, but even then if you still want the clicked line to be selected, you'll have to do that in code yourself. On Sat, Sep 10, 2016 at 9:32 AM, Richmond wrote: > Why, if one clicks on a word (a set of

Re: Threading (plus random question)

2016-09-08 Thread Mike Bonner
Mike Kerner <mikeker...@roadrunner.com> > > wrote: > > > > > Monte, why not make it a preference? I personally like it, except > when I > > > get the focus flip. > > > > > > On Thu, Sep 8, 2016 at 9:18 AM, Monte Goulding <mo...@appisle.net&

Re: Threading (plus random question)

2016-09-08 Thread Mike Bonner
IIRC thats the editor tabs closing on enter is a feature. Press once on a dirty tab and it compiles, press it on a green tab and it closes. I think the purpose is to speed up quicky edits. Open the editor, make a change, tap enter twice and the change is applied and gone. Unfortunately, a

Re: How to tell the engine version of a Windows standalone?

2016-09-05 Thread Mike Bonner
I wasn't sure it would work on the others (not tested) but cool that it does. I've been wondering how things are shoved together in the builder... If there just happens to be a match in someones properties, fields, labels.. whatever.. Is there a chance that the wrong data would be returned?

Re: How to tell the engine version of a Windows standalone?

2016-09-05 Thread Mike Bonner
Change it to this..put ".*([0-9]+\.[0-9]+\.[0-9]+).*" into tstring for double digit version coverage On Mon, Sep 5, 2016 at 11:01 AM, Ben Rubinstein <benr...@cogapp.com> wrote: > Blimey Mike, that works! Thank you. > > Ben > > On 05/09/2016 16:30, Mike Bonner

Re: How to tell the engine version of a Windows standalone?

2016-09-05 Thread Mike Bonner
oops. :) My regex fu is weak. On Mon, Sep 5, 2016 at 10:49 AM, hh wrote: > > Mike B. wrote: > > put ".*([0-9]\.[0-9]\.[0-9]).*" into tstring > > get matchtext url ("binfile:" & \ > > "path/to/standalone.exe",tstring,tMatch) > > put tMatch > > This is admirable insight. >

Re: How to tell the engine version of a Windows standalone?

2016-09-05 Thread Mike Bonner
Correction, change it to:get matchtext(url ("binfile:" & "path/to/standalone.exe"),tstring,tMatch) I accidentally dropped a paren. On Mon, Sep 5, 2016 at 9:30 AM, Mike Bonner <bonnm...@gmail.com> wrote: > Try this.. (should work in a message box

Re: How to tell the engine version of a Windows standalone?

2016-09-05 Thread Mike Bonner
Try this.. (should work in a message box) put ".*([0-9]\.[0-9]\.[0-9]).*" into tstring get matchtext(url ("binfile:" & "path/to/standalone.exe",tstring,tMatch) put tMatch Not sure it'll work every time, but it's worked on everything I've tried from 4.6.1 to 8.0.1 On Mon, Sep 5, 2016 at

Extremely OT: Transceiver for sale

2016-08-31 Thread Mike Bonner
Hey all, sorry for the off topic, but I figure the amount of brains and wide range of interests in this group.. I might as well see if anyone wants some electronics. (if not I'll ebay them) I recently bought a used ambulance (yes really) and am modifying things for disability camping. It came

Re: Underneath

2016-08-27 Thread Mike Bonner
Made some changes to your stack, link here. https://www.dropbox.com/s/tdz7287r3w75vfw/CRAZY%20LETTERS.livecode?dl=0 Minor changes in the initial tile script, and more in the script of the field fscrip On Sat, Aug 27, 2016 at 2:04 PM, Tore Nilsen wrote: > Have you tried to

Re: [ ANN ] Release 8.1.0 RC-1

2016-08-25 Thread Mike Bonner
This: set the textsize of field "auto complete" of card "single line" of stack "message box" to 18 On Thu, Aug 25, 2016 at 12:17 PM, Mike Bonner <bonnm...@gmail.com> wrote: > Oh, theres 2 more fields you'd have to adjust too I guess. (the ones >

Re: [ ANN ] Release 8.1.0 RC-1

2016-08-25 Thread Mike Bonner
Oh, theres 2 more fields you'd have to adjust too I guess. (the ones displaying the "best guess.." as you type. On Thu, Aug 25, 2016 at 12:16 PM, Mike Bonner <bonnm...@gmail.com> wrote: > Richmond.. Short term you can do this.. > > set the textsize of field "

Re: [ ANN ] Release 8.1.0 RC-1

2016-08-25 Thread Mike Bonner
ion to > learn that. For them a settings pane in the IDE Preferences would be very > good indeed. > > R. > > > On 25.08.2016 21:16, Mike Bonner wrote: > >> Richmond.. Short term you can do this.. >> >> set the textsize of field "message" of card "

Re: [ ANN ] Release 8.1.0 RC-1

2016-08-25 Thread Mike Bonner
Richmond.. Short term you can do this.. set the textsize of field "message" of card "single line" of stack "message box" to 18 set the textsize of field "results" of card "single line" of stack "message box" to 18 set the textsize of field "message" of card "multiple lines" of stack "message box"

Re: open stack

2016-08-24 Thread Mike Bonner
If you're working in the ide, chances are the defaultfolder is not set to point to the correct place, which would mean you'd need to provide a full path to the stack you want to open, or set the default folder to point to the right place. the line "if there is a stack tFilename then open stack

Re: Wouldn't it be neat...

2016-08-22 Thread Mike Bonner
does it work if you put it into the selectedchunk instead of the selectedtext? On Mon, Aug 22, 2016 at 8:22 PM, Roger Guay wrote: > Hi Richard, > > I take it back. I thought I had it working but alas, not so much. I can’t > make it work for a button in a palette stack (a plugin)

Re: Wouldn't it be neat...

2016-08-21 Thread Mike Bonner
ty, Peter and Mike. > > Mike, I tried a similar script in plugin, but I don’t know how to make it > interact with the Script Editor. What am I missing? > > > > > On Aug 20, 2016, at 8:29 PM, Mike Bonner <bonnm...@gmail.com> wrote: > > > > I like this ide

Re: Wouldn't it be neat...

2016-08-20 Thread Mike Bonner
I like this idea, so I made a quick and dirty method. Made a button with this.. on mouseUp put the selectedtext into tText if the first char of tText is not quote then put quote before tText if the last char of tText is not quote then put quote after tText put tText into the

Re: Garbage collection (crashing on Windows)

2016-08-18 Thread Mike Bonner
Or you can probably delete the whole variable directly. On Thu, Aug 18, 2016 at 8:59 AM, Mike Bonner <bonnm...@gmail.com> wrote: > If you switch to using an array key with your global variable, and then " > delete global gArray[yourkey]" it should release the memory. >

Re: Garbage collection (crashing on Windows)

2016-08-18 Thread Mike Bonner
If you switch to using an array key with your global variable, and then " delete global gArray[yourkey]" it should release the memory. On Thu, Aug 18, 2016 at 8:28 AM, Ben Rubinstein wrote: > Thanks Monte, Richard. > > As it happens this script isn't doing with properties,

encrypted buttons final answer

2016-08-15 Thread Mike Bonner
Hey, I asked about generating encrypted paypal buttons a while back, have been busy since, but it does turn out to be relatively easy so I thought I'd share the method. put "item_name=" & field "item_name" into tEncrypt put cr & "amount=" & field "Amount" after tEncrypt put cr & "on1=" &

Re: list field question

2016-08-14 Thread Mike Bonner
I just tried a quick and dirty method, not fully fleshed but it might do what you need to if you can work out all the positioning.. I made a list field with enough entries to require scroll, then I made some graphic rectangles and lined them up with the lines I want to disable. Added 1 extra grc,

Re: put one array after another

2016-08-10 Thread Mike Bonner
Try union union firstarray with secondarray though if you have duplicate keys, the duplicate will not change the current. From the dictionary... local tLeft, tRight put "green" into tLeft["color"] put "left" into tLeft[ "align"] put "blue" into tRight["color"] put "100" into tRight["width"]

Re: PowerPoint VBA from LC?

2016-08-07 Thread Mike Bonner
If you can send keys to the powerpoint app, you might be able to open the file, and then send keys to open the menu, and then step through the keypresses you need to do what you want. Having said that, have you considered using autoit instead? (its geared for just this sort of thing) Theres one

Re: Get value of JSON

2016-08-05 Thread Mike Bonner
While i'm not yet good at reading json directly, i'm guessing mergeJson works similarly to the built in json library, so I shoved your first sample into a field and did the following in the message box. put jsonimport(field 1) into tdat; put the keys of tdat >From that first example, it looks

Re: Destroy Browser Window

2016-08-02 Thread Mike Bonner
If setting its visible to false, and/or moving it off screen won't work, treat it like the control it is. If you were deleting a field, you would "delete field "fieldname.." or whatever method you wish to use to specify the specific field. Do the same with the browser widget. delete widget

Re: Create and Delete Browser Widget?

2016-08-02 Thread Mike Bonner
Can you simply set the rect of the browser widget to be off screen? On Sat, Jul 30, 2016 at 9:53 PM, Sannyasin Brahmanathaswami < bra...@hindu.org> wrote: > Thks for the tips. > > Results: > > Stack A > has a mobileScroller on card 1 > the group that scrolls has links, some to out to

Re: Moving from 6.6.1 to 8.0.0 Handlers vanished

2016-07-27 Thread Mike Bonner
Camm, you did actually type something (almost anything) into the script (you said the script is there, but the handlers don't show) and then apply the changes? (even a space will work) This was mentioned elsewhere, and I've run across it in the past myself where a script can be set, but still

Re: Moving from 6.6.1 to 8.0.0 Handlers vanished

2016-07-26 Thread Mike Bonner
In 8, try some small edit in the script and then re-apply the changes and see if it solves the issue. On Tue, Jul 26, 2016 at 11:40 AM, Camm wrote: > Hello , > > > I may have missed something minor but had to stay with 6.6.1 until serial > port issue addressed. This was

Re: Slip, sliding away

2016-07-25 Thread Mike Bonner
Another mousemove version.. local sDragging, sLastX on mouseup put false into sDragging end mouseup on mouserelease put false into sDragging end mouserelease on mousedown put true into sDragging put item 1 of the mouseloc into sLastX end mousedown on mousemove px,py if the mouse

Re: Dismiss Browser Widget on Mobile

2016-07-24 Thread Mike Bonner
Does setting the visible of widget "browser" to false work? On Sun, Jul 24, 2016 at 1:51 PM, Sannyasin Brahmanathaswami < bra...@hindu.org> wrote: > a) create card 1… call it TOC or whatever > b) put one button, Go to Card 2 > c) create card 2 with a browser widget with a preset URL > d) top of

Re: propertyNames

2016-07-24 Thread Mike Bonner
It should error on both, and probably shouldn't display the list on the first. the propertynames returns a list of engine wide properties, and (unless this has changed in a recent dp) can't be confined to an object. (meaning it doesn't know what to do with the object reference) Hopefully

Re: Find & Replace

2016-07-23 Thread Mike Bonner
If it will still work using "set" rather than "put.. into.." replace unicodetext with text so that this: set the unicodeText of fld "fPROC" to numToCodePoint(57669) becomes this: set the Text of fld "fPROC" to numToCodePoint(57669) Don't know if it will work, but it seems that if you can just put

Re: Dictionary: repeat

2016-07-23 Thread Mike Bonner
There is no real difference between the 2 (repeat until, repeat with..) but.. if you repeat with x = 1 to 20 add 1 to x -- will only repeat 10 times because the repeat increments 1, and the add increments another -- pretty much the same as appending step 2 end repeat If you were to add -1

Re: Find & Replace

2016-07-23 Thread Mike Bonner
If you're using find and replace in the script editor, when choosing the source either choose "current tab" or "all tabs" and the buttons will become available. If you're using the other find.. (from the edit menu, or while NOT in the script editor window, hit the keys to bring up search. Type in

Re: Flipping Graphics

2016-07-21 Thread Mike Bonner
DOH, or use the menu. On Thu, Jul 21, 2016 at 10:46 AM, Mike Bonner <bonnm...@gmail.com> wrote: > "flip" is a built in that only works on images. When the ide flips a > graphic, it uses the preceeding code. > Of course if you're only doing this in the ide you co

Re: Flipping Graphics

2016-07-21 Thread Mike Bonner
"flip" is a built in that only works on images. When the ide flips a graphic, it uses the preceeding code. Of course if you're only doing this in the ide you could use the message box and call revideflipgraphics directly. On Thu, Jul 21, 2016 at 10:45 AM, Richmond

Re: Flipping Graphics

2016-07-21 Thread Mike Bonner
Here is code in the ide that flips graphics, you can probably use it to make your own version and stuff it in a library. on revIDEFlipGraphics pGraphics, pOrientation # Make sure targets are all graphics if not revIDEEnsureControlsOfType(pGraphics, "graphic") then exit

Re: paypal encrypted buttons using lc

2016-07-20 Thread Mike Bonner
pages. Meeting with them tomorrow to work through their paypal settings and discuss options for getting this done. Thanks for all the input. Things are finally starting to gestalt. On Wed, Jul 20, 2016 at 8:10 PM, Mark Wieder <mwie...@ahsoftware.net> wrote: > On 07/20/2016 02:13 PM, Mi

Re: paypal encrypted buttons using lc

2016-07-20 Thread Mike Bonner
escribing. > > > On 7/20/2016 2:18 PM, Mike Bonner wrote: > >> Thank you both. I think i'm in over my head actually, but stubborn makes >> up for a lot. >> >> On Wed, Jul 20, 2016 at 1:12 PM, Richard Gaskin < >> ambassa...@fourthworld.com> >&

Re: paypal encrypted buttons using lc

2016-07-20 Thread Mike Bonner
Thank you both. I think i'm in over my head actually, but stubborn makes up for a lot. On Wed, Jul 20, 2016 at 1:12 PM, Richard Gaskin <ambassa...@fourthworld.com> wrote: > Mike Bonner wrote: > > > I just turned the corner on understanding the old method, I suspect > &

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