Jump to content

Please help me with this DllCall script


Recommended Posts

1) I'm getting a "Memory can not be read" error everytime I try to run this script.

2) Even when I could get the script to run, the DllCalls were not functioning correctly. By correctly, I mean placing a tooltip per item, for the only item in the listview.

I just spent 2 days scouring commctrl.h for the constants that are in the script. The struct data in the script is my best atempt at translating the typedef's listed on MSDN.

I would really appreciate any help.

Link to comment
Share on other sites

stoped it from crashing, there is now wstr in the structs, shouldn't that be ptr?

Case $sStructType = "LVSETINFOTIP"   ;http://windowssdk.msdn.microsoft.com/en-us/library/ms670570.aspx
            Return ("uint;int;ptr;int;int;")

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Was trying to follow the var type conversions in this post: http://www.autoitscript.com/forum/index.php?showtopic=7072

That's for normal dllcall's not structs

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Is there something I am doing wrong in the script?

Select
            Case $event = $LVN_GETINFOTIPW ;Gui is returning Unicode notification message
                GUICtrlSetData($text,    "GUIHWnd" & @TAB & @TAB & ":" & $hwndGUI & @CRLF & _
                                        "MsgID" & @TAB & @TAB &  ":" & $MsgID & @CRLF & _
                                        "wParam" & @TAB  & @TAB & ":" & $WParam & @CRLF & _
                                        "lParam" & @TAB  & @TAB & ":" & @CRLF & _
                                        "     dwFlags" & @TAB & ": " & DllStructGetData($data,4) & @CRLF & _
                                        "     pszText" & @TAB & ": " & DllStructGetData($data,5) & @CRLF & _
                                        "  cchTextMax" & @TAB & ": " & DllStructGetData($data,6) & @CRLF & _
                                        "       iItem" & @TAB & ": " & DllStructGetData($data,7) & @CRLF & _
                                        "    iSubItem" & @TAB & ": " & DllStructGetData($data,8) & @CRLF & _
                                        "      lparam" & @TAB & ": " & DllStructGetData($data,9) & @CRLF & _
                                        "-----------------------------" & @CRLF & _
                                        "Code" & @TAB & @TAB & ":" &    DllStructGetData($tagNMHDR,3) & @CRLF & _
                                        "CtrlID" & @TAB & @TAB & ":" &  DllStructGetData($tagNMHDR,2) & @CRLF & _
                                        "CtrlHWnd" & @TAB & ":" &       DllStructGetData($tagNMHDR,1))
        EndSelect

That code should return a struct in lParam, and it's returning 0 for all the information I need.

Edited by amanda089
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...