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 

DeskMan: Window-Manager, Expose-Clone, miniMIZE, V-Desk
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  

Did you Try Deskman, and did it work
Yes, nice app, i like it (works good)
33%
 33%  [ 2 ]
Tried it but deleted it fast (does not work for me)
50%
 50%  [ 3 ]
Dont like it
16%
 16%  [ 1 ]
Total Votes : 6

Author Message
Guest






PostPosted: Wed Mar 15, 2006 11:32 pm    Post subject: Reply with quote

@toralf: this is great Wink now i understand what you mean. i didnt figure out yet how this g-label and v-label (or similar) exactly work.

this now reduces my redundant functions into one line, i will use your suggestion to link the picture directly to the restore function.

now this is similar to an onclick function in html

Code:

... gRestoreWin vPic2 ...

RestoreWin:
   .. pos ... A_GuiControl..
   ...
Return


is fairly similar to (html/javascript)
Code:

<img onclick="RestoreWin(this)" id="Pic2" />

<script lanuage="javascript">
function RestoreWin( A_GuiControl ) {
   pos = A_GuiControl.id ;
...
}
</script>


its not the same, but this way i understand it Wink
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3906
Location: Bremen, Germany

PostPosted: Thu Mar 16, 2006 10:22 am    Post subject: Reply with quote

What editor are you using? Just curious.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Thu Mar 16, 2006 11:22 am    Post subject: Reply with quote

toralf wrote:
What editor are you using? Just curious.


i use Editplus2 ( for years ) mainly because of the highlight colors which i like, and as its superfast and stable.
after a while i found in the forum that the syntax-file for editplus is in the AHK-program directory. and i tried to download them from the website or the forum and didnt find it *newby*

For work i do alot of PHP-Programming and there i use ZEND (ZDE) and there is nothing which comes close in the moment. I dont like that its java based, but the intellisense and debugging are quite perfect Wink
Back to top
View user's profile Send private message Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Thu Mar 16, 2006 11:36 am    Post subject: Reply with quote

So after Applying the Suggestion with the Pics, i even changed the code more. and now i have quite perfect automatic refresh of the thumbnails.
(it detects when new windows are opend, when they are closed. when the window-title changes the thumbnail is "shot" again, so you have a quite realistic view in your deskman-dock all the time, pics are cached as much as possible to do as little screenshots (which is not so fast) as needed.

as the dock is now showing the running tasks in the stack-order on your desktop. the first window is always your active window. and the second your last. this means clicking on the second tab is an exact "alt-tab" (never thought of it this way before)

the script uses now the effect that the active window is in front simpy takes new thumbnails when needed and dont need to activate windows any more.

the win-resize is changed to win-left,right, up,down for making it half
and win-pgdn to send it to bottom (minimize) and win-pgup for maximize (without dock) i guess this key-kombo is relativ intitive.

as the code changed a lot and i want to keep the old version as a history for examples i post the new version again, perhaps i restructure it later so i dont mess up the forum so much. (or i could move it to the wiki ?)

removed, only for history: (better use script on Post-#1)
DeskMan_v0.2.ahk

...
the next steps now would be to move the config into an .ini file
then make some use of the tray-icon to change some of the settings in the ini-file. most important will be to choose the orientation and position of the dock (left-right-bottom-top) and it has to find where the taskbar is and its size.
is there an easy way to get the position and size of the taskbar.
Win-Spy told me i can find the information in the "active window position" of the taskbar (Shell_TrayWnd)


Last edited by holomind on Sat Mar 18, 2006 11:59 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
evl



Joined: 24 Aug 2005
Posts: 1234

PostPosted: Thu Mar 16, 2006 12:03 pm    Post subject: Reply with quote

Size and position of the taskbar:

Code:

WinGetPos, X, Y, Width, Height, ahk_class Shell_TrayWnd
msgbox, %  Width " - " Height " - " X " - " Y


Be careful about the values since parts of the window are positioned off-screen by 2 pixels (like maximised windows) to hide the window borders (I presume).
Back to top
View user's profile Send private message
Me
Guest





PostPosted: Thu Mar 16, 2006 4:28 pm    Post subject: Reply with quote

holomind wrote:
The next steps now would be to move the config into an .ini file
then make some use of the tray-icon to change some of the settings in the ini-file.

You may want to take a look at the way Skrommel creates an ini file if there isn't one available. It removes the need to ship an extra file, and it provides first time users with default values.
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3906
Location: Bremen, Germany

PostPosted: Thu Mar 16, 2006 4:37 pm    Post subject: Reply with quote

That (ini files) is pretty easy to do. IniRead offers the ability to specify a default value if the file or the value do not exist.

Some comments on the code:

Your hotkeys only perform one action or call a function. So I guess they could be written in one line without the return. But I would keep you from removing it, since this will allow later to change the hotkeys in an Options Dialog.

I would simplify the About to:
Code:
ABOUT:
   about=
     (LTrim
        DeskMan
        `nControl all your Windows, similar to Apple-Dock but different ;)
        `n`nThis program uses IrFanView by Irfan Skiljan.
        `nHolomind @2006   
        (based on) Skrommel @2006    www.donationcoders.com/skrommel
     )
   MsgBox,0,DeskMan,%about%
Return
It is easier to maintain. :)
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Sat Mar 18, 2006 3:09 pm    Post subject: Reply with quote

evl wrote:

WinGetPos, X, Y, Width, Height, ahk_class Shell_TrayWnd


very easy one liner, like i like it Wink
i am doing the autodetect for taskbar and even try to put it "inside" the toolbar like other taskbar tools, but i dont know if this is realy good. or i should keep them separate. on the other hand it would be better integrated and better use of screenspace... let see, i will make it as a flag in the config so i can switch to panel or taskbar mode Wink
Back to top
View user's profile Send private message Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Sat Mar 18, 2006 3:15 pm    Post subject: Reply with quote

Me wrote:
You may want to take a look at the way Skrommel ...


this is funny because the sript is based on the multimonitor tool from skrommel, he should have put an ini-config into this tool also Wink i also found some nice examples of manipulating inifiles in the forum.

my question is how to manipulate it best.
a) have this ini (textfile) and change it with notepad... easy but not so professioal
b) do it all in the traybar with menus ? minimal interface but good enough ?
c) have an option window (gui) where you can add some values ...

hmm, i guess c) would be best but needs more arragement of the gui (which will be easy with guibuilder but needs some work though (a is easier Wink
using b to change orientation ? top-left-bottom-right ?
less config ist better ? so why not attach it to or in the taskbar. (perhaps the user should decide and not the programmer?)
Back to top
View user's profile Send private message Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Sat Mar 18, 2006 3:16 pm    Post subject: Reply with quote

toralf wrote:

I would simplify the About to: ...


you should tell this to skrommel also , the code is from him Wink
Back to top
View user's profile Send private message Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3906
Location: Bremen, Germany

PostPosted: Sat Mar 18, 2006 3:18 pm    Post subject: Reply with quote

start with a)
c) can be add later easily. (And you know which parameters the user really can change)
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Sun Mar 19, 2006 12:03 am    Post subject: Reply with quote

Major Changes, now its going from Beta to RC1 Wink

=> read the update Post-#1

optimized and tweaked a lot pieces. generel functions are the same but its in the details:

* new hotkeys for resizing windows, and alt-tab replace
* autodetect of taskbarposition
* possible to have the dock inside (or better "over") the taskbar
* configs are now in ini-file
* exe on download page for easy try
* thumbnails get refreshed when title changes

Have Fun, AHK is addictive Wink
Back to top
View user's profile Send private message Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Sun Mar 19, 2006 12:39 am    Post subject: Reply with quote

Example Config for the arrangement of the first screenshot.
make your taskbar on the right side of the screen with width=100px (or how much screensize/maxthumbs is in your case) also lock the taskbar so you have less borders.

the ini file in the souce-script is not so advanced, but should you get running without problems.

for more advanced display (dock inside the taskbar) you have to tweak the sizes in the ini-file until it fits for you.

the "transparent" effect is achieved by resizing the dock to its contents and position it correctly. the "real" transparency does not work for me as some of the thumbnails get transparent and look bad. perhaps a side-effect of s.gif as i start the Pic with gif and following replaces are transformed to gif ?)

I also tried to make the Dock a child-window of the taskbar (see comments in script) but this didnt work and cause many crashes of autohotscript, in combination of not exact positioning in taskbar.

here is my current ini file:

Code:

[Settings]
maxthumbs=14
work_border=4
dock_border=0
repainttimer=1000
forcedocktofront=0
forcedocktransparent=1
insidetaskbar=1
insidetaskbar_x0=70
insidetaskbar_y0=30
insidetaskbar_xf=200
insidetaskbar_yf=200
Back to top
View user's profile Send private message Visit poster's website
holomind



Joined: 11 Mar 2006
Posts: 323
Location: Munich, Germany

PostPosted: Sun Jun 25, 2006 10:41 pm    Post subject: Reply with quote

Deskman is updated, with new Titlebars on thumbnails and some new hotkeys and features, eg. fullscreenmode or papersize for reading without distraction.
Back to top
View user's profile Send private message Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 4515
Location: Boulder, CO

PostPosted: Mon Jun 26, 2006 12:13 am    Post subject: Reply with quote

I somehow missed this nice collection of tools. Thanks for sharing it! (I noticed that you closed the ballot, so I cannot cast my vote any more.) There are so much stuff here, it takes hours just to try them out!

Since English keyboards don't have AltGr keys, and left-control with right-alt is just torturing our fingers, the first thing we have to do is re-assign hotkeys. Why don't you list them in the ini file, so there will be less chance to screw up the code?

Also, the location of IrfanView and 320mph belongs to the ini file.

People would experiment with lighter heart if the script saved the layout of all the windows, and at exit everything would be restored.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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