Jump to content

Click an icon on the dekstop


oMBRa
 Share

Recommended Posts

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])
Link to comment
Share on other sites

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 by Zedna
Link to comment
Share on other sites

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