Iczer Posted July 18, 2016 Posted July 18, 2016 I need x64 script to work with ListView control in 32-bit program. I managed adapt some of GUICtrlListView UDF functions, but cannot get to work "_GUICtrlListView_GetHotItem()"... so I need tips to make it usable in the same time functions _GUICtrlListView_GetColumnWidth _GUICtrlListView_SetColumnWidth _GUICtrlListView_ApproximateViewHeight _GUICtrlListView_GetTopIndex _GUICtrlListView_GetSelectionMark work without fail but have same basic structure: Func _GUICtrlListView_GetColumnWidth($hWnd, $iCol) If IsHWnd($hWnd) Then Return _SendMessage($hWnd, $LVM_GETCOLUMNWIDTH, $iCol) Else Return GUICtrlSendMsg($hWnd, $LVM_GETCOLUMNWIDTH, $iCol, 0) EndIf EndFunc ;==>_GUICtrlListView_GetColumnWidth Func _GUICtrlListView_GetHotItem($hWnd) If IsHWnd($hWnd) Then Return _SendMessage($hWnd, $LVM_GETHOTITEM) Else Return GUICtrlSendMsg($hWnd, $LVM_GETHOTITEM, 0, 0) EndIf EndFunc ;==>_GUICtrlListView_GetHotItem
Danyfirex Posted July 18, 2016 Posted July 18, 2016 Hello you must get the lower 32 bits value of your x64 value. Basically you can do this. Local $iHotItem = BitShift(_GUICtrlListView_GetHotItem(($hListView)), 32) If $iHotItem > -1 Then ConsoleWrite($iHotItem & @CRLF) EndIf Saludos Iczer 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
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