Sign in to follow this  
Followers 0
Justmobile

Desktop icons click event?

6 posts in this topic

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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.php?showtopic=92332&view=findpost&p=665094

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.php?showtopic=92332&view=findpost&p=665094

Thanks works great!!

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