Jump to content
Sign in to follow this  
LOULOU

AdressOf WindowProc

Recommended Posts

LOULOU

IndexOf allow to return the adress in memory of a function

Is anyone Know how to implement this visual basic Function in autoit ?

Best regards

Edited by LOULOU

Share this post


Link to post
Share on other sites
SmOke_N

IndexOf allow to return the adress in memory of a function

Is anyone Know how to implement this visual basic Function in autoit ?

Best regards

Do you have the VB Function to post, maybe someone can translate it to AutoIt for you.


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.

Share this post


Link to post
Share on other sites
Valik

It's a built in VB operator/function and is not support in AutoIt.

Share this post


Link to post
Share on other sites
SmOke_N

Ahh, Thus my NULL knowledge of VB... Thanks Valik.


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.

Share this post


Link to post
Share on other sites
LOULOU

Ahh, Thus my NULL knowledge of VB... Thanks Valik.

Here is the code in VB

Func WindowProc(ByVal hwnd As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Select Case uMsg

Case $WM_SYSCOMMAND

Select Case (wParam And &HFFF0&)

Case $SC_USER

MsgBox "Vous avez appuyer sur le menu", vbInformation

Case Else

WindowProc = CallWindowProc(mOldProc, hwnd, uMsg, wParam, lParam)

EndSelect

Case Else

WindowProc = CallWindowProc(mOldProc, hwnd, uMsg, wParam, lParam)

EndSelect

EndFunc

AppendMenu GetSystemMenu(hwnd, 0), 0, SC_USER, "*Nouveau*"

mOldProc = GetWindowLong(hwnd, GWL_WNDPROC)

SetWindowLong hwnd, GWL_WNDPROC, AddressOf WindowProc

Share this post


Link to post
Share on other sites
LOULOU

It's a built in VB operator/function and is not support in AutoIt.

Did you know how to implement it ?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.