Jump to content

Active Windows (finding them)


 Share

Recommended Posts

I will remove the coords when I am back at work -and test.

So If everything changes on the next run of application, how does one write code with controlclicks?

Is there a udf that will read all properties of a window and produce that info? And if that could happen, the id should be at the same index, I could then j8st reference that index?

The reason I used coords, was that the id of the control, was also the same as every button within that area - like a bar with 4 buttons, and I am trying to click just one of them.

This all works, when the window is visible, and I am using winactivate() and send() commans, but as stated, I want this to happen, as the user is locking the computer - basically to put take their phone extension out of the call queue, if they are not at their computer.

Rhanks foe any and all help!

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

Sorry about my mistakes in my post, spelling. I cannot find the edit on my phone to fix.

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

If you are having all this trouble with ControlClick, and since your window is activated, why not see if there are shortcut keys, or a combination of TABS and what not to get to where you want, or at least the focus, then try ControlSend, just to the window without ID, it should send the data or keystroke to the control with focus.

Just an idea.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I am doing that now, but I have to use a different set of hotkeys than windowskey plus L,or locking the computer via the start menu.

I really wanted it seemless to the users. I am also blocking the input, before running the function to log off the call queue.

I will try the focus idea though - maybe that will be the fix?

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

I have not tried either of those methods. I have not heard of instaned based though? I will look both up and see what I can learn.

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

"Instance"...helpfile...:

ControlGetHandle

There is another link on control identification in the above, read that. 

https://www.autoitscript.com/autoit3/docs/intro/controls.htm

You might also attempt by text.  Use my signature to grab all the controls on the window, and output it back here.

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

I cannot wait to get back to work to try this. I will report my findings later, tomorrow night est. Thanks

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

@jdelaney

Ok, here is what I got, and again, I thank you for your help

