Jump to content

AdressOf WindowProc


LOULOU
 Share

Recommended Posts

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

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