Jump to content

Recommended Posts

Posted

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])
Posted (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 by Zedna
Posted (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 by oMBra

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
×
×
  • Create New...