Jump to content

Recommended Posts

Posted

Hey everyone. I could use some help with the correct usage of this API call. As I mentioned in my previous post I am just experimenting on my own GUI using API calls. That being said, I know I can do the same thing using the following:

GUICtrlSendMsg($Edit1 , $WM_SETTEXT, 0, "Hello World.")

But I will be eventually using this call on other application windows so I need to use the API. Here is what I have.

$result = DllCall("user32.dll", "int", "Sendmessage", "hwnd", GUICtrlGetHandle($Edit1), "ULONG", $WM_SETTEXT, "WPARAM", 0, "LPARAM", "Hello World.")

I have a valid handle being returned for edit1.

Any help is appreciated.

Thanks.

-John

Posted

  On 2/20/2010 at 10:50 PM, 'JohnD said:

Hey everyone. I could use some help with the correct usage of this API call. As I mentioned in my previous post I am just experimenting on my own GUI using API calls. That being said, I know I can do the same thing using the following:

GUICtrlSendMsg($Edit1 , $WM_SETTEXT, 0, "Hello World.")

But I will be eventually using this call on other application windows so I need to use the API. Here is what I have.

$result = DllCall("user32.dll", "int", "Sendmessage", "hwnd", GUICtrlGetHandle($Edit1), "ULONG", $WM_SETTEXT, "WPARAM", 0, "LPARAM", "Hello World.")

I have a valid handle being returned for edit1.

Any help is appreciated.

Thanks.

-John

I know I can use the native function, but like i said I am eventually going to use this with controls outside of my application. Does anyone know what may be wrong with the above dllcall? thanks

Posted

  On 2/21/2010 at 9:41 PM, 'JohnD said:

...but like i said I am eventually going to use this with controls outside of my application.

Open \AutoIt3\Include\GuiEdit.au3 and look at _GUICtrlEdit_SetText() function...

:mellow:

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...