Jump to content

Recommended Posts

Posted

Hi!

I am new to Autoit scripts,but have great interest in it...

Can somebody,please,help with reffering to a specific handle...

I would like to copy hidden value from WindowsForms object..

I have recorded:

WinActivate("[CLASS:WindowsForms10.window.8.app.0.62e449]", "")

MouseMove(638,172)

MouseDown("left")

MouseMove(551,172)

MouseUp("left")

Send("{CTRLDOWN}c{CTRLUP}")

WinActivate(" My Personalized Workbook - NOVI-RACUN [Compatibility Mode]","NOVI-RACUN [Compati")

MouseClick("left",226,290,1)

Send("{CTRLDOWN}v{CTRLUP}")

and it works,but when the window is not on the specific position it will not do.

I have a name of the handle,but can not make it to copy from it...

Help?

Posted

Welcome to AutoIt. ;)

You might start with some terminology: handle = a unique pointer to an element that is static for the life of the element, but changes each time the element is created.

That makes it hard to understand how you "have a name of the handle".

You might try setting Opt("WinDetectHiddenText", 1) and then try WinGetText() on it. See help file.

:graduated:

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
Posted

Welcome to AutoIt. ;)

You might start with some terminology: handle = a unique pointer to an element that is static for the life of the element, but changes each time the element is created.

That makes it hard to understand how you "have a name of the handle".

You might try setting Opt("WinDetectHiddenText", 1) and then try WinGetText() on it. See help file.

:graduated:

Psalty, thank You very much!

I did not find, at first, option about hidden text, but today i spent few hours browsing through help files...i will try with the method you suggested, think it will work good..

i am still a bit confused about the structure of programming, but will get used with stuff..

Once again, thank you for welcoming me, and thank you for taking time to give me directions.

bye

Posted

Welcome to AutoIt. ;)

You might start with some terminology: handle = a unique pointer to an element that is static for the life of the element, but changes each time the element is created.

That makes it hard to understand how you "have a name of the handle".

You might try setting Opt("WinDetectHiddenText", 1) and then try WinGetText() on it. See help file.

:graduated:

I have tried WinGetText, but can not seem to address it correct..Info Window says:

>>>> Control <<<<

Class: WindowsForms10.EDIT.app.0.62e449

Instance: 3

ClassnameNN: WindowsForms10.EDIT.app.0.62e4493

Name: udIdentyAddressDisplayTextBox

Advanced (Class): [NAME:udIdentyAddressDisplayTextBox]

ID: 66526

Text:

Position: 587, 137

Size: 102, 13

ControlClick Coords: 25, 10

Style: 0x560008C0

ExStyle: 0x00000000

Handle: 0x000103DE

>>>> Mouse <<<<

Position: 1235, 188

Cursor ID: 0

Color: 0x8080FF

Any suggestions, please?

Posted

That would translate to something like:

$hWin = WinGetHandle("[CLASS:WindowsForms10.EDIT.app.0.62e449; INSTANCE:3]")
$sText = ControlGetText($hWin, "", "[NAME:udIdentyAddressDisplayTextBox]")
ConsoleWrite("DEBUG:  $sText = " & $sText & @LF)

:graduated:

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

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
  • Recently Browsing   0 members

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