mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 09:12:19 -05:00
Fix exporting
This commit is contained in:
parent
b69097789f
commit
66d07009ef
@ -193,6 +193,8 @@ exports
|
|||||||
{ Finder }
|
{ Finder }
|
||||||
findColor,
|
findColor,
|
||||||
findColors,
|
findColors,
|
||||||
|
findColorTolerance,
|
||||||
|
findColorsTolerance,
|
||||||
|
|
||||||
{ Mem Management }
|
{ Mem Management }
|
||||||
fpc_freemem_,
|
fpc_freemem_,
|
||||||
|
@ -26,34 +26,36 @@ class MMLCore(object):
|
|||||||
def __del__(self):
|
def __del__(self):
|
||||||
del self.dll
|
del self.dll
|
||||||
|
|
||||||
DLL = MMLCore('../libmml.so')
|
|
||||||
|
|
||||||
c = Color(DLL)
|
if __name__ == '__main__':
|
||||||
ret = c.find((0, 0, 100, 100), 0)
|
DLL = MMLCore('../libmml.so')
|
||||||
print ret
|
|
||||||
|
|
||||||
ret = c.findAll((0, 0, 100, 100), 0)
|
c = Color(DLL)
|
||||||
print ret
|
ret = c.find((0, 0, 100, 100), 0)
|
||||||
|
print ret
|
||||||
|
|
||||||
|
ret = c.findAll((0, 0, 100, 100), 0)
|
||||||
|
print ret
|
||||||
|
|
||||||
|
|
||||||
m = Mouse(DLL)
|
m = Mouse(DLL)
|
||||||
|
|
||||||
|
|
||||||
print m[(Mouse.Pos, Mouse.Left, Mouse.Right)]
|
print m[(Mouse.Pos, Mouse.Left, Mouse.Right)]
|
||||||
m[(Mouse.Pos, Mouse.Right)] = ((300,300), True)
|
m[(Mouse.Pos, Mouse.Right)] = ((300,300), True)
|
||||||
print m.getButtonStates()
|
print m.getButtonStates()
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
m.setPos((200,200))
|
m.setPos((200,200))
|
||||||
|
|
||||||
sleep(2)
|
sleep(2)
|
||||||
|
|
||||||
# Reset all buttons..
|
# Reset all buttons..
|
||||||
m[(Mouse.Left, Mouse.Right, Mouse.Middle)] = [False for x in range(3)]
|
m[(Mouse.Left, Mouse.Right, Mouse.Middle)] = [False for x in range(3)]
|
||||||
for v in zip((Mouse.Left, Mouse.Right), m[(Mouse.Left, Mouse.Right)]):
|
for v in zip((Mouse.Left, Mouse.Right), m[(Mouse.Left, Mouse.Right)]):
|
||||||
print v
|
print v
|
||||||
print m.getPos()
|
print m.getPos()
|
||||||
|
|
||||||
if hasattr(ret,'__iter__'):
|
if hasattr(ret,'__iter__'):
|
||||||
m.setPos(ret)
|
m.setPos(ret)
|
||||||
|
|
||||||
del DLL
|
del DLL
|
||||||
|
Loading…
Reference in New Issue
Block a user