Hello Guest it is October 13, 2019, 05:02:01 PM

Author Topic: Namespace?  (Read 1247 times)

0 Members and 1 Guest are viewing this topic.

Namespace?
« on: September 12, 2016, 07:32:03 AM »
Hi All,
please forgive my ignorance but have a question...

Reading some software manuals and references and came across...

wxLua functions using 'wx.' namespace.
From the context I guess wxGet...,for example, is a wxLua function but is accessed wx.wxGet....

If my guess is correct the mcGet...., a Mach Core function is accessed using mc. namespace as
mc.mcGet....

If these are true then scr. must be screen namespace. So what are screen functions and is there
any documentation that I might read?
Are there any other 'namespaces' that I might need to be aware of that affect Mach4 customisation?

Craig
My wife left with my best friend...
     and I miss him!

Offline DazTheGas

*
  •  750 750
  • DazTheGas
    • View Profile
Re: Namespace?
« Reply #1 on: September 12, 2016, 12:17:26 PM »
I dont think these were documented but could be wrong?? - if you run the mcLuaEditor and type scr.d you should have a box come up with the commands available.

DazTheGas
Theres always time for a choccy biccy

Offline DazTheGas

*
  •  750 750
  • DazTheGas
    • View Profile
Re: Namespace?
« Reply #2 on: September 12, 2016, 03:11:51 PM »
Perhaps this one could help too.

http://www.machsupport.com/forum/index.php/topic,29452.0.html

DazTheGas
Theres always time for a choccy biccy
Re: Namespace?
« Reply #3 on: September 13, 2016, 02:58:56 AM »
HI DTG,
thanks for your reply.
That example is great, exactly the style of thing that I'm looking for. Enuf
detail to get the basic structure and syntax and a clue as to how it works.
Then go to a reference manual to get the nitty gritty details.

Craig
My wife left with my best friend...
     and I miss him!
Re: Namespace?
« Reply #4 on: September 13, 2016, 03:18:55 AM »
Hi DTG,
looking at the range of mc.mcCalls 99% of any script I'm likely to want/need
are going to be these.
There is one feature that I would like to build into a script however is a 'file browse' window.
When you call 'load Gcode' for instance you can browse to your file of interest and
I presume the function returns a path/filename to the calling app.
I haven't yet found a script or program fragment which codes such a feature but when I
do I will study it mighty hard that I might replicate it for my own use.
Clearly such a feature would be coded with the wx.wxFuncs which in turn create and
manipulate graphics windows and access Windows file structures. Also seems likely to
be reasonably complicated so may have to take some patience pills!

Craig
My wife left with my best friend...
     and I miss him!