Search found 189 matches

by trenatos
Fri Apr 17, 2015 11:53 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 2630

Re: Evaluate string?

That's too bad.

Threading could speed things up so nicely (My CFML implementation gained some serious speed when I threaded it)

It's going to be fun comparing the two, how fast can I make the LC implementation go? :D
by trenatos
Fri Apr 17, 2015 6:47 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 2630

Re: Evaluate string?

This really isn't rocket surgery, I just didn't know how to evaluate strings as code (do).

How about threading? Any chance of threading being available? (That's also something I haven't been able to find information about.
by trenatos
Fri Apr 17, 2015 1:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 2630

Re: Evaluate string?

Originally it was just for CFML, but I'm thinking of making it a generic test-engine (Thus LiveCode) so you can run it standalone on any platform, using any set of tests you want. It's a side-project for now, but it's getting a good chunk of my attention, so should have a demo working in the near fu...
by trenatos
Fri Apr 17, 2015 3:23 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 2630

Re: Evaluate string?

Richard, it's to let others code in LiveCode in order to write small scripts which can be loaded and runtime. I'm working on a modular testing-engine, it's nice to be able to write small scripts and just drop them into a folder and have them automatically picked up and run, instead of telling other ...
by trenatos
Thu Apr 16, 2015 5:39 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 2630

Re: Evaluate string?

Thanks Klaus, I'll give that a go :)

I don't know how many beers I owe you at this point, but it's a few!
by trenatos
Thu Apr 16, 2015 4:57 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 2630

Evaluate string?

I haven't been able to find an answer to this, so I figured I'd check here. Is it possible to evaluate a string? Let's say a string contains "put 1 into bla", I'd like to evaluate the string as if it was written in a regular script. The longer story is that I'd like to be able to let users write scr...
by trenatos
Sat Feb 21, 2015 4:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send ctrl-c to process?
Replies: 4
Views: 760

Re: Send ctrl-c to process?

Aha, it's because it's waiting to finish, which it never will, since it's running a java jetty server.

Using the kill command lets me forcibly close the bat file that I use to open it, but that leaves the java process still running.
by trenatos
Sat Feb 21, 2015 4:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send ctrl-c to process?
Replies: 4
Views: 760

Re: Send ctrl-c to process?

Also, it seems that close process doesn't actually do anything.
by trenatos
Sat Feb 21, 2015 4:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send ctrl-c to process?
Replies: 4
Views: 760

Re: Send ctrl-c to process?

No go, nothing happens.

I'm going to do more tests, make sure the problem is that I'm not having problems writing to the process.
by trenatos
Sat Feb 21, 2015 2:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send ctrl-c to process?
Replies: 4
Views: 760

Send ctrl-c to process?

So I've had some success using open process, but now I need to send ctrl-c to the open process, and I'm having no luck at all.

How would I send control characters to a process, which was opened with update so it should accept both read and write.
by trenatos
Sat Feb 21, 2015 2:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Shell - continuous output?
Replies: 10
Views: 1762

Re: Shell - continuous output?

Newest issue is that I'm not having any luck sending ctrl-c to the process.

I do have the process opened to update, so it should accept read and write.
by trenatos
Sat Feb 21, 2015 1:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Shell - continuous output?
Replies: 10
Views: 1762

Re: Shell - continuous output?

Ok, so more success!

(Not sure if anyone is following this, but I'm amused anyway)

By turning it into read from process pProcess until empty, I'm now getting continuous output, now it's a matter of sending control characters so I can send a ctrl-c
by trenatos
Sat Feb 21, 2015 1:02 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Shell - continuous output?
Replies: 10
Views: 1762

Re: Shell - continuous output?

More testing. It seems the locking is not while reading or outputting on screen, it happens BETWEEN. Which makes me think that it has to do with the "read from process pProcess for 1", if there isn't anything to read, it sits there waiting, locking up the GUI, so I'm going to try and see if I can ma...
by trenatos
Sat Feb 21, 2015 12:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Shell - continuous output?
Replies: 10
Views: 1762

Re: Shell - continuous output?

Set to EOF I get nothing read, still locks up but nothing displayed.

I'm running a batch file which starts a java process, so I need to continuously read the window.
by trenatos
Sat Feb 21, 2015 12:34 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Shell - continuous output?
Replies: 10
Views: 1762

Re: Shell - continuous output?

I have partial success! Ok, so I can open a process and read from it, but I'm getting UI locks and not sure how to get around that. Here's what I'm using right now: command monSlave pProcess if runTheThing is true then read from process pProcess until linefeed put it after field "console" send "monS...

Go to advanced search