2words4uready Posted July 28, 2008 Share Posted July 28, 2008 (edited) How do you use this? #Include <WinAPI.au3> _WinAPI_SetWindowText($hWnd, $sText) From what i understand this code should work. #Include <WinAPI.au3> $hWnd = String("Untitled - Notepad") $sText = String("test") _WinAPI_SetWindowText($hWnd, $sText) Am i doing this right? Edited July 28, 2008 by 2words4uready Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 28, 2008 Share Posted July 28, 2008 No. #Include <WinAPI.au3> _WinAPI_SetWindowText(WinGetHandle("Untitled - Notepad"), "test") I don't even want to know why you were converting strings to strings. Link to comment Share on other sites More sharing options...
2words4uready Posted July 28, 2008 Author Share Posted July 28, 2008 No. #Include <WinAPI.au3> _WinAPI_SetWindowText(WinGetHandle("Untitled - Notepad"), "test") I don't even want to know why you were converting strings to strings.Sorry, misinterpreted the help file. 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