Jump to content

ControlFocus


zain
 Share

Recommended Posts

I am quite newbie to autoit.I have 2 questions.

1.how to use ControlFocus ( "", "", "[X:643;Y:339]" ) when widow has no text and no title.Please look at following information of window and control viewed by window informer.

>>>> Window <<<<

Title:

Class: WindowsForms10.window.8.app.0.33c0d9d

Position: 0, 0

Size: 1024, 768

Style: 0x16010000

ExStyle: 0x00010000

Handle: 0x005201E0

>>>> Control <<<<

Class: WindowsForms10.EDIT.app.0.33c0d9d

Instance: 2

ClassnameNN: WindowsForms10.EDIT.app.0.33c0d9d2

Name: txtConsumerNo

Advanced (Class): [NAME:txtConsumerNo]

ID: 15270262

Text:

Position: 638, 237

Size: 263, 30

ControlClick Coords: 38, 27

Style: 0x560100C0

ExStyle: 0x00000200

Handle: 0x00E90176

now how is it possible to intract with this control.

2.I want to call text change event of a this control. How is it possible

Link to comment
Share on other sites

  • Moderators

zain,

You might be new, but how did you miss the this at the top of this forum area. :)

I have asked for the thread to be moved, so be patient. ;)

M23

Edit: Mods - that was quick! :idiot:

Edited by Melba23

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

Not working my friend.Also ID is dynamically issued.

Thanks for Reply!

I solved this by $hWnd = WinGetHandle("[ACTIVE]") and once i got handle of window i can access it controls easily.

Now i am stuck into a problem.i have to write algo before a text field text change event.

Whenever text is changed in this box i will do something in another combo box.how is this possible.

Thanks!

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...