Sign in to follow this  
Followers 0
amanda089

Please help me with this DllCall script

5 posts in this topic

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.

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

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