It is currently Sun Oct 25, 2020 2:16 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 136 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next
Author Message
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 7:37 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4743
Location: Lyon - France
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


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 9:22 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 10:26 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 20, 2004 7:12 am
Posts: 605
Location: Hell
Wow, this looks quite promising!
Thanks for this jewel!

I hope to find some time for testing after Christmas.

_________________
Link dead?
Change h3x0r.ath.cx into hex0rs.coderbu.de and all will be fine.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 11:18 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1785
Location: Uttoxeter, UK
@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/viewtopic.php?p=515914#p515914

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 11:24 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 11:34 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1785
Location: Uttoxeter, UK
@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


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 11:42 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Dec 21, 2017 11:54 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Fri Dec 22, 2017 12:16 am 
Offline
Addict
Addict

Joined: Fri Apr 25, 2003 11:10 pm
Posts: 1227
hi srod
it crashes on my Mac OS 10.13.2 PB 5.61 x64, CLTools_Executables version: 9.2.0.0.1.1510905681
Quote:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Fri Dec 22, 2017 9:45 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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. viewtopic.php?f=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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Fri Dec 22, 2017 10:11 am 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1785
Location: Uttoxeter, UK
@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


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Fri Dec 22, 2017 10:20 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Fri Dec 22, 2017 10:27 am 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1148
Location: Amphibios 9
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:
XIncludeFile "minScriptHashmaps.pbi"
to
Code:
XIncludeFile "minScriptHashMaps.pbi"


change in qdMin.pb
Code:
IncludeBinary "Images/Save.png"
to
Code:
IncludeBinary "Images/save.png"


Thanks in advance & Greetings ... Peter

_________________
Hygge


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Fri Dec 22, 2017 10:29 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Fri Dec 22, 2017 10:31 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 136 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye