|
Page 1 of 1
|
[ 4 posts ] |
|
| Author |
Message |
|
blueswilder
BBDinosaur
Joined: Fri Jun 23, 2006 2:41 pm Posts: 234 Location: China
|
 Plug suggestion
My friend b23526 is making a new plugin --- lua2bb. It is able to ues Lua language to control blackbox and its plugins. Like Tcl for bb. Now he needs some suggestions for complete his plugin.
lua2bb can ues string = GetPath (); back of a plug-in the current directory, no parameters
string = GetWinDir (); back windows directory, no parameters
string = GetSysDir (); back system32 directory, non-parametric
string = GetPcName (); return the computer name, no parameters
bool = SetPcName ( "Computer Name"); return a bool value that the success of a parameter for the computer name string
string = GetUserName (); return user name, no parameters
Width, Height = GetScreenWidthHeight (); two high-return value of the screen and wide screen, no parameters
Sleep (1000); dormant some time, parameter values for 1000 milliseconds = 1 seconds, no return value
Broadcast ( "@ LUA test.lua"); send broadcast message, a parameter string for the broadcast message, no return value
bool = ClearClipboard (); empty clipboard, no parameters, return empty success
SetClipboardText (string); settings clipboard text, a parameter are saved to the clipboard to the text, no return value
string = GetClipboardText (); access clipboard text, no parameters, return clipboard text
GetPowerStatus (); access to the battery status (mainly used in books on), no parameters, return two values, first is the alternating current status of string has the following three values, the second value is the percentage of battery power remaining integer 1 "Offline" 2 "Online" 3 "Unknown status"
Attachments:
BB_LUA.dll [324.5 KiB]
Downloaded 76 times
_________________ bblean in China(Chinese): http://www.deepin.org/forum-382-1.html My blog(Chinese): http://hi.baidu.com/bluesewilder/blog
|
| Sun Mar 15, 2009 6:40 am |
|
 |
|
Google
Sponsored Links
|
|
 |
|
residentgrey
BBDinosaur
Joined: Tue Nov 22, 2005 6:37 pm Posts: 232 Location: Somewhere fun with nice ladies
|
 Re: Plug suggestion
Can't you get the system variables that blackbox has access to like $ProgramFiles$? You probably won't need functions then.
Broadcast --> Broam
_________________ It's a trick, get an axe!!!
|
| Sun May 03, 2009 5:31 pm |
|
 |
|
Fw
|
 Re: Plug suggestion
i Really Hate to resurrect an old thread like this, but having just started learning Lua, (And being disappointed that there seems to be no true script-to-exe compiler for it, -_-)
i thought itd be a Great addon to blackbox, the GUI possibilities alone seem rather interesting, not to mention miniplugins that dont require knowledge of the plugin SDK or the ability to compile it, specially if it works well with broams,
So, im curious if this plugin is still in the works, or if its dead, and if so, maybe someone else would be willing to make one?
...just some ideas here, for instance the plugin could load all .lua files in a subfolder at start, or have a gui that acts as script launcher, (IE: kind of like iconbox, you add a script, maybe pick an icon for it, then when you click on it, it launches,)
i know itd be some work either way, but i just wanted to throw out a couple ideas if this plugin is still being developed or if anyone is interested in it, ^-^
...if its not though, would it be too much to ask to get the source to see how its all put together?
Anyways, sorry again from bringing up an old thread, but yeah, ^-^;
|
| Thu Feb 04, 2010 11:15 pm |
|
 |
|
TommyN1984
BBChild
Joined: Thu Mar 22, 2012 9:15 am Posts: 8
|
 Plug suggestion
I have been using your plug-in under Win32 and it works great. However, in x64 it does not return a product code. Is the usage different under x64 or is there potentially a problem with the plug-in?
I have verified the upgrade code that is being used in my installer using ORCA and I am sending the correct value into your plug-in.
Thanks, Ryan
|
| Mon Mar 26, 2012 12:06 am |
|
 |
|
Google
Sponsored Links
|
|
 |
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|