View unanswered posts | View active topics It is currently Sun May 19, 2013 5:57 am



Post new topic Reply to topic  [ 4 posts ] 
 Plug suggestion 
Author Message
BBDinosaur

Joined: Fri Jun 23, 2006 2:41 pm
Posts: 234
Location: China
Reply with quote
Post 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 73 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
Report this post
Profile
Sponsored Links
Google Adsense


BBDinosaur
User avatar

Joined: Tue Nov 22, 2005 6:37 pm
Posts: 232
Location: Somewhere fun with nice ladies
Reply with quote
Post 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!!!
Image


Sun May 03, 2009 5:31 pm
Report this post
Profile YIM WWW
Reply with quote
Post 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
Report this post
BBChild

Joined: Thu Mar 22, 2012 9:15 am
Posts: 8
Reply with quote
Post 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
Report this post
Profile
Sponsored Links
Google Adsense


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: fwe9hggi08 and 0 guests


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.