AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Moving Icons on the Desktop

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Wed Mar 01, 2006 1:17 am    Post subject: Moving Icons on the Desktop Reply with quote

Hi,

is it possible to move Icons on the Desktop or to place a Shortcut at a specified position?

I've found that the positions are stored as binary data at:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop

But altering the data does not have any effect.
_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Wed Mar 01, 2006 12:24 pm    Post subject: Reply with quote

Did you tried the different strategies exposed in another topic to refresh the desktop?
You can also try to minimize all windows, and drag'n'drop the icons...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Wed Mar 01, 2006 12:33 pm    Post subject: Reply with quote

Hi,

thanks for the idea with the refresh. Another problem is to modify the binary data. Moving with drag'n'drop is not reliable enough.
_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
shimanov



Joined: 25 Sep 2005
Posts: 612

PostPosted: Wed Mar 01, 2006 5:45 pm    Post subject: Reply with quote

Try this:

1. move any existing icon from the top-left position; otherwise, every icon in a contiguous position will be shifted.
2. run the following script

note: LVM_SETITEMPOSITION is valid with icon or small icon views only

Code:
x = 0
y = 0

; LVM_SETITEMPOSITION
SendMessage, 0x1000+15, 0, ( y << 16 )|x, SysListView321, Program Manager ahk_class Progman
Back to top
View user's profile Send private message
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Wed Mar 01, 2006 6:00 pm    Post subject: Reply with quote

Hey Shimanov!

Thanks for the great hint.

With
Code:
ControlGet, IconList, List, , SysListView321, Program Manager ahk_class Progman
Loop, Parse, IconList, `n

it's possible to get the index-number, so I can tell which icon to move.

Thanks, Thanks ... Thanks ...
_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
evl



Joined: 24 Aug 2005
Posts: 1238

PostPosted: Wed Mar 01, 2006 6:10 pm    Post subject: Reply with quote

Interesting solutions.

@ Tekl: What are you planning on developing from this? Some kind of desktop management script?
Back to top
View user's profile Send private message
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Wed Mar 01, 2006 9:39 pm    Post subject: Reply with quote

Hi evl,

I'm trying to write a script that automatically shows mounted volumes as icons on the desktop like mac os x does.
_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
kapege.de



Joined: 07 Feb 2005
Posts: 186
Location: Munich, Germany

PostPosted: Thu Mar 02, 2006 12:04 pm    Post subject: Reply with quote

Tekl wrote:
Hi evl,

I'm trying to write a script that automatically shows mounted volumes as icons on the desktop like mac os x does.

Sounds cool! And please put it in the script-section afterwards. That's a great idea, because I'm plugging/unplugging my Cardreader/Ext.Harddisk often and fresh icons @ the desktop is quite handy.
_________________
Peter

Wisenheiming for beginners: KaPeGe (German only, sorry)
Back to top
View user's profile Send private message Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Thu Mar 02, 2006 1:48 pm    Post subject: Reply with quote

Hi,

it will be an extension for ac'tivAid and no standalone-script:

http://www.heise.de/ct/ftp/05/22/210/
_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
TheLeO



Joined: 11 Jun 2005
Posts: 160
Location: England ish

PostPosted: Thu Mar 02, 2006 10:30 pm    Post subject: Reply with quote

O.O!!!!!!

wOOOOOOOOOoooowwW...

seriously... how long did you spend on this?
_________________
And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
::
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Thu Mar 02, 2006 11:45 pm    Post subject: Reply with quote

I've stopped counting. I started one year ago.
_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group