Jump to content

Recommended Posts

Posted

How come when I save a window handle to a file and later retrieve it (5 sec later) commands no longer recognize the numbers? I have verified back and forth with the contents of the file with written handle and a msg-box of the handle and they are identical.

I've tried converting the text string to number() and vise versa.

I've tried converting the text to hextostring, stringtohex and all other ways.

Are window handles in some special format that must be preserved? If so, how can you save the handle to a file, retrieve it and still have commands be able to recognise it?

Any help is very appreciated.

Bobbey

Posted (edited)

What is HWnd()? If you wouldn't mind a little explanation... I've read the help file it seems a gazzilion times and window controls don't mention it.

When I use it in Autoit v3 I get a "function not found" error.

much obliged,

Bobbey

after reading it cast it to HWnd()

$a = HWnd($a)

LAr.

Edited by Bobbeyreay
  • Moderators
Posted

What is HWnd()? If you wouldn't mind a little explanation... I've read the help file it seems a gazzilion times and window controls don't mention it.

much obliged,

Bobbey

Are you using the newest release 3.2? It's there for sure... I use it all the time.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

  • Moderators
Posted

@Bobbeyreay - As it states in the help file. "Converts an expression into an HWND handle." This meaning you can take an HWND in the form of a string and convert it to an HWND handle.

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
×
×
  • Create New...