Jump to content

Mouse Coord Mode For MDI Child


Recommended Posts

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

  • Moderators

CodeTinkerer,

Some people give up easily. :whistle:

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? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

From 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...