Jump to content

Desktop icons click event?


 Share

Recommended Posts

I'll find an source on the forum which can read all the icons, (how many, type and title and position) very nice, but can autoit tricker an event when you click on a icon on the desktop?,

i mean something like select my computer, and a gui popup with some additional options.

i cna tricker a window (winselecttitle), but can you also do with folders and exe files?

please advise

Thanks

Justmobile

Link to comment
Share on other sites

Yes.

#include<Misc.au3>
#Include <GuiListView.au3>
Global $dll = DllOpen("user32.dll")
While 1
$hList = ControlGetHandle('Program Manager', '', '[CLASS:SysListView32;INSTANCE:1]')
sleep(50)
if ControlGetFocus('Program Manager','') = "SysListView321" then
  ToolTip(_GUICtrlListView_GetItemText($hList, _GUICtrlListView_GetHotItem($hList)))
  if _IsPressed("01",$dll) then 
    MsgBox(0,"",_GUICtrlListView_GetItemText($hList, _GUICtrlListView_GetHotItem($hList))&" was clicked")
  EndIf
EndIf
WEnd
Link to comment
Share on other sites

Yes.

#include<Misc.au3>
#Include <GuiListView.au3>
Global $dll = DllOpen("user32.dll")
While 1
$hList = ControlGetHandle('Program Manager', '', '[CLASS:SysListView32;INSTANCE:1]')
sleep(50)
if ControlGetFocus('Program Manager','') = "SysListView321" then
  ToolTip(_GUICtrlListView_GetItemText($hList, _GUICtrlListView_GetHotItem($hList)))
  if _IsPressed("01",$dll) then 
    MsgBox(0,"",_GUICtrlListView_GetItemText($hList, _GUICtrlListView_GetHotItem($hList))&" was clicked")
  EndIf
EndIf
WEnd

THANK YOU THANK YOU!!!!.

just wat i was looking for , i can continue.

Regards...

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...