oMBRa Posted August 30, 2008 Share Posted August 30, 2008 How to click an icon on the desktop without using MouseClick? ( so without moving the mouse ) Link to comment Share on other sites More sharing options...
Zedna Posted August 30, 2008 Share Posted August 30, 2008 (edited) Desktop is in fact ListView. So you can use ListView Find/GetText/Select/... functionsHere are some example scripts:http://www.autoitscript.com/forum/index.ph...c=53395&hl=http://www.autoitscript.com/forum/index.ph...e+&+restore Edited August 30, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ChrisL Posted August 30, 2008 Share Posted August 30, 2008 Does this work for you? $aShortcut = FileGetShortcut (@DesktopDir & "\Shortcut to oleview.exe.lnk" ) If IsArray($aShortcut) then ShellExecute($aShortcut[0],$aShortcut[2],$aShortcut[1],"Open",$aShortcut[6]) [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
oMBRa Posted August 30, 2008 Author Share Posted August 30, 2008 I cant find A3LListView.au3... can someone give me the link? Link to comment Share on other sites More sharing options...
Andreik Posted August 30, 2008 Share Posted August 30, 2008 I cant find A3LListView.au3... can someone give me the link?Download: When the words fail... music speaks. Link to comment Share on other sites More sharing options...
oMBRa Posted August 30, 2008 Author Share Posted August 30, 2008 Now I need A3LHeader.au3 A3LMemory.au3 Link to comment Share on other sites More sharing options...
Andreik Posted August 30, 2008 Share Posted August 30, 2008 Install Auto3Lib. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
oMBRa Posted August 30, 2008 Author Share Posted August 30, 2008 where can I find it? Link to comment Share on other sites More sharing options...
Andreik Posted August 30, 2008 Share Posted August 30, 2008 where can I find it?HereBut I suggest to install in other folder than AutoIt because is for old version of AutoIt. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 30, 2008 Share Posted August 30, 2008 Since 3.2.10.0 almost everything in Auto3Lib has been incorporated to AutoIt, you should install latest stable and use GuiListView.au3 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
oMBRa Posted August 30, 2008 Author Share Posted August 30, 2008 andreik I downlaoded Auto3Lib and it requires the 3.2.4.8 version of autoit but I have 3.2.12.1 Link to comment Share on other sites More sharing options...
Andreik Posted August 30, 2008 Share Posted August 30, 2008 andreik I downlaoded Auto3Lib and it requires the 3.2.4.8 version of autoit but I have 3.2.12.1I uploaded all files from Auto3LibDownload When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Zedna Posted August 30, 2008 Share Posted August 30, 2008 (edited) I cant find A3LListView.au3... can someone give me the link? A3Library is not needed anymore. All it's functionality is in standard UDFs. Use #include <GuiListView.au3> and change function calls accordingly: $sIconText = _ListView_GetItemText( $hWnd_LV, $nIdx ) $aPos = _ListView_GetItemPosition( $hWnd_LV, $nIdx ) IniWrite( $sINI, "Icons", $sIconText, $aPos[0] & ";" & $aPos[1] ) Next $sIconText = _GUICtrlListView_GetItemText( $hWnd_LV, $nIdx ) $aPos = _GUICtrlListView_GetItemPosition( $hWnd_LV, $nIdx ) IniWrite( $sINI, "Icons", $sIconText, $aPos[0] & ";" & $aPos[1] ) Next EDIT: fixed missing _ Edited August 30, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
oMBRa Posted August 30, 2008 Author Share Posted August 30, 2008 (edited) A3Library is not needed anymore. All it's functionality is in standard UDFs. Use #include <GuiListView.au3> and change function calls accordingly: CODE $sIconText = _ListView_GetItemText( $hWnd_LV, $nIdx ) $aPos = _ListView_GetItemPosition( $hWnd_LV, $nIdx ) IniWrite( $sINI, "Icons", $sIconText, $aPos[0] & ";" & $aPos[1] ) Next CODE $sIconText = GUICtrlListView_GetItemText( $hWnd_LV, $nIdx ) $aPos = GUICtrlListView_GetItemPosition( $hWnd_LV, $nIdx ) IniWrite( $sINI, "Icons", $sIconText, $aPos[0] & ";" & $aPos[1] ) Next does those function work also to clicking icon on deksktop? EDITED: Yes they works... ok resolved Edited August 30, 2008 by oMBra Link to comment Share on other sites More sharing options...
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