Jump to content
Sign in to follow this  
oMBRa

Click an icon on the dekstop

Recommended Posts

oMBRa

How to click an icon on the desktop without using MouseClick? ( so without moving the mouse )

Share this post


Link to post
Share on other sites
ChrisL

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])

Share this post


Link to post
Share on other sites
oMBRa

I cant find A3LListView.au3... can someone give me the link?

Share this post


Link to post
Share on other sites
Andreik

I cant find A3LListView.au3... can someone give me the link?

Download:

When the words fail... music speaks

Share this post


Link to post
Share on other sites
oMBRa

Now I need

A3LHeader.au3

A3LMemory.au3

Share this post


Link to post
Share on other sites
Andreik

Install Auto3Lib.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
Andreik

where can I find it?

Here

But I suggest to install in other folder than AutoIt because is for old version of AutoIt.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
oMBRa

andreik I downlaoded Auto3Lib and it requires the 3.2.4.8 version of autoit but I have 3.2.12.1

Share this post


Link to post
Share on other sites
Andreik

andreik I downlaoded Auto3Lib and it requires the 3.2.4.8 version of autoit but I have 3.2.12.1

I uploaded all files from Auto3Lib

Download


When the words fail... music speaks

Share this post


Link to post
Share on other sites
Zedna

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

Share this post


Link to post
Share on other sites
oMBRa

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.