I am learning LUA at the moment and doing it not for gmod or computercraft purposes, so I created this thread in the programming forum.
The thing is, that I want to make a program that will interact with the windows UI. For example, when somebody is calling me in skype a dialog window appears with 4 buttons. It is always created in the same place, so theoreticly I could make a program that will press those buttons by doing some CursorToxy and MouseClick action, but I havent found any suitable commands. Please, could you guys help me out with this or maybe I need a special plugin or something for that?
First of all [URL="http://en.wikipedia.org/wiki/Lua_(programming_language)"]"Lua"[/URL].
I am going to assume your on windows, since you said windows UI.
There may be a Lua skype api, but it maybe also hard to find.
Also, I don't know much about Lua and creating GUI's, but you may need to get some libraries to make it popup some buttons when you get a Skype call.
If you are interested in working with a Skype API, you could try a .NET language, they are pretty easy to learn and there is an API + Documentation for it. There might be a Skype API for Java.
[U]Lua[/U] can't call into any C API by itself, so you will need to add a .dll written in something other that [U]Lua[/U] to access them, for example [URL="http://luajit.org/ext_ffi.html"]FFI[/URL] or [URL="http://alien.luaforge.net/"]Alien[/URL].
However, the Skype desktop API was completely removed somewhat recently, so there's no possibility of writing such a program short of hacking the Skype client.
[QUOTE=Tamschi;45109688][U]Lua[/U] can't call into any C API by itself, so you will need to add a .dll written in something other that [U]Lua[/U] to access them, for example [URL="http://luajit.org/ext_ffi.html"]FFI[/URL] or [URL="http://alien.luaforge.net/"]Alien[/URL].
However, the Skype desktop API was completely removed somewhat recently, so there's no possibility of writing such a program short of hacking the Skype client.[/QUOTE]
Thanks a lot.
Some features in relation to call recording may still exist in the client, but the official documentation seems to have been removed.
[QUOTE=Tamschi;45109688]so there's no possibility of writing such a program short of hacking the Skype client.[/QUOTE]
Eheh heh heh...
[url]http://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html[/url]
automated screenshots, button clicks, mouse presses, etc.
It's not Lua, but there are Lua apis for Java that you might be able to make use of
In short, it can be done without modifying the Skype program itself. Might be a little more complicated then what you were hoping for, though.
If you'd rather not work with Java, and are out of options, PM me and I could probably write a small program that gave you API access to screenshots/mouse/keyboard through a lua script
Sorry, you need to Log In to post a reply to this thread.