Murga-Projects Forums
find the murgaLua exe in 0.5 and older - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: find the murgaLua exe in 0.5 and older (/showthread.php?tid=274)


find the murgaLua exe in 0.5 and older - mikshaw - 02-06-2008 05:12 PM

I think I've figured out a way to get the name of the murgaLua executable in versions earlier than 0.6

According to the Lua docs, the arg table is populated by negatives for the murgaLua interpreter and its arguments, with the interpreter being the lowest, so it changes depending on how many arguments you pass to it.

This seems to work in DS Linux, but I haven't tested it elsewhere.

Code:
-- find the smallest negative index in the arg table
-- this is the murgaLua interpreter (for 0.5 support)
for i in pairs(arg) do
if not low or i < low then low=i end
end
MURGALUA=arg[low]




RE: find the murgaLua exe in 0.5 and older - mikshaw - 02-07-2008 02:40 AM

Off the topic of a murgaLua_ExePath replacement, but still on the topic of backward compatibility....

Does version 0.5.5 not support hotkeys for tabs? I never noticed this until last night; it seems that using "&" in a tab label simply displays the "&" along with the text rather than setting the following character as the hotkey. It works as expected in 0.6

If this can't be done -- I also tried my_tab:shortcut() with no luck -- I'll just leave it as is and find an alternative way for 0.5 keyboard users to jump to the tabs group. I've used 0x0-sized buttons to provide keyboard shortcuts to focus widgets, so that would probably also work for selecting tabs.