New scripting engine - testers wanted!

Everything else that doesn't fall into one of the other PB categories.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: New scripting engine - testers wanted!

Post by Kwai chang caine »

It's a miracle, i have understand something :shock:
I have using the "DEBUG AddIntegers(1, 2)" function with succes
Thanks to you master, i know now the result of "1+2=3" :mrgreen:

I must leave now :|
I try to understand better soon.

I have not again understand what the function of your splendid works, but i know all your jobs are always giant
I believe, it's for sending all the PB code by script, and execute it for exampler in other machine, i hope it's that :idea:
I have always dreamed to a software like this 8)

At soon MASTER
ImageThe happiness is a road...
Not a destination
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Similar to things like LUA, it is a tool allowing you to embed a programming language in your own application. The most obvious use for it is to allow your application to offer your users the ability to create code which then runs within your app for reasons you decide in the same way that Javascript code runs in a browser application etc.

Other uses include automation and batch processing (similar to things you might do with Python or Ruby etc.) to cgi scripting (if you don't have PHP to hand, or plain just don't like PHP! :) ) right down to implementing undo/redo in complex applications.

There are lots of possible uses for a scripting engine and I'm sure that I am not even aware of half of them! :)
I may look like a mule, but I'm not a complete ass.
User avatar
HeX0R
Addict
Addict
Posts: 980
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: New scripting engine - testers wanted!

Post by HeX0R »

Wow, this looks quite promising!
Thanks for this jewel!

I hope to find some time for testing after Christmas.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: New scripting engine - testers wanted!

Post by davido »

@srod,
Looks great on a PC.

As it had a toolbar I assumed it would not run on my Mac.
Well, to my amazement it did have a toolbar but only the Clear icon was present.

Oddly I had tried the demo code from the manual for ToolBars but it wouldn't work on the Mac. So I posed the question:
http://www.purebasic.fr/english/viewtop ... 14#p515914
DE AA EB
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Yes I didn't know that standardtoolbarbutton would not work on a Mac until I saw that thread earlier. :)

I will alter qdMin when I get a spare moment.

Incidentally, don't be fooled into thinking that minScript = the qdMin editor as it does not! That little editor doesn't come close; but was just something I threw together in a couple of hours to make it easier to test out the compilation and execution of basic scripts etc. Far easier than me creating a new PB program for each new script. :)
I may look like a mule, but I'm not a complete ass.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: New scripting engine - testers wanted!

Post by davido »

@srod,
In the meantime I tested a little more:

On running the Code Panel is blank.
I copy/pasted the Factorial code into it, which compiled and ran ok.

Whilst the Clear toolbar button appears to work it does not clear the text but does post that the Script has been closed.
DE AA EB
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Ah yes, I think I messed up there. My fault. I inadvertently used SetGadgetText() to clear the text on a Scintilla control! A left over from when I used an editor gadget in place of the Scintilla control.

I'll sort that out now. May as well sort the toolbar as well whilst I'm at it.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

All done.

The clear script button 'should' work okay now on OSX and hopefully all toolbar buttons should display correctly on OSX. :)
I may look like a mule, but I'm not a complete ass.
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Re: New scripting engine - testers wanted!

Post by jack »

hi srod
it crashes on my Mac OS 10.13.2 PB 5.61 x64, CLTools_Executables version: 9.2.0.0.1.1510905681
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Customizable toolbars require unique toolbarIdentifiers. Please use initWithIdentifier: with a unique identifier.'
abort() called
terminating with uncaught exception of type NSException
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Sounds like a PB problem to me on OSX. Afraid I do not have a mac to investigate further. Shouldn't impact minScript though which seems to run fine on OSX; just the qdMin test editor.

Perhaps someone could have a look at the qdMin source on a Mac. My guess would be something to do with the 3 toolbar buttons; but I can see nothing obvious which might cause an issue.

**EDIT : seems to be a known issue. http://www.purebasic.fr/english/viewtop ... 19&t=69653

I will switch the toolbar for a bunch of image buttons - that should avoid the issue.
I may look like a mule, but I'm not a complete ass.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: New scripting engine - testers wanted!

Post by davido »

@srod,
I've tested your updated code on my machine and find it works. Thank you.
Thank you also for taking the time, on what must have been an annoying distraction, to make it work on OS X.
I've come out of this quite well: it now looks as if I can use ToolBars on my Mac. :D
DE AA EB
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

davido wrote:@srod,
I've tested your updated code on my machine and find it works. Thank you.
Thank you also for taking the time, on what must have been an annoying distraction, to make it work on OS X.
I've come out of this quite well: it now looks as if I can use ToolBars on my Mac. :D
Apart from the issue reported by Jack above which seems to be a PB issue with one of the latest versions of the CLT and OSX.
I may look like a mule, but I'm not a complete ass.
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: New scripting engine - testers wanted!

Post by Kiffi »

Hello srod,

Image

i try to start qdMin under Linux Mint. Because under linux file names are case sensitive, please make the following changes:

change in minScriptMAIN.pbi

Code: Select all

XIncludeFile "minScriptHashmaps.pbi"
to

Code: Select all

XIncludeFile "minScriptHashMaps.pbi"
change in qdMin.pb

Code: Select all

IncludeBinary "Images/Save.png"
to

Code: Select all

IncludeBinary "Images/save.png"
Thanks in advance & Greetings ... Peter
Hygge
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Have removed the toolbar from the qdMin editor so hopefully it should bypass the OSX/CLT issue.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Hi Kiffi,

my next job (having updated Ubuntu to the latest LTS version yesterday) was to re-familiarise myself with Ubuntu and then get minScript running, but you've beaten me to it! :)

I shall make those changes right now. Thanks.
I may look like a mule, but I'm not a complete ass.
Post Reply