Page 1 of 1

Wndproc

Posted: Thu Mar 21, 2013 3:26 pm
by radido
Hi,
if someone had an example for "Wndproc" with Ruby for me
thanks :D

Re: Wndproc

Posted: Mon Mar 25, 2013 10:19 pm
by rlr
I dont quite understand what you are asking for. The graphics functions wich are part oft the RubyEdit class work differently. AFAIK there is also no access to the window's HWND.

Re: Wndproc

Posted: Tue Mar 26, 2013 9:23 am
by radido
Sorry for misunderstanding..

# This gets the caption of a window from a handle
s = ' '*64
getWindowText = Win32API.new("user32", "GetWindowText", ['L','P','L'], 'L')
getWindowText.Call(handle,s,64)
watch "caption",s


With this stuff, I can only identify the sender of a message:
But can“t receive from the sender a message.
Do you have an explanation?