CodeTinkerer Posted October 31, 2014 Share Posted October 31, 2014 Hello there, I've been working on a private script to automate creating specific types of work orders for a company. the application used to view customer information and to create work orders from is a MDI Application. What Ive been searching for is a Window Coord Mode for MDI Child Windows as it is preferential that even though thoes child windows can be maximized within the Parent window that they stay their default size when generated. I have used the Window Info tool to see if this might be possible but it catches the coord mode for the parent window, not the child windows. I have already accomplished bringing child windows into focus by Window Title Text. Any assistance with this one would be greatly appreciated! Link to comment Share on other sites More sharing options...
CodeTinkerer Posted October 31, 2014 Author Share Posted October 31, 2014 Impossible im guessing. well on to the next Idea then Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 31, 2014 Moderators Share Posted October 31, 2014 CodeTinkerer,Some people give up easily. How about finding the positions of the 2 GUIs and doing a bit of basic maths when calculating the position? And I am assuming that this is a third-party app - so why not try to automate it via the Control* functions rather than use the less reliable Mouse* ones? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
CodeTinkerer Posted October 31, 2014 Author Share Posted October 31, 2014 Indeed! Thank you sir. Could you expand on your desciption of control functions? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 31, 2014 Moderators Share Posted October 31, 2014 CodeTinkerer,So it is a third-party app? Can you tell us which one? Or at least post the content of the Window Info tool so we can see what you have as a target. Could you expand on your desciption of control functions?Look at the Control* functions in the Help file - they allow you to interact directly with controls in many apps. Or there is IUIAutomation which covers many others. The more information you can give us the better. And what about my suggestion of using maths to derive the positons? Do the returns from WinGetPos for the 2 GUIs seem sensible? A screenshot and the values you get would be instructive. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
CodeTinkerer Posted October 31, 2014 Author Share Posted October 31, 2014 Here is a visual of the application (not my own). I currently do not have access to the resources but when I do I will update my progress in this thread Link to comment Share on other sites More sharing options...
CodeTinkerer Posted November 4, 2014 Author Share Posted November 4, 2014 expandcollapse popupFrom Autoit Window info summary: >>>> Window <<<< Title: Advanced Customer Service Representative - Common Search Class: Afx:00100000:8:00010005:00000000:00E7022F Position: 1798, -8 Size: 1330, 916 Style: 0x15CF8000 ExStyle: 0x00000100 Handle: 0x00030B34 >>>> Control <<<< Class: Afx:00100000:b:00010005:00000006:00890363 Instance: 1 ClassnameNN: Afx:00100000:b:00010005:00000006:008903631 Name: Advanced (Class): [CLASS:Afx:00100000:b:00010005:00000006:00890363; INSTANCE:1] ID: 65280 Text: Common Search Position: 213, 174 Size: 678, 572 ControlClick Coords: 295, 20 Style: 0x54CBC000 ExStyle: 0x00000140 Handle: 0x000509C6 >>>> Mouse <<<< Position: 2314, 236 Cursor ID: 0 Color: 0xCFDDEA >>>> StatusBar <<<< 1: Ready 2: CAP 3: NUM 4: SCRL >>>> ToolsBar <<<< >>>> Visible Text <<<< Common Search Customer &Search &New &Clear Customer Type Co&mmercial &Residential Name: Caller Primary Phone: - Conference Client ID: Account #: Customer #: Company Name: Last Name: First Name: Instructions: Address Line 1 is Required. You must add either one of the combinations : [1] City and State Or [2] Zip Code Address Line 1: Apt#: Address Line 2: City: State: Zip: Location #: Order #: Job #: Tax ID: - - - - - Customer Search is for Existing Customers Dispatch Inquiry and Update System: 8245 Prin: 1100 Agent: Tech: Sched Date: Job #: Job Type: CSGComboboxCtrl1 Reason: CSGComboboxCtrl1 Dispatch Status: CSGComboboxCtrl1 Geo: CSGComboboxCtrl1 Appl&y C&lear >> Search Criteria Open Jobs: Open Units: Completed Jobs: Completed Units: Unable Jobs: Tech Notes: Aud&it Customer Se&rvices &Location &Equipment Acti&vate &Order Details &Job Details &Assign Tech CSGComboboxCtrl1 ... Job Number: Dispatch Status: Reasons: Resolutions: Job Comments: Dispatch Notes: Name: Phone: Address: Cust Request: Last Chg: &Mass Assign Mass &Sched Status U&pdate &Tech Totals &Update &Close >>>> Hidden Text <<<< Connec&t Now Customer Type Co&mmercial &Residential Primary Phone: - Company Name: Last Name: First Name: If you receive an error of Invalid Search Criteria, click OK, clear the search window and manually search for the customer. Apt entry example: 250 Elm St Apt 3B < Ready 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