Welcome Guest.   Make a donation to an author on the site September 16, 2014, 04:27:19 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: SOLVED: ahk script similar to winkey + space on Win 7  (Read 3468 times)
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: September 03, 2010, 10:49:20 AM »

(as usual, i've tried to do this and decided after an hour of searching/messing about - i can't do it.)

i'd like an .ahk script that performs similar to the "winkey + space" combo on Win7 - which makes all visible windows transparent UNTIL THE WINKEY IS RELEASED.

that's the important bit - i want to enable something whilst keys are down, then disable the action when releasing the windows key (very much like how alt+tab works, or winkey + tab).

it seems like it ought to be simple and i'm sure it is if you a well versed with the language of ahk.

so, to be a little more precise, here's what i'd like to do.

1. hit winkey + anotherkey

2. action happens, e.g. focussed window becomes transparent (temporarily). note: winkey is still held down.

3. release winkey, action stops, e.g. focussed window returns to opaque.

i'd like to have other actions happen with other winkey combos so the ahk script just needs to "Send" keys as the action. hopefully, i can then just edit the script to perform other Send hotkey combinations (which will, mainly, trigger ActualWindowManager actions).

i know AHK can perform transparency and roll-up but i've already got this covered with AWM - it's just the toggle feature with the winkey that i need AHK for.

i've found there is a problem with holding the combo keys down as it cycles the action continuously, i.e. windows cycles through transparency to opaque to transparent to opaque, etc., etc.

so, the down hotkeys need to initiate the action, which "Sends" the associated hotkeys to ActualWindowManager...

...then, whilst the winkey is still down, the AWM hotkeys are released and remain released - thus, preventing the rapid cycling problem...

...then, the winkey is released, which then triggers the very same ActualWindowManager hotkey combination that was used in the first place.

hopefully that makes sense - and isn't impossible to do with AutoHotKey.

Thanks


Logged
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: September 06, 2010, 09:23:26 AM »

okay. i've figured this out myself - i did more searching in the AHK forum and found stuff about "Keywait".


Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.026s | Server load: 0.13 ]