Jump to content
Sign in to follow this  
2words4uready

How to use?

Recommended Posts

2words4uready

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 by 2words4uready

READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites
Richard Robertson

No.

#Include <WinAPI.au3>
_WinAPI_SetWindowText(WinGetHandle("Untitled - Notepad"), "test")

I don't even want to know why you were converting strings to strings.

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  

×