I am trying to use pywinauto to automate TomCat to start and stop every time I update the class files. However, when I try and run it it gives me the following warning:
UserWarning: 32-bit application should be automated using 32-bit Python (you use 64-bit Python)
I am pretty sure I have the 64-bit version of my desired program (Even reinstalled to make sure). Is there any way to skip this warning so the program can execute? Or is this not possible? (Tomcat is even installed in program files instead of program files(x86).) If the case is that I have to use the 32-bit version of python to do this, how can I install pywinauto for both the 32-bit and 64-bit version of python? I tried running it with 32-bit version of python but it says the "pywinauto" module is not recognized, even though I ran pip install pywinauto.
EDIT: The program "worked" despite the warning message. It just informed me that I should use 32-bit python. Even though the code for tomcat did not work( I have no idea why, even used SWAPY to make sure code is correct, but it would still not work). Here is some code that did not execute as expected (i.e nothing happened)
def tomCatAuto():
app = Application().Connect(title=u'Apache Tomcat 8.0 Tomcat8 Properties', class_name='#32770')
window = app.Dialog
button = window.OK
button.Click()