KHCCData Posted December 16, 2015 Share Posted December 16, 2015 My company has just updated its database and I need to transfer client information into the new database (ChildPlus.net, a thin client app), and have been trying to automate data entry. And failing.It seemed like AutoIt should work for what I need, but instances and handles for fields change between records, and it doesn’t seem to respond properly to the name of the control either. I have most of the data in csv or excel files, it’s just that controlsend/click do not attach to the fields. I don’t see a way besides instance and class(nn) as names aren’t working.I cannot just save mouse positions as the text reflow works against it, and there are not enough key commands to be able to script it easily.The field has two distinct areas, the outer one has a .net name, and the inner just has class and instance(the instance changes if other menu commands are selected, and the class is the same for every field in the application). I can use ControlGetText("ChildPlus.net","","[CLASS:WindowsForms10.EDIT.app.0.3c47a4f_r17_ad1; INSTANCE:24]") for the inner field, but just the first time as the instance changes once I've clicked something else. ControlGetText("ChildPlus.net","","[NAME:txtAlternateID]") produces nothing.Outer field:>>>> Window <<<<Title: ChildPlus.netClass: WindowsForms10.Window.8.app.0.3c47a4f_r17_ad1Position: -8, -8Size: 1616, 876Style: 0x17CF0000ExStyle: 0x00050100Handle: 0x00000000000104EC>>>> Control <<<<Class: WindowsForms10.Window.b.app.0.3c47a4f_r17_ad1Instance: 234ClassnameNN: WindowsForms10.Window.b.app.0.3c47a4f_r17_ad1234Name: txtAlternateIDAdvanced (Class): [NAME:txtAlternateID]ID: 855648Text: Position: 945, 575Size: 285, 28ControlClick Coords: 133, 2Style: 0x56000000ExStyle: 0x00010000Handle: 0x00000000000D0E60>>>> Mouse <<<<Position: 1078, 599Cursor ID: 0Color: 0x000000 Inner Field:>>>> Window <<<<Title: ChildPlus.netClass: WindowsForms10.Window.8.app.0.3c47a4f_r17_ad1Position: -8, -8Size: 1616, 876Style: 0x17CF0000ExStyle: 0x00050100Handle: 0x00000000000104EC>>>> Control <<<<Class: WindowsForms10.EDIT.app.0.3c47a4f_r17_ad1Instance: 24ClassnameNN: WindowsForms10.EDIT.app.0.3c47a4f_r17_ad124Name: Advanced (Class): [CLASS:WindowsForms10.EDIT.app.0.3c47a4f_r17_ad1; INSTANCE:24]ID: 1443764Text: Position: 950, 579Size: 275, 20ControlClick Coords: 71, 12Style: 0x560100C0ExStyle: 0x00000000Handle: 0x00000000001607B4>>>> Mouse <<<<Position: 1021, 613Cursor ID: 0Color: 0xFFFFFF Link to comment Share on other sites More sharing options...
Danyfirex Posted December 16, 2015 Share Posted December 16, 2015 Try to run as admin.Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
KHCCData Posted December 17, 2015 Author Share Posted December 17, 2015 (edited) Here for instance is a sample client id field I am trying to get text from. The outer control is named and that would be best IF i could use it, but it's only the inner control that holds text. And the instance and control ID change for that inner box.Is there a way to get CLASSNN for the control contained inside [NAME:txtAlternateID] ? Edited December 17, 2015 by KHCCData picture shown in preview, but not in post Link to comment Share on other sites More sharing options...
PACaleala Posted December 18, 2015 Share Posted December 18, 2015 KHCCData you are on the wrong path.This is a job for a database (or system) administrator. He can finish this kind of job in a matter of minutes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now