kmorgan2 / ResTool-NXT

Computer Repair and Troubleshooting utility for ResTech, a department of NIU Housing and Dining
1 stars 1 forks source link

AutoIt replacement functions #32

Closed kmorgan2 closed 8 years ago

kmorgan2 commented 8 years ago

We need functions in Python (preferably not using a 3rd-party library) that replace AutoIt functions like WinWait, WinActivate, Send, ControlClick, etc. Basically any function used in the master branch to control programs needs to be ported somehow to the python branch.

tmalauskas commented 8 years ago

Seeing as though importing the pywinauto library is out of the picture, I think our best bet is to manually grab the functions we need from https://github.com/pywinauto/pywinauto/tree/master/pywinauto. Thoughts?

kmorgan2 commented 8 years ago

pywinauto is very heavy as a library. It has a lot of backend dependency that we would need to model. Probably a better option would be to model the dll calls from the AutoIt source. these can be replaced by ctypes.windll.. calls in most cases.

kmorgan2 commented 8 years ago

Source of Autoit available here: https://github.com/ellysh/au3src/tree/master/src. Most info will be in script_win.cpp

kmorgan2 commented 8 years ago

PyWinAuto will work fine after all.