Sign in to follow this  
Followers 0
Bobbeyreay

WHY?! Can't we store $Handles in files?

5 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

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.

[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Lar, All,

Thank You for your help. I grew up on previous versions of Autoit and did not expect this to show up in 3.2. Thanks again.

Bobbey

Share this post


Link to post
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
Sign in to follow this  
Followers 0