AutoHotkey Community

It is currently May 27th, 2012, 8:51 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: July 16th, 2006, 11:59 pm 
Offline

Joined: October 3rd, 2005, 2:42 am
Posts: 186
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2006, 3:03 am 
Offline

Joined: April 29th, 2005, 12:14 am
Posts: 84
Location: Maryland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2006, 10:49 am 
Compile your script with ahk2exe and the Trillian user will be able to use your script without AHK, if the want to...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 23rd, 2006, 10:30 pm 
Offline

Joined: October 3rd, 2005, 2:42 am
Posts: 186
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 1:01 am 
Offline

Joined: April 29th, 2005, 12:14 am
Posts: 84
Location: Maryland
Ah I see now. Well kudos. :)

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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: tomoe_uehara, Xx7 and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group