Bobbeyreay Posted September 5, 2006 Share Posted September 5, 2006 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 Link to comment Share on other sites More sharing options...
Bobbeyreay Posted September 5, 2006 Author Share Posted September 5, 2006 (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,Bobbeyafter reading it cast it to HWnd()$a = HWnd($a)LAr. Edited September 5, 2006 by Bobbeyreay Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 5, 2006 Moderators Share Posted September 5, 2006 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,BobbeyAre 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. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 5, 2006 Moderators Share Posted September 5, 2006 @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. Link to comment Share on other sites More sharing options...
Bobbeyreay Posted September 6, 2006 Author Share Posted September 6, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now