| View previous topic :: View next topic |
| Author |
Message |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Wed Mar 01, 2006 1:17 am Post subject: Moving Icons on the Desktop |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Mar 01, 2006 12:24 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Wed Mar 01, 2006 12:33 pm Post subject: |
|
|
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 |
|
 |
shimanov
Joined: 25 Sep 2005 Posts: 612
|
Posted: Wed Mar 01, 2006 5:45 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Wed Mar 01, 2006 6:00 pm Post subject: |
|
|
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 |
|
 |
evl
Joined: 24 Aug 2005 Posts: 1238
|
Posted: Wed Mar 01, 2006 6:10 pm Post subject: |
|
|
Interesting solutions.
@ Tekl: What are you planning on developing from this? Some kind of desktop management script? |
|
| Back to top |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Wed Mar 01, 2006 9:39 pm Post subject: |
|
|
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 |
|
 |
kapege.de
Joined: 07 Feb 2005 Posts: 186 Location: Munich, Germany
|
Posted: Thu Mar 02, 2006 12:04 pm Post subject: |
|
|
| 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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
|
| Back to top |
|
 |
TheLeO
Joined: 11 Jun 2005 Posts: 160 Location: England ish
|
Posted: Thu Mar 02, 2006 10:30 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Thu Mar 02, 2006 11:45 pm Post subject: |
|
|
I've stopped counting. I started one year ago. _________________ Tekl |
|
| Back to top |
|
 |
|