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 

Trillian corner-collapse script

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Dewi Morgan



Joined: 03 Oct 2005
Posts: 178

PostPosted: Sun Jul 16, 2006 11:59 pm    Post subject: Trillian corner-collapse script Reply with quote

Posted this to the trillian forums:
Quote:
One of the coolest windows-automation programs I've found in a long time is AutoHotKey.

Here's a cool little AHK script that overcomes a real irritation I've found with trillian: it collapses to the edge of the screen, not to the corner. That's one heck of a lot of screen real-estate it's gobbling up!

You will need autohotkey for this: Autohotkey.com.

The script makes it collapse to the top-left corner (because that will have the same coordinates on everyone's screen, no matter what the resolution, so it should work for you).

To make this work, you will need to set trillian to toggle the contact list on ctrl-shift-alt-F11.

To do this, rightclick the Trillian tooltray(*) icon -> preferences -> advanced preferences -> automation -> add -> event type = "hotkey" -> "next key typed" -> (hit F11) -> check the checkboxes for ctrl, alt and shift -> action type = "Program action" -> program action = "Contact list: toggle visible".

(* "'Tooltray' is the wrong term, and it should be notification area!" I hear you cry. Tough. Microsoft lost the battle gainst commnon usage a long time ago. Nobody has any idea what the "notification area" is)

Then in the contact list window, click View -> Docking -> Turn Off (if the option says "Turn On", leave it alone).

(If the contact list is invisible after you click that option, rightclick the tooltray icon and click "show contact list". If it's still invisible, this is a Trillian bug - hit alt-space to bring up the window menu, click "move", and move it with your cursor keys unti it is on the screen.)

Drag the contact list to the top left corner of the screen, and hide it.

OK, now you're ready to install the script.

Create the following as a .ahk file called something like "TrillianHiding.ahk" and doubleclick on it:

Code:

Loop
{
  coordmode mouse, screen
  MouseGetPos xpos, ypos
  if ( xpos < 2 && ypos < 2  )
  {
    SendInput !+^{F11}
    MouseMove 5, 5, 0, R
    WinWaitNotActive Trillian
    SendInput !+^{F11}
  }
  sleep 1000
}


Hope this helps someone - for me, it has saved a great deal of swearing when I move my mouse to the left of the screen!


[edit: fixed typo xpoz -> xpos.
_________________
Yet another hotkeyer.
Back to top
View user's profile Send private message
Laughing Man



Joined: 29 Apr 2005
Posts: 84
Location: Maryland

PostPosted: Sat Jul 22, 2006 3:03 am    Post subject: Reply with quote

I'm not sure what this exactly does..It toggles to show your contact list if your mouse are at those coordinates?
_________________
"I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC
Back to top
View user's profile Send private message Yahoo Messenger
Dumbo
Guest





PostPosted: Sat Jul 22, 2006 10:49 am    Post subject: Reply with quote

Compile your script with ahk2exe and the Trillian user will be able to use your script without AHK, if the want to...
Back to top
Dewi Morgan



Joined: 03 Oct 2005
Posts: 178

PostPosted: Sun Jul 23, 2006 10:30 pm    Post subject: Reply with quote

At the moment Trillian has a "docking" thing where it can "hide" off the edge of your screen, and will appear when you move your mouse against the side, and hide when you move away again - like the windows start menu can be "hidden".

I find it incredibly annoying to have an entire edge of my screen taken up with a single application. The edge, to me, is a thing that you whack the pointer against in order to more rapidly acquire targets near the edge, such as folders in Explorer's tree view.

So this script shows the contact list when you move the mouse to the corner. It also hides the contact list when something else gets focus.

I could write it to act more like the "real" version, and have another polling loop to hide the list when the mouse goes off the window... but hiding on loss of focus is, to me, nicer.
_________________
Yet another hotkeyer.
Back to top
View user's profile Send private message
Laughing Man



Joined: 29 Apr 2005
Posts: 84
Location: Maryland

PostPosted: Thu Jul 27, 2006 1:01 am    Post subject: Reply with quote

Ah I see now. Well kudos. Smile

I was a bit confused cause my Trillian doesn't do what you were talking about in your first post. (Though I have it set so it toggles from visible/hide) with a press on my logitech keyboard.

Guess it has to do with the autohide and the docking. But yeah I can see how that'd be annoying.
_________________
"I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
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