Is there a Lua compiler that has libraries to interact with Skype? I wanted to message people automatically at a certain time. Please give me a link.
Check out skoope, you might be able to use it, or it could at least give you an example of using Lua to interact with Skype.
Related
everyone. I've built a custom protocol dissector for Wireshark, that have some preferences of it's own. As of this moment I've succeed to add prefs like textboxes, checkboxes etc., programmatically, using Lua. Now I want to dynamically allow the user to add some custom configurations in the protocol's preferences, like in the attached image.
Can you help me do that, if there's a way, preferably in Lua?
Unfortunately, the Wireshark Lua Preferences API doesn't provide a User Access Table (UAT) preference, which is what would be needed here I think. You could open a Wireshark Issue asking for Lua UAT preference support though. In the meantime, it may be possible to read the parameters from a file directly from your Lua dissector, but you won't be able to edit/change those parameters like you can with other preferences. It might be possible to add a TextWindow for displaying the parameters and allowing users to change them, but that solution won't be integrated with your Lua dissector and you'll likely need to reload the Lua dissector in order to pick up the changes, which possibly could be automated whenever the user changes a parameter.
There may be some user-contributed Lua examples on the Wireshark wiki and elsewhere that could offer some help? See:
Contrib
Examples
Issue 16795 (Example tap-subnets.lua file)
Perhaps there's another way to solve this altogether, but nothing else comes to mind. You might want to inquire at Wireshark's Q&A Site though in case anyone else from that community has some further advice for you.
So I wanted to go about designing an add-on for a game I play, World of Warcraft and the game uses Lua scripts. The add-on involves speech recognition. I found a library that apparently adds voice recognition functionality to Lua.
Here is the link to the library: https://github.com/stuarch/speechtotxt-lua
The problem is, I have no idea how to set this up. It looks like they're using linux commands, but can I use this with Windows?
Also, do I have to put all these files in a certain place (pocketsphinx, sphinxbase) like a project folder, and then call them from Lua?
I'm sorry if this a noob question, I just can't find anything online about adding these libraries to Lua, and how to include the pocketsphinx and sphinx base. Any help would be greatly appreciated.
There is a difference between let's say running the full Lua interpreter under Windows and running a Lua interpreter as part of a software like WoW.
They usually restrict the use of Lua to what makes sense for the game. You don't have to reboot the system from within WoW, you also should not be able to manipulate files or even manipulate memory ....
Just imagine you install a WoW addon from the internet and it suddenly deletes all files on your computer. Whooops.
So they simply remove the standard Lua libraries like os, debug, io...
Of course they also don't want you to extend your power beyond those limitations by loading third party code. Hence they remove the require function.
So all you can do in WoW is run restricted Lua code and use the feature set they offer you.
Adding speach recognition to WoW is not possible through the embedded Lua interpreter.
I am having this problem, and I am not able to figure out the solution.
I wish to display an image in some window if possible(not necessary tough), and then move it across the page by sending events from keyboard.
The problem is I can't use LÖVE framework, as we can't integrate it into our setup.
So I would require the Lua api's to do so.
Is anyone here aware about it? Also do I have to install some kind of extra library to support color and image operations?
Thanks for sharing the knowledge.
Lua is quite a bare-bones language to start with, so there is no built in image support whatsoever. But this also goes for almost all other programing languages, image support is typically something contained in supplementary libraries.
You need to install some library providing GUI functionality (like IUP), or use an application integrating Lua with graphical libraries (like murgaLua, Löve, ...)
From the tags you attached to your question it seems that you're using an embedded platform. It might be useful for people to know which, in order to provide more useful answers.
Is it possible to execute any arbitrary lua code in Corona? They've disabled loadfile, loadstring, and dofile. Are there any other ways to do this?
There's a reason they've disabled it. Apple's restrictions don't allow it, so they took it out altogether for that reason. Not to mention it makes Corona more secure, I suppose.
You might be able to enable the features you've mentioned with a Corona enterprise license (although that's relatively spendy if you're a small shop/independent developer.)
I am trying to build a very simple driver. Its sole purpose will be to register "PsSetCreateProcessNotifyRoutine" and on callbacks recieved from kernel, notify my Win32 application about which proccesses are started and stoped.
I only know how to build such a simple driver with "DriverEntry" and "DriverUnload" and compile it with DDK. But I don't know how to actually implement communication. I know it can be done with IOCTL. But beyond that I am in the dark. I cannot find simple example of how to do that in Delphi. I only know it can be done.
So what I am looking for is some simple and understandable tutorial on how to do it or event better an example delphi program with acompaniying driver code. Maybe there are even other ways of communication.
Any help would be appriciated.
Doesn't matter if in Delphi or not. You have to use the function DeviceIoControl. Read the article in MSDN about it.
In short, you'll have to choose some IOCTL codes from the available set. Then you call DeviceIoControl with one of these codes and pass some data, and in driver you handle that request and return something else.
You can also handle standard IOCTLS, such as the ones generated by calling ReadFile or WriteFile in user-mode.
Don't look for a "tutorial how to do that in Delphi", just look for any tutorial. They're all the same, no matter the language, it's pure Win32/Native api stuff. Here's one for example, just googled it out.