Hello Guest it is March 28, 2024, 04:31:09 AM

Author Topic: Namespace?  (Read 2231 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline DazTheGas

*
  •  778 778
  • 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
New For 2022 - Instagram: dazthegas

Offline DazTheGas

*
  •  778 778
  • 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
New For 2022 - Instagram: dazthegas
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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'