Wizzup?
2010-11-26 12:06:12
Due to the growing interest in the MML library I've decided to dedicate a subforum to it - for now.
So what is libMML?
libMML is the library that exports all core Simba functionality to any application that can load the library. (See it as a ``plugin'' for any program.)
It will feature:
It may include:
It will most likely not include:
libMML is not complete.
The current libMML builds can use the mouse, do some basic colour finding and partially use the OCR. All the other stuff still has to be implemented in the library.
We do not yet have any binaries for the library either. (You'll have to compile it yourself) I don't even know if it works on Windows or not. I have only tested it on Linux, but I'm sure it will in the near future work on Windows as well.
Why libMML?
The power to use Simba in the language of your choice is an awesome concept.
If we will ever want to switch SRL to another language, this should be what will make the switch simple.
Aside from libMML we're also working on pyMML; a python module that will load and use libMML. Obviously this can be done in other languages too, but we chose python because it is a powerful language.
Small example:
libMML progress:
Done
Partially implemented
Not started
So what is libMML?
libMML is the library that exports all core Simba functionality to any application that can load the library. (See it as a ``plugin'' for any program.)
It will feature:
- Colour finding methods
- Bitmap finding methods
- DTM finding methods
- OCR methods
- Mouse/Keyboard methods
It may include:
- Methods to manipulate bitmaps. (Aside from data access and set/getpixel)
It will most likely not include:
- Form methods. This will not be included because every language has its own form libraries.
- Internet/file functions. These are also obviously provided by the languages. Unless this proves to be an issue for cross platform compatibility, we will not provide it.
libMML is not complete.
The current libMML builds can use the mouse, do some basic colour finding and partially use the OCR. All the other stuff still has to be implemented in the library.
We do not yet have any binaries for the library either. (You'll have to compile it yourself) I don't even know if it works on Windows or not. I have only tested it on Linux, but I'm sure it will in the near future work on Windows as well.
Why libMML?
The power to use Simba in the language of your choice is an awesome concept.
If we will ever want to switch SRL to another language, this should be what will make the switch simple.
Aside from libMML we're also working on pyMML; a python module that will load and use libMML. Obviously this can be done in other languages too, but we chose python because it is a powerful language.
Small example:
# Create the color object
c = Color(DLL, client)
ret = c.find((0, 0, 100, 100), 0)
print ret
ret = c.findAll((0, 0, 100, 100), 0, tol=100)
print ret
# Mouse object
m = Mouse(DLL, client)
# Position + Button states
print m[(Mouse.Pos, Mouse.Left, Mouse.Right)]
# Set position and right mouse button state
m[(Mouse.Pos, Mouse.Right)] = ((300,300), True)
# Print button states.
print m.getButtonStates()
sleep(0.5)
m.setPos((200,200))
libMML progress:
- Colour finding methods
- Bitmap finding methods
- DTM finding methods
- OCR methods
- Mouse methods
- Keyboard methods
Done
Partially implemented
Not started