amanda089 Posted August 26, 2006 Posted August 26, 2006 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.
GaryFrost Posted August 26, 2006 Posted August 26, 2006 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.
amanda089 Posted August 26, 2006 Author Posted August 26, 2006 Was trying to follow the var type conversions in this post: http://www.autoitscript.com/forum/index.php?showtopic=7072
GaryFrost Posted August 26, 2006 Posted August 26, 2006 Was trying to follow the var type conversions in this post: http://www.autoitscript.com/forum/index.php?showtopic=7072That'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.
amanda089 Posted August 26, 2006 Author Posted August 26, 2006 (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 August 26, 2006 by amanda089
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now