 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Adde_P
Joined: 04 Jun 2006 Posts: 187 Location: Sweden
|
Posted: Mon May 05, 2008 3:50 pm Post subject: BasicDock |
|
|
Well I started this project because I was bored and finished it while being bored.
Anyway the reason I used the name BasicDock is the fact that its very basic.
I'll upload some screens when I have the time...
Anyway Download it and try it out
Psst! Working on a rewrite
Please report any bugs you find
Note: I'm trying to fix the bug that makes the icons show up only after you added 2 or more icons
Changelog:
V 1.0.0.0 was never released.
V 1.0.0.1 Initial release
V 1.0.0.1 Fixed a few bugs in the gui system
V 1.0.0.2 Fixed the error and eliminated the need a reload
V 1.0.0.3 small and large bug fixes (Thanks to some people for pointing them out )
V 1.0.0.4 (Thanks to infogulch for helping me with the tooltip)
V 1.0.0.5 Added some features
V 1.0.0.6-1.0.0.8 Bugfixes... _________________

Last edited by Adde_P on Tue May 27, 2008 6:49 pm; edited 13 times in total |
|
| Back to top |
|
 |
infogulch
Joined: 27 Mar 2008 Posts: 103 Location: KC, MO
|
Posted: Mon May 05, 2008 4:57 pm Post subject: |
|
|
I found a bug: the link takes you to the File Manager web page instead of the script itself.
 _________________

Last edited by infogulch on Mon May 05, 2008 5:41 pm; edited 1 time in total |
|
| Back to top |
|
 |
Adde_P
Joined: 04 Jun 2006 Posts: 187 Location: Sweden
|
Posted: Mon May 05, 2008 5:30 pm Post subject: |
|
|
Sorry im a bit tired
Gonna Edit the first post
EDIT:
Now it should work _________________
 |
|
| Back to top |
|
 |
wygd
Joined: 04 Nov 2007 Posts: 5
|
Posted: Tue May 06, 2008 2:24 am Post subject: |
|
|
When I drag the lnk to the Gui,It can work.But I use the button to slect the file,It can't work.
| Code: |
Browse:
FileSelectFile,FTA
GuiControl,, Path, %FTA%
Return
|
2.After I click the close button,I click again "add an Application".It will have a Error. |
|
| Back to top |
|
 |
Adde_P
Joined: 04 Jun 2006 Posts: 187 Location: Sweden
|
Posted: Tue May 06, 2008 9:30 am Post subject: |
|
|
Seems like I accidentally uploaded the wrong one
My bad Fixed now _________________
 |
|
| Back to top |
|
 |
Adde_P
Joined: 04 Jun 2006 Posts: 187 Location: Sweden
|
Posted: Tue May 06, 2008 3:51 pm Post subject: |
|
|
Those who use this script (if any please redownload the script as I fixed lots of smaller errors) _________________
 |
|
| Back to top |
|
 |
infogulch
Joined: 27 Mar 2008 Posts: 103 Location: KC, MO
|
Posted: Tue May 06, 2008 4:12 pm Post subject: |
|
|
This is cool! Thnx!
I had trouble with the ToolTip flashing though. May I suggest?: | Code: | GetMouseStats:
MouseGetPos, X,Y,W,C ;This is used to show the ToolTip
If (sX = X) AND (sY = Y)
return
IfInString, C, Static
{
If (X >= %GuiA% or X <= %GuiB%)
{
If (Y < 48)
{
StringTrimLeft,C,C,6
Msg := AppPath%C%
ToolTip, %Msg%
sX := X
sY := Y
}
}
}
Else
ToolTip
Return | It returns if the mouse hasn't moved, and turns off the tooltip using else instead of another timer.  _________________
 |
|
| Back to top |
|
 |
Adde_P
Joined: 04 Jun 2006 Posts: 187 Location: Sweden
|
Posted: Tue May 06, 2008 4:14 pm Post subject: |
|
|
Hmm That I didn't figure that one out by myself...
Might have something to do with me not paying attention to the tooltip
Anyway once again infogulch  _________________
 |
|
| Back to top |
|
 |
infogulch
Joined: 27 Mar 2008 Posts: 103 Location: KC, MO
|
Posted: Tue May 06, 2008 8:24 pm Post subject: |
|
|
Hi,
I made it so it fades out in 3 seconds if you don't have your mouse over it, and to pull it back up, move the mouse to the top 5 pixels of where the dock lies underneath.
| Code: | ;For the fade out of the dock, you'll need to comment or remove this line at the top:
;#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;I suggest using the window id instead of the title in case of the rare instance where there
; are 2 windows of the same title. Add this after the loop that puts pictures in the gui:
; (~line 57 for me. I don't think I changed any lines above that)
Gui, 3: +LastFoundExist
WID := "ahk_id " . WinExist()
OverGui := A_TickCount
Faded = 0
;Instead of refrencing %W% use %WID%. This includes the "ahk_id" part, so no need to add it yourself
;Since it returns if the mouse hasn't moved you need to change the StartApp a tiny bit: (just noticed this :P)
StartApp:
Loop, Parse, AppPath%CRun%, |," ;"
Run := A_LoopField
Run,%Run%
Return
;The meat:
;Notice that the tooltips are all some weird number so it doesn't prevent all regular tooltips :P
GetMouseStats:
MouseGetPos, X,Y,W,C ;This is used to show the ToolTip
If (sX = X) AND (sY = Y) ;Cancel if the mouse hasn't moved
return
If Y < 48 ;I had to reorder all of the ifs
{
If X between %GuiA% and %GuiB% ;If var between is easier
{
OverGui := A_TickCount ;save the current time
If Y < 5 ;activate the gui if it's within 5px of the top
{
WinSet, AlwaysOnTop, On, %WID% ;move it to the top
Faded = 0
}
IfInString, C, Static
{
StringTrimLeft, CRun, C, 6
Msg := AppPath%CRun%
ToolTip, %Msg%,,, 11
sX := X
sY := Y
}
Else
ToolTip ,,,, 11
}
Else
ToolTip, ,,,11
}
Else
ToolTip, ,,,11
If (Faded = 0) AND (A_TickCount-OverGui > 3000)
{
FadeOut(WID, Alpha)
WinSet, AlwaysOnTop, Off, %WID%
WinSet, Bottom,, %WID%
WinSet, Transparent, %Alpha%, %WID%
Faded = 1
}
Return |
Sry Adde_P, I just can't help myself
Hope you like it  _________________
 |
|
| Back to top |
|
 |
Adde_P
Joined: 04 Jun 2006 Posts: 187 Location: Sweden
|
Posted: Tue May 06, 2008 8:30 pm Post subject: |
|
|
are you trying to alter whole my script ?
I'll take look at it anyway infogulch
But I don't know if It'll be of use to me since im trying to make it use GDI+ because I want flashy effects  _________________
 |
|
| Back to top |
|
 |
infogulch
Joined: 27 Mar 2008 Posts: 103 Location: KC, MO
|
Posted: Tue May 06, 2008 9:19 pm Post subject: |
|
|
Sorry . . .
Thnx for looking tho.
Well imo, fading out and appearing when you want it sounds pretty flashy to me
Feature idea: right click context menu to remove an item or to move an item right or left. (I'll tell you this time ) and maybe a separator (like a menu separator, except vertical)
Thanks again for making this, it's really cool.  _________________
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|