Jump to content


Photo

arDock - an application dock written in AHK (v0.9.1 beta)


  • Please log in to reply
21 replies to this topic

#1 adamrgolf

adamrgolf
  • Members
  • 440 posts

Posted 01 October 2008 - 09:15 AM

I wanted to start a new project in AHK. I decided to write a simple dock program, even though there are other ones out there, even one Adde started in AHK.
I'm sure you all know how it is, its simply fun to write something from scratch yourself, if you have the time to kill.

So I introduce arDock, which is probably a temporary name for now since all of my projects start off with 'ar' then something.

Posted Image

Features:

Functionality:
[*:w0ehaj9g]Drag and drop shortcuts/executables/folders* to the dock
[*:w0ehaj9g]Rearrange & rename existing dock icons
[*:w0ehaj9g]Drag an icon off the dock to delete.* Known issue with folders names that include dots/periods.

Appearance:
[*:w0ehaj9g]Ability to manipulate how the dock looks (color, shape, etc)
[*:w0ehaj9g]Change the size of the icons as well as their padding.
[*:w0ehaj9g]Snap to edges of screen.To Implement / To Do:
[*:w0ehaj9g]A vertical option, as it stands now the dock only functions in a horizontal layout
[*:w0ehaj9g]Ability to handle other types of file types (ex. images)
[*:w0ehaj9g]Groups (ex. a single icon for a set of icons -- like an office suite)
[*:w0ehaj9g]Separators!
[*:w0ehaj9g]Clean up the code! It needs it bad
[*:w0ehaj9g]Create a program Icon
[*:w0ehaj9g]Use system32.dll instead of folder.ico for folder iconThere is more info, such as to-dos, commented at the top of the source.

The above lists may only list some of the main points for that topic. Try out the program for yourself to see more!

This is a work in progress! If you use the code and improve on something, please let me know! Also let me know if you have any opinions or suggestions.

Updated 10-02-2008 to v0.9.1 beta
-Fixes Vista issue with captions / disappearing icons noted here. (thanks netfun81)

Download (v0.9.1 beta):
[*:w0ehaj9g]Source (.txt)
[*:w0ehaj9g]Download (.exe)
[*:w0ehaj9g]Folder.ico
[*:w0ehaj9g]Circle.bmp

#2 Chavez

Chavez
  • Members
  • 256 posts

Posted 01 October 2008 - 10:54 AM

Haven't tried it but it sure looks like a marvelous script. Nice job Adam.

#3 adamrgolf

adamrgolf
  • Members
  • 440 posts

Posted 01 October 2008 - 11:09 AM

Haven't tried it but it sure looks like a marvelous script. Nice job Adam.


Thank you Chavez. If/when you do get a chance to try out the actual program, please let me know what you think :)

#4 netfun81

netfun81
  • Members
  • 58 posts

Posted 01 October 2008 - 08:19 PM

Nice script! Im trying it on Vista and see a couple issues

1. The icons disappear when you hover over them if show captions is enabled.

2. I see an option to choose color, but it just shows a live preview option and nothing to select color. So red it is :}

will update if I run into anything else...

#5 Fry

Fry
  • Members
  • 885 posts

Posted 01 October 2008 - 08:24 PM

This is an awsome script, one of my favorites.

Very good, please continue producing this and updating it

#6 adamrgolf

adamrgolf
  • Members
  • 440 posts

Posted 01 October 2008 - 11:46 PM

1. The icons disappear when you hover over them if show captions is enabled [on Vista].


I will try this out on a Vista machine tonight and see if I can fix this issue :)

2. I see an option to choose color, but it just shows a live preview option and nothing to select color. So red it is :}


This is probably because you are running just the script. The .exe has the "circle.bmp" file included. If you don't want to use the .exe just download the circle.bmp and put it in %appdata%\arDock\circle.bmp -- That is the image it uses to chose the color :). I am going to add a feature to choose a color from anywhere on the screen, but thats later.

Thanks for the info! And please let me know if you have any other input. Its much appreciated.

Very good, please continue producing this and updating it


Thank you Fry, I do plan to actively update the script. I will keep this forum updated! :)

Adam

#7 netfun81

netfun81
  • Members
  • 58 posts

Posted 02 October 2008 - 05:46 AM

Thanks Adam! I downloaded the .exe and it fixed the color bmp issue.

#8 adamrgolf

adamrgolf
  • Members
  • 440 posts

Posted 02 October 2008 - 05:49 AM

The icons disappear when you hover over them if show captions is enabled

I've fixed this bug. The problem with Vista was when the tooltip was moved to follow the mouse when captions were turned on. Not sure why it caused the icon's to disappear.

I've updated my original post with the new version and information.

Thanks!

#9 Fry

Fry
  • Members
  • 885 posts

Posted 03 October 2008 - 09:16 PM

Any idea when next version?

#10 Fry

Fry
  • Members
  • 885 posts

Posted 04 October 2008 - 05:00 PM

I have an error,

If I select show caption wait till an icon enlarges and
move my mouse out of the window, not putting my mouse over that icon the tooltip stays.

Heres a pic, An IE window

Posted Image

#11 adamrgolf

adamrgolf
  • Members
  • 440 posts

Posted 06 October 2008 - 05:45 AM

Fry, I'm not able to reproduce that error. Could you include a bit more detail perhaps and include a screen shot with the dock itself so I can better understand how this is happening?

Thanks!

Adam

#12 Guests

  • Guests

Posted 06 October 2008 - 09:18 PM

Heres a video, hope it helps

<!-- m -->http://s393.photobuc... ... =Error.flv<!-- m -->

#13 Fry

Fry
  • Members
  • 885 posts

Posted 06 October 2008 - 09:22 PM

^^ Me, sorry bout that.

#14 adamrgolf

adamrgolf
  • Members
  • 440 posts

Posted 07 October 2008 - 12:55 PM

Fry, I'll update the first post later when I get back to work (i left the latest source there). Until then if you'd like to fix this yourself, try replacing the following function. Note the change in red.

Around line 470:

MakeAllSmall() {
	Global
	Critical
	[color=red]Tooltip,[/color]
	WinGet,arControls,ControlList,%Main_Title%
	Loop,Parse,arControls,`n
		MakeSmall(A_LoopField)
}

There still seems to be a bit of a delay clearing the tooltip when the mouse leaves the window when an icon is large. I'm not sure if this is only in Vista or not, but I will look into that more later :).

#15 Fry

Fry
  • Members
  • 885 posts

Posted 07 October 2008 - 10:09 PM

I do not have vista