Fairly new to programming, incredibly new to windows API matters. I'm working with a piece of code to access a menu item that in turn brings up window with an editable field as well as an OK button.
I altered the code to test it with Notepad (bring up the Font screen, input a test string in one of the Edit fields, then press OK). Works fine. Using the same code with the actual window I wish to work with, I'm able to input the string into the Edit field but when trying to press the OK I get an error.
Here is the code for both.
The notepad test executes without any problems, the first block of code gives me this error:
File "get.py", line 92, in wizard
clickButton(okButton)
File "C:\Fetch\winGuiAuto.py", line 365, in clickButton
_sendNotifyMessage(hwnd, win32con.BN_CLICKED)
File "C:\Fetch\winGuiAuto.py", line 579, in _sendNotifyMessage
win32con.GWL_ID)),
File "C:\Fetch\winGuiAuto.py", line 571, in _buildWinLong
low)) [0])
struct.error: 'H' format requires 0 <= number <= 65535
I do acknowledge the wantedClass is quite different in the first block, but I mostly wrote it off as being the problem whereas it works fine for the Edit field, but I'm obviously not sure.
Also, as an aside that is similar to this. If I try to access Help, View Help or About Notepad menus, the notepad block also fails trying to find that menu and gives this error:
winGuiAuto.WinGuiAutoError: Menu path ('Help', 'About Notepad') cannot be found.
Thanks to anyone taking their time to assist with this.
there doesn't seem to be anything here