Func=[GetAllWindowsControls]: ControlCounter=[  1] ControlID=[66188] Handle=[0x0001028C] ClassNN=[WindowsForms10.EDIT.app.0.3ce0bb81] XPos=[  26] YPos=[ 138] Width=[ 503] Height=[  14] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[  2] ControlID=[66230] Handle=[0x000102B6] ClassNN=[WindowsForms10.EDIT.app.0.3ce0bb82] XPos=[  35] YPos=[ 289] Width=[ 524] Height=[  14] IsVisible=[0] Text=[Find a contact or number].
Func=[GetAllWindowsControls]: ControlCounter=[  3] ControlID=[528032] Handle=[0x00080EA0] ClassNN=[WindowsForms10.EDIT.app.0.3ce0bb83] XPos=[  35] YPos=[ 264] Width=[ 524] Height=[  14] IsVisible=[1] Text=[Find History Record].
Func=[GetAllWindowsControls]: ControlCounter=[  4] ControlID=[263532] Handle=[0x0004056C] ClassNN=[WindowsForms10.SysListView32.app.0.3ce0bb81] XPos=[   3] YPos=[ 335] Width=[ 515] Height=[ 312] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[  5] ControlID=[66144] Handle=[0x00010260] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb81] XPos=[   0] YPos=[  10] Width=[  36] Height=[  36] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[  6] ControlID=[66146] Handle=[0x00010262] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb82] XPos=[   0] YPos=[  80] Width=[ 568] Height=[ 688] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[  7] ControlID=[66176] Handle=[0x00010280] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb83] XPos=[   0] YPos=[ 134] Width=[ 568] Height=[ 634] IsVisible=[1] Text=[PCM Docking Pad].
Func=[GetAllWindowsControls]: ControlCounter=[  8] ControlID=[66178] Handle=[0x00010282] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb84] XPos=[   0] YPos=[ 134] Width=[ 568] Height=[ 101] IsVisible=[1] Text=[Call Cell Panel].
Func=[GetAllWindowsControls]: ControlCounter=[  9] ControlID=[66180] Handle=[0x00010284] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb85] XPos=[   0] YPos=[ 156] Width=[ 568] Height=[  79] IsVisible=[1] Text=[Call Cells].
Func=[GetAllWindowsControls]: ControlCounter=[ 10] ControlID=[66184] Handle=[0x00010288] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb86] XPos=[   0] YPos=[ 134] Width=[ 568] Height=[  22] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 11] ControlID=[66190] Handle=[0x0001028E] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb87] XPos=[ 544] YPos=[ 136] Width=[  24] Height=[  18] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 12] ControlID=[66192] Handle=[0x00010290] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb88] XPos=[   0] YPos=[ 136] Width=[  24] Height=[  18] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 13] ControlID=[262676] Handle=[0x00040214] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb89] XPos=[   0] YPos=[ 235] Width=[ 568] Height=[ 533] IsVisible=[1] Text=[ShoreTel Communicator].
Func=[GetAllWindowsControls]: ControlCounter=[ 14] ControlID=[66198] Handle=[0x00010296] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb810] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[ 485] IsVisible=[0] Text=[Contacts].
Func=[GetAllWindowsControls]: ControlCounter=[ 15] ControlID=[66200] Handle=[0x00010298] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb811] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[ 485] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 16] ControlID=[66222] Handle=[0x000102AE] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb812] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[ 485] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 17] ControlID=[131516] Handle=[0x000201BC] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb813] XPos=[   3] YPos=[ 309] Width=[ 562] Height=[ 435] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 18] ControlID=[66244] Handle=[0x000102C4] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb814] XPos=[   3] YPos=[ 309] Width=[   0] Height=[   0] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 19] ControlID=[66242] Handle=[0x000102C2] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb815] XPos=[   3] YPos=[ 309] Width=[   0] Height=[   0] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 20] ControlID=[66226] Handle=[0x000102B2] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb816] XPos=[   3] YPos=[ 284] Width=[ 562] Height=[  25] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 21] ControlID=[66232] Handle=[0x000102B8] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb817] XPos=[   6] YPos=[ 286] Width=[  20] Height=[  20] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 22] ControlID=[66234] Handle=[0x000102BA] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb818] XPos=[   3] YPos=[ 284] Width=[   0] Height=[ 460] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 23] ControlID=[66236] Handle=[0x000102BC] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb819] XPos=[ 565] YPos=[ 284] Width=[   0] Height=[ 460] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 24] ControlID=[66238] Handle=[0x000102BE] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb820] XPos=[   3] YPos=[ 744] Width=[ 562] Height=[   0] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 25] ControlID=[66240] Handle=[0x000102C0] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb821] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[  25] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 26] ControlID=[131700] Handle=[0x00020274] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb822] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[  25] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 27] ControlID=[66202] Handle=[0x0001029A] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb823] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[ 485] IsVisible=[1] Text=[History].
Func=[GetAllWindowsControls]: ControlCounter=[ 28] ControlID=[66204] Handle=[0x0001029C] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb824] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[ 485] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 29] ControlID=[396980] Handle=[0x00060EB4] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb825] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[ 485] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 30] ControlID=[528078] Handle=[0x00080ECE] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb826] XPos=[   3] YPos=[ 284] Width=[ 562] Height=[ 460] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 31] ControlID=[265928] Handle=[0x00040EC8] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb827] XPos=[   3] YPos=[ 727] Width=[ 545] Height=[  17] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 32] ControlID=[265926] Handle=[0x00040EC6] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb828] XPos=[ 548] YPos=[ 284] Width=[  17] Height=[ 443] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 33] ControlID=[396968] Handle=[0x00060EA8] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb829] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[  25] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 34] ControlID=[528132] Handle=[0x00080F04] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb830] XPos=[   6] YPos=[ 261] Width=[  20] Height=[  20] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 35] ControlID=[266012] Handle=[0x00040F1C] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb831] XPos=[   3] YPos=[ 259] Width=[   0] Height=[ 485] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 36] ControlID=[200394] Handle=[0x00030ECA] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb832] XPos=[ 565] YPos=[ 259] Width=[   0] Height=[ 485] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 37] ControlID=[396986] Handle=[0x00060EBA] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb833] XPos=[   3] YPos=[ 744] Width=[ 562] Height=[   0] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 38] ControlID=[1117292] Handle=[0x00110C6C] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb834] XPos=[   3] YPos=[ 259] Width=[ 562] Height=[   0] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 39] ControlID=[66150] Handle=[0x00010266] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb835] XPos=[   0] YPos=[ 134] Width=[   0] Height=[ 634] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 40] ControlID=[66152] Handle=[0x00010268] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb836] XPos=[ 568] YPos=[ 134] Width=[   0] Height=[ 634] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 41] ControlID=[66154] Handle=[0x0001026A] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb837] XPos=[   0] YPos=[ 768] Width=[ 568] Height=[  30] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 42] ControlID=[66156] Handle=[0x0001026C] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb838] XPos=[   0] YPos=[ 768] Width=[ 568] Height=[  30] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 43] ControlID=[66158] Handle=[0x0001026E] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb839] XPos=[   0] YPos=[  30] Width=[ 568] Height=[ 104] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 44] ControlID=[197106] Handle=[0x000301F2] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb840] XPos=[   0] YPos=[  30] Width=[ 568] Height=[  24] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 45] ControlID=[66160] Handle=[0x00010270] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb841] XPos=[   0] YPos=[  55] Width=[ 568] Height=[  25] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 46] ControlID=[66350] Handle=[0x0001032E] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb842] XPos=[   0] YPos=[  81] Width=[ 568] Height=[  27] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 47] ControlID=[66352] Handle=[0x00010330] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb843] XPos=[   0] YPos=[ 109] Width=[ 568] Height=[  25] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 48] ControlID=[66148] Handle=[0x00010264] ClassNN=[WindowsForms10.Window.b.app.0.3ce0bb81] XPos=[   2] YPos=[  82] Width=[ 564] Height=[ 684] IsVisible=[0] Text=[Please wait while ShoreTel Communicator starts up...].
Func=[GetAllWindowsControls]: ControlCounter=[ 49] ControlID=[66186] Handle=[0x0001028A] ClassNN=[WindowsForms10.Window.b.app.0.3ce0bb82] XPos=[  24] YPos=[ 136] Width=[ 520] Height=[  18] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 50] ControlID=[66224] Handle=[0x000102B0] ClassNN=[WindowsForms10.Window.b.app.0.3ce0bb83] XPos=[  55] YPos=[ 444] Width=[ 457] Height=[  72] IsVisible=[0] Text=[The Contact list will permit you to build groups of your most frequently used contacts. It will display their telephony and Instant Messaging presence and allow you to communicate with them via Instant Messages.].
Func=[GetAllWindowsControls]: ControlCounter=[ 51] ControlID=[66228] Handle=[0x000102B4] ClassNN=[WindowsForms10.Window.b.app.0.3ce0bb84] XPos=[  32] YPos=[ 286] Width=[ 530] Height=[  20] IsVisible=[0] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[ 52] ControlID=[593400] Handle=[0x00090DF8] ClassNN=[WindowsForms10.Window.b.app.0.3ce0bb85] XPos=[  32] YPos=[ 261] Width=[ 530] Height=[  20] IsVisible=[1] Text=[].

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

