i luffs yeww
2014-11-17 23:52:15
Hello,
I've been spending some time with libMML/pyMML again lately and have been slowly making progress this time! To anyone who doesn't know what libMML or pyMML are, you can read about them here.
My biggest additions thus far are functioning keyboard and bitmap units in libMML and pyMML. There have been a few other additions, but they're either untested or just not working. Currently bitmap functions in pyMML are (seemingly) mostly working. There are several data types that I'm not sure how I want to deal with yet, but for the most part it's okay.
You can find my current progress on GitHub.
If you want to test it out, just run
If anyone is curious or wants to help, please, feel free to ask. My biggest concern is getting pyMML in a spot where it works well and is more idiomatic. That would be the biggest help to me at the moment.
This could be the start of how scripts are written in the future!
Hacking Tutorial
EDIT: PLEASE! Remember this is very early in (active) development, so things will change for the better soon!
I've been spending some time with libMML/pyMML again lately and have been slowly making progress this time! To anyone who doesn't know what libMML or pyMML are, you can read about them here.
My biggest additions thus far are functioning keyboard and bitmap units in libMML and pyMML. There have been a few other additions, but they're either untested or just not working. Currently bitmap functions in pyMML are (seemingly) mostly working. There are several data types that I'm not sure how I want to deal with yet, but for the most part it's okay.
You can find my current progress on GitHub.
If you want to test it out, just run
python final_test.py in the pymml directory and have this image visible somewhere. It should find it and move the mouse to a certain point on the image. Bitmap finding and mouse moving in Python with MML! Neat!If anyone is curious or wants to help, please, feel free to ask. My biggest concern is getting pyMML in a spot where it works well and is more idiomatic. That would be the biggest help to me at the moment.
This could be the start of how scripts are written in the future!
from mml import MMLCore
from mml import Bitmap
from mml import Mouse
from ctypes import *
DLL = MMLCore('../mml.dll')
client = DLL.dll.create_client()
bitmap = Bitmap(DLL, client)
mouse = Mouse(DLL, client)
i = bitmap.loadBitmap('flickr_test.bmp')
a = bitmap.findBitmap(i)
if (a[2]): # "Found"
print "bitmap (%d) found at (%d, %d)!" % (i, a[0], a[1])
mouse.setPos((a[0], a[1]))
bitmap.freeBitmap(i)
print "bitmaps freed!"
del DLLHacking Tutorial
EDIT: PLEASE! Remember this is very early in (active) development, so things will change for the better soon!