From: Hansen, S. <Scott.Hansen@Navistar.com> - 2010-11-09 16:43:53
|
I'm using watsup to set text in a GUI written in .NET using the following code: def main(): gemWindow = findTopWindow(wantedText='Greenhouse gas Emissions Model (GEM) v.1') print "window = %d" % gemWindow manEditBox = findControl(gemWindow,wantedText='Engine Family:') print "manEditBox = %d" % manEditBox setEditText(manEditBox, 'hi there') controls = dumpWindow(gemWindow) for control in controls : print control main() I get valid handles for the main window and the text box called "Engine Family:" . However, nothing shows up in the text box. I listed the controls using the dumpWindow function. Here's the info for the Engine Family and Manufacturer Name text boxes: [395364, 'Engine Family:', 'WindowsForms10.STATIC.app.0.33c0d9d'] [592084, 'Manufacturer Name:', 'WindowsForms10.STATIC.app.0.33c0d9d'] I noticed that the class names for the text boxes are the same. I have the following questions: 1. Is this a compatibility issue since watsup was written to work with MFC verses .NET? 2. If so, are there future plans to change watsup to work with .NET? 3. Is there a "quick" change I could do to get watsup to work with .NET? Thank you for your help. Scott ________________________________ Disclaimer Confidentiality Notice: This e-mail, and any attachments and/or documents linked to this email, are intended for the addressee and may contain information that is privileged, confidential, proprietary, or otherwise protected by law. Any dissemination, distribution, or copying is prohibited. This notice serves as a confidentiality marking for the purpose of any confidentiality or nondisclosure agreement. If you have received this communication in error, please contact the original sender. |