Hi Ponnfar.
quote:
Ok, I guess I am just real old school. I am so use to either writing a "named of file.brn" or cuting and pasting (at least I admit it..hehe) directly into a Hal "xxx.uhp" that I am not familar with how this new "plugin filename.exe" function works and how it populates itself in the General Options menu in the new Hal.
The best place to explain what happens when HAL caches all the plug-ins is in the HalScript.dbg in the Ultra Hal 6 Assistant folder.
The HalScript.dbg will explain how plug-ins get cached together to form one working brain.
The Actual HAL6.uhp isn't the actual brain that's calling shots anymore, it is the cached Plug-ins/Brain together, I don't know if the actual call is coming from the HalScript.dbg or if it is just for debugging purposes but it is a code assembly file.
The plugin filename.exe are just installers that place a .uhp file into the correct folder so that it will appear in HAL's option panel.
quote:
I'm sure this is a rather basic stuff kinda question but somehow I bet I am not the only one who is not in the know.
Always happy to help.
quote:
I am sure it is, but how is this more efficient than the old sometimes trial and error way of finding the best placement for a new routine in a Brain script?
The HAL 6 plug-in method was designed to make it easy for beginners to enter in scripts, some people would rather not learn coding so this feature just gives them an advantage without taking chances of copy and paste insertions.
quote:
How are adjustable levels that show up in the General Options menu created and set since I am now not placing them and their variables directly into a Hal Brain manually?
The Plug-in variables are Sub codes that are called by HAL's option Panel, Variables can be coded within the Sub and used in script under the Sub so that values are used that the Sub created by the interaction of the User in HAl's option panel.
'Help
lblPlugin(0).Caption = "Happy.hap Expression Control"
lblPlugin(0).Move 120, 10, 3300, 1000
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
cmdPlugin(0).Move 120, 250, 850, 300
cmdPlugin(0).Caption = "Help"
cmdPlugin(0).Visible = True
Examples:
'Help
'A LABLE PLUG-IN = lblPlugin
'THIS LABLE PLUG-IN ALLOWS A CAPTION OF THE PLUG-IN TO BE PLACED.
lblPlugin(0).Caption = "Happy.hap Expression Control"
'THIS LABLE PLUGIN ALLOWS COORDINATES OF THE CAPTION ON HALS PANEL.
lblPlugin(0).Move 120, 10, 3300, 1000
'THIS LABLE PLUG-IN ALLOWS WORD WRAP OF THE CAPTION TO BE TRUE OR FALSE, IF TRUE THE CAPTION WILL RETURN AFTER A CERTAIN CHARACTER LENGTH, IF FALSE THEN THE CAPTION WILL HAVE NO RETURN CHARACTER LENGTH.
lblPlugin(0).WordWrap = True
'THIS LABLE PLUG-IN ALLOWS THE CAPTION TO BE VISIBLE IN HAL'S OPTION PANEL IF IT IS SET TO TRUE.
lblPlugin(0).Visible = True
'A COMMAND PLUG-IN = cmdPlugin
'THIS COMMAND PLUGIN ALLOWS COORDINATES OF THE BELOW HELP BUTTON ON HALS PANEL.
cmdPlugin(0).Move 120, 250, 850, 300
'THIS COMMAND PLUG-IN DISPLAYS WHAT THE CAPTION ON THE BUTTON WILL SAY.
cmdPlugin(0).Caption = "Help"
'THIS COMMAND PLUG-IN ALLOWS THE BUTTON TO BE VISIBLE IF SET TO TRUE.
cmdPlugin(0).Visible = True
Jerry[8D]