Sign in to follow this  
Followers 0
LOULOU

AdressOf WindowProc

6 posts in this topic

#1 ·  Posted (edited)

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



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.


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

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  
Followers 0