I believe it is this one?

Func=[GetAllWindowsControls]: ControlCounter=[ 47] ControlID=[66352] Handle=[0x00010330] ClassNN=[WindowsForms10.Window.8.app.0.3ce0bb843] XPos=[   0] YPos=[ 109] Width=[ 568] Height=[  25] IsVisible=[1] Text=[].

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

I have attached the screen shot...I am looking at the location where the Rls w/ Code button is located.

 

EDIT...would be nice, if I actually attached it lol

post-10912-0-91489000-1421705534_thumb.p

Edited by nitekram

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

So according to another search, on google, the other scripting site, someone tried to do something like this as well, and was not able to use controlsend() - not sure if theirs is different or not. They were able to grab the shortcut for locking the workstation and logoff the phones - which would be cleaner for the end user.

http://www.autohotkey.com/board/topic/90031-compiled-vs-not-compiled/

Edited by nitekram

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

@SmOk_N

I think I have to learn about this >UIAutomation thanks

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

@junkew

Ok, I found the >UIAutomation UDF really cool, with the simplespy, it makes is so easy - unless I am wrong (which is coming more often, as I get older).

This works, but if the window is minimized it does not work? So, if in my case, the computer being locked - nothing would happen.

#include "UIAWrappers.au3"

AutoItSetOption("MustDeclareVars", 1)
#AutoIt3Wrapper_UseX64=Y  ;Should be used for stuff like tagpoint having right struct etc. when running on a 64 bits os

; not needed just took this code from and example
;~ Translate below to correct language
;$cShoreTelClassName="[REGEXPTITLE:ShoreTel Communicator]"

;$oShoreTel=_UIA_getFirstObjectOfElement($UIA_oDesktop,"class:=" & $cShoreTelClassName, $treescope_children)

;~ You can comment this out just there to get the names of whats available under the calc window
;_UIA_DumpThemAll($oShoreTel,$treescope_subtree)

Local $oP2=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=1567 - ShoreTel Communicator;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.3ce0bb8", $treescope_children)
_UIA_Action($oP2,"setfocus")
Local $oP1=_UIA_getObjectByFindAll($oP2, "Title:=Dock Top;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.3ce0bb8", $treescope_children)
_UIA_Action($oP1,"setfocus")
Local $oP0=_UIA_getObjectByFindAll($oP1, "Title:=Wayne - ECC;controltype:=UIA_ToolBarControlTypeId;class:=WindowsForms10.Window.8.app.0.3ce0bb8", $treescope_children)
_UIA_Action($oP0,"setfocus")
;~ First find the object in the parent before you can do something
;~$oUIElement=_UIA_getObjectByFindAll("Rlsw/Code.mainwindow", "title:=Rls w/ Code;ControlType:=UIA_ButtonControlTypeId", $treescope_subtree)
Local $oUIElement=_UIA_getObjectByFindAll($oP0, "title:=Rls w/ Code;ControlType:=UIA_ButtonControlTypeId", $treescope_subtree)
_UIA_action($oUIElement,"click")

    sleep(1500)
;~  findThemAll($oShoreTel,$treescope_subtree)
;~  sleep(1000)

Exit

Is there any UDF that can access a window after the screen has been locked, or is there something else, I can use to access the window while it is minimized???

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

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