Jump to content
Sign in to follow this  

Thumbnail for webpage when mouse hover a ListView row

Recommended Posts


Hi there,

I have a small tool that displays a list of website and pings using List View. Which is:

ID |          Website          |      Ping      |
1        www.google.com               20
2        www.microsoft.com            27
3        www.bing.com                 32 


I'm using this Function to select and interact with the selected row:

;; By Martin

Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam)
        #forceref $hWndGUI, $MsgID, $wParam
        Local $tagNMHDR, $event,$selrow,$selcol
        $tagNMHDR = DllStructCreate("int;int;int", $lParam);NMHDR (hwndFrom, idFrom, code)
        If @error Then Return
        $event = DllStructGetData($tagNMHDR, 3)
            Case $wParam = $ListView1;<----------change to be the variable for your listview

                    Case $event = $NM_CLICK;<--------assuming you want to know the column when you left click
                        Local $tagNMITEMACTIVATE = DllStructCreate("int;int;int;int;int;int;int;int;int", $lParam)
                        $selrow = DllStructGetData($tagNMITEMACTIVATE, 4)
                        $selcol = DllStructGetData($tagNMITEMACTIVATE, 5)

                        ConsoleWrite("col selected = " & $selcol & @CRLF);<-------replace with your own code           

        Return $GUI_RUNDEFMSG
EndFunc  ;==>WM_Notify_Events

However, sometimes my tool displays a lot of websites that are not familiar with users. So is it possible to make a thumbnail of each website when we point the mouse over the row to let users have the overview look of the website before surfing it???

Mean that when I do "mouse hover" on the first row which is www.google.com, there will be a thumbnail or snapshot of the google website after the mouse and the thumbnail will go way when the mouse is some place else.

That would be very nice of you to help me implement the function or give me a method to do that. I'm just a starter in autoit.

Thank you and have a great day!

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.