deviant art





Login
Join deviantART for FREE Take the Tour Lost Password?
Deviant Login
Shop
 Join deviantART for FREE Take the Tour
About Me Deviant Member sw2Male/United States Recent Activity
Deviant for 7 Years
Needs Premium Membership
Statistics 2 Deviations 23 Comments 2,157 Pageviews

deviantID

sw2's Profile Picture
~sw2
JC
United States

AdCast - Ads from the Community

[x]

Comments


:icon:
Add a Comment:
 
:iconbourbons3:
A random :wave: from a random deviant! :)
Reply
:iconspazpunt:
hey buddy your code just got featured o lifehacker!!!!
Reply
:iconsw2:
I saw that too! ;)
Reply
:iconspazpunt:
Hey buddy, I am posting your script as the most awesome scripts made in autohotkey!!!!
Reply
:iconsw2:
Glad you find it useful. And thanks for helping to spread the words! :)
Reply
:iconspazpunt:
Hey buddy u helped me so much
That's the least I can do.

by the way


Could you please Mr.expert of autohotkey help me out? I just had an idea for the dodge on focus effect that compiz has and this may be of interest.But I need your help as I am not very good at programming

If you run , the script your will find that each windows gets a consequtive number. the upper most one being 3. now let's say you click on the window with title 5,is it possible to make a script to move windows 3 and 4 , then make window n5 active?

I look for the sliding effect that compiz had and saw 2 excellent post tht might help us out check these two post:

[link]
[link]

the first one got the slide effect of compiz and the second one has the awsome glide effect complete with gravity and inertia!!!!


Combining the 3 scripts will possibly give us the cool dodge on focus effect of compiz fusion!!!! Wink Wink



to set a title to for eg. n1, n2 etc. I think.


WinGet, id, list,,, Program Manager
Loop, %id%
{
this_id := id%A_Index%
WinActivate, ahk_id %this_id%
WinGetClass, this_class, ahk_id %this_id%
WinSetTitle,ahk_id %this_id%,, n%a_index%
WinGetTitle, this_title, ahk_id %this_id%

MsgBox, 4, , Visiting All Windows`n%a_index% of %id%`nahk_id %this_id%`nahk_class %this_class%`n%this_title%`n`nContinue?
IfMsgBox, NO, break
}
Reply
:iconspazpunt:
never mind, got a better script
Reply
:iconspazpunt:
I so badly want to be a programmer for at least Autohotkey to create cool stuff as well.
In fact I was thinking about how to do the dodge effect in windows with Autohotkey

I thought that it may be possible as a beginning to move the active windows up while the other inactive windows will be moved down or to the side
for e.g. winlist may list all the windows, the one with the even number such as window 2 and 4 may move to the left, while the odds to the right and the one which is initially inactive but then becomes activated moves up then to the front.

there are 2 possibilities:
either to move the windows as they are
or to resive the windows i.e the windows with the even numbers amy have there left side resize and move to the right then move back to their original size again.

I also thought about the Shift Switcher in compiz and thought that this may as well be implemented in windows by using Madotate, a black windows background and this something similar to ireflector([link]). since madotate shows live windows previews it will not have a flaw with windows media player winamp etc.

Please tell me about your thought!!!!
I only wish I knew more about autohotkey so that I could try to write a standalone script for it.
Reply
:iconsw2:
IMHO, Autohotkey is probably less than ideal for those animation effects. Here's a related post from the Autohotkey forum: [link]

(A portion of my script also came from someone else's code I found at the forum. :))
Reply
:iconspazpunt:
Can you please help me?
I do not know how to put the loop infinitely?
i tried to put the loop{ b4 the code and }after the code to no avail.
Code:

WinGetPos,,,Xmax,Ymax,ahk_class Progman

watchMouse:
CoordMode, Mouse, Screen
MouseGetPos, MouseX
T = 10
if (MouseX > Xmax - T)
{
Winshow ,ahk_class SideBar_AppBarWindow
}
else if (MouseX < Xmax - T)
{
Winhide ,ahk_class SideBar_AppBarWindow
}
Reply
:icon:
Add a Comment: