Andrew Kluthe | 9 Feb 23:17
Favicon

input and output to a cli

Hey,

I have a program with a command line interface that was written in nodejs
to act as a bot for an irc server. It takes commands and prints responses
and chatter in irc out to a command line.

I launch it by calling this from a command line.

node borg.js

and I get a prompt similar to OHAI> and it waits for commands.

I input commands and read the responses right from the command console. I
want to be able to send commands to this interface from a livecode program
on windows and I want the output to be displayed in a scrolling list field.
How does one go about communicating with this kind of command line
interface with livecode?

Can anyone point me in the right direction?

Kind Regards,

Andrew K
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

(Continue reading)

Klaus on-rev | 9 Feb 21:24

regex help please

Hi friends,

in my current project I need to deal with VERY small XML files 
with maybe up to 20 entries.

So using the XML external seems to be a bit overkill.

Some time ago I found a little reg ex here on the list which I turned
into a function and will return me everything inside of a given XML tag:
...
<tag1>bla bla</tag1>
<tag2>more bla bla</tag2>
...

So with this text above in tText and "tag2" int tTag:

function mk_getXMLdata tText, tTag
   get matchText(tText,"(?s)<" & tTag & ">(.*?)</" & tTag & ">",tValue)
   return tValue
end mk_getXMLdata

will give : more bla bla
So far so good, I even almost understand the reg ex ;-)

Now I am looking for another little snippet to (over) write something in(to) 
a certain TAG, know what I mean?

If someone could supply a nifty "replacetext" snippet that would be great! :-)
Thanks in advance!

(Continue reading)

Malte Brill | 9 Feb 20:00
Picon
Favicon

Re: moving and scaling an image

Hi,

if you want to move and scale at the same time, changing the rectangle property is your friend. You will want
to do this in a send in time structure and calculate where the the corner points of your control need to be at
the given time. You will want to lock screen before you set the rectangle and unlock it afterwards. For the
iPad a frameRate of about 20 to 45 fps can be achieved, depending on how many objects you move and scale at the
same time. It is advisable to not use the "best" resizequality option for the image. If you are choosing not
to use images, there is room for a little more fps. No true 3d with this, as Ken already said. 

<shamelessPlug>animationEngine handles this task quite effeciently I guess with the aeChangeRect
command. You can even let your movement and scaling ease with it. :-) </shamelessPlug>

Cheers,

Malte
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Pete | 9 Feb 19:27
Favicon

Strange Option Menu behavior on Windows

I am experiencing some very strange behavior of a standard Livecode option
menu on Windows 7 - the same menu works perfectly on OS X.  The only
perhaps slightly unusual situation is that the option menu is in a
customised datagrid column.

The option menu contains various comparison operators, such as +,<,>,
<=,>=, etc and its menuhistory is initially set to 3 which equates to the =
sign.

The = sign is visible in the option menus on every row of the datagrid
except whichever row is currently selected in the datagrid, whether
selected by script or clicked on by the user.  On that row the option menu
appears to be blank.  However, when I click on it to show the options list,
the = sign appears and is highlighted but all the other options in the list
appear blank until I move the mouse over one, then the option appears in
the display.

As mentioned this does not happen on OS X, just on Windows.

I'm afraid this sounds like some sort of weird bug related to Datagrids,
option menus, and Windows but hoping someone might be able to shed some
light on it.

Thanks,

--

-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>
_______________________________________________
use-livecode mailing list
(Continue reading)

Klaus on-rev | 9 Feb 19:19

savingStandalone

Hi friends,

there is this handy "savingStandalone" message which does not come with any parameter.

Is there a way to get to know for what platform the current standalone is being build?
I would take different actions for Mac resp. Windows standalone, but probably I'm out of luck...

Any hints welcome! :-)

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus@...

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

David Glasgow | 9 Feb 18:53
Picon
Gravatar

Re: moving and scaling an image


On 9 Feb 2012, at 2:57 pm, Ken Corey wrote:

> From: Ken Corey <ken@...>
> Date: 9 February 2012 10:54:06 am GMT
> To: use-livecode@...
> Subject: Re: moving and scaling an image
> Reply-To: How to use LiveCode <use-livecode@...>
> 
> 
> On 09/02/2012 08:40, David Glasgow wrote:
>> I am trying to get an image to slide from the middle of the screen either to the top or the bottom.  However,
the screen has a perspective, as if you were looking down a bowling alley, with a vanishing point somewhere
above the screen.
>> 
>> To maintain the sense of depth, images 'pushed away' should shrink into the distance, and ones 'pulled'
closer should embiggen.  Any suggestions how this could best be achieved?
>> 
>> The eventual destination of this may well be iPad, so any special considerations there would be welcome.
> 
> Oh go on, just say it: you want a 3D environment.
> 
> I've read interesting things about Franklin3d.com, but that doesn't seem to work on an iPad.
> 
> If you don't care about true 3D, you might be able to get away with cheating with a 2D solution and a little
extra effort to make things "appear" 3D, but not /really/ be 3D.
> 
> You could calculate the math for this yourself, but there's always AnimationEngine for moving stuff around.
> 
> -Ken
(Continue reading)

Ken Corey | 9 Feb 14:51
Favicon

Architecture of downloadable content for iOS?

Hi All,

So I'm finishing the login module of my sofware, and am preparing to 
design the next module. So far, so good.  Let's see, package it 
up...18MB!?!?! Oh, right, lots of graphics, and voice recordings.

Hrm...that's just the login screen...the first of (hopefully) many 
modules in this project.

So then I started thinking about downloading (whether through IAP, or 
should some other mechanism)...but Apple forbids downloaded code, right?

So it would seem to me that to make this work I put all the code in my 
stack, and then update that on the app store for people to download. In 
essence they then have the code to do the new thing (perhaps activated 
via IAP) but not the support files.

Once the new version is running, then it downloads the content it needs 
to go along with the new functionality, right?

Do I grasp the general idea here or can modules indeed be downloaded 
from the app store, and called from my main stack?

-Ken

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
(Continue reading)

David Glasgow | 9 Feb 09:40
Picon
Gravatar

moving and scaling an image

Hello folks,

I am trying to get an image to slide from the middle of the screen either to the top or the bottom.  However, the
screen has a perspective, as if you were looking down a bowling alley, with a vanishing point somewhere
above the screen.

To maintain the sense of depth, images 'pushed away' should shrink into the distance, and ones 'pulled'
closer should embiggen.  Any suggestions how this could best be achieved?

The eventual destination of this may well be iPad, so any special considerations there would be welcome.

Cheers,

David Glasgow
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Michael Chean | 9 Feb 04:22
Picon

How alive is LiveCode?

Ok I guess I can answer part of my own question here.  A little further
research indicates
that the corporate blog is quite active - perhaps the forum is not the best
place
to look.  And I can see that there is a lot of participation at developer
conventions.
So, I feel a bit better about the whole thing.
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

J. Landman Gay | 9 Feb 04:07
Favicon

You can't parse HTML with Regex

Oh gosh, another one bites the dust:

<http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454>

I hope that puts an end to the question.

--

-- 
Jacqueline Landman Gay         |     jacque@...
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Michael Chean | 9 Feb 03:54
Picon

How alive is LiveCode?

When I'm considering a tool I look at the community resources to see
whether they are
being kept up.  For instance the RunRev forum,  why is it that the last
announcement
of a new release was 4.6?  Do the RunRev staff answer questions?  Why are
there so many queries
that languish?   Why do many of the tools including YogaSQL seem to have
had their last release
a year or more ago?  Not trying to troll here, but just wondering what your
impression are.
Has RunRev been growing?  The language is so elegant I keep thinking that
there is something
I'm missing as to why it's not more popular.

Mike
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Gmane