RyanPriceDotCa Posted June 17, 2008 Share Posted June 17, 2008 Hello,I'm trying to automate a data entry process at my office. Every once in a while we receive an excel sheet with a bunch of records that need to be updated in our database.Having never used AutoIt before I was hoping someone here can help me get started. My first problem lies in the fact that the window I want to detect lies within another window. Here is a pic:The main window, and the window detected by the Window Info tool, is titled "Research Database". The window I want to detect is the "Main Search Screen".How do I go about detecting it? The information seen in the picture above shows the window info information while my mouse and cursor are over the "Selection Criteria" search box.The only place I see the window I'm after is in the "Visible Text" section. Is that I would use?Thanks in advace. I know this is a noob question but any help is appreciated. Link to comment Share on other sites More sharing options...
Kiti Posted June 17, 2008 Share Posted June 17, 2008 For begining, try just: WinActivate("MAIN SEARCH SCREEN") If it works properly, your editor will switch to that box. See if it works Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
TehWhale Posted June 17, 2008 Share Posted June 17, 2008 Else, GUICtrlSetState($Control, $GUI_FOCUS) Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 17, 2008 Share Posted June 17, 2008 Hello, I'm trying to automate a data entry process at my office. Every once in a while we receive an excel sheet with a bunch of records that need to be updated in our database. Having never used AutoIt before I was hoping someone here can help me get started. My first problem lies in the fact that the window I want to detect lies within another window. Here is a pic: The main window, and the window detected by the Window Info tool, is titled "Research Database". The window I want to detect is the "Main Search Screen". How do I go about detecting it? The information seen in the picture above shows the window info information while my mouse and cursor are over the "Selection Criteria" search box. The only place I see the window I'm after is in the "Visible Text" section. Is that I would use? Thanks in advace. I know this is a noob question but any help is appreciated. You should be fine with just title and text, for example: WinActivate("Research Database", "Main Search Screen") ControlSetText("Research Database", "Main Search Screen", "Edit1", "R2839") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
RyanPriceDotCa Posted June 17, 2008 Author Share Posted June 17, 2008 Thanks to all. I'm understanding more how this works and have made quite a bit of progress with these little tips. Thank you. 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