AutoHotkey Community

It is currently May 26th, 2012, 11:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: November 16th, 2009, 5:17 pm 
Offline

Joined: November 16th, 2009, 4:28 pm
Posts: 18
Location: Netherlands
I use a script I found in the forum to switch off my monitor with ^1 and switch it back on only with the same keys:
-------------------------------------------------

^1::
KeyWait, CTRL
KeyWait, ALT
Keywait, F4
KeyWait, SHIFT
KeyWait, Escape
Gui,Color,0x000000
Gui,-Caption
Gui,Show,w%A_ScreenWidth% h%A_ScreenHeight%
Loop
{
If (GetKeyState("CTRL","P") and GetKeyState("1","P"))
Break
else if (A_TimeIdlePhysical<1000)
SendMessage, 0x112, 0xF170, 2,, Program Manager
}
Gui,Destroy
Return
---------------------------------------------------------------
It works but blocks all the keys except ^1.
I still want to be able to use some predefined keys though for some functions of my movieplayer. While the movie is playing the screen should stay off but the predefined keys should still work. Only untill I press ^1, the screen should wake up.
Is it possible to combine this in the toddler script?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 6:36 pm 
Offline

Joined: November 15th, 2009, 10:21 pm
Posts: 21
Location: London, UK
Great idea! Very smart script!

I work in a preparatory school and the reception classroom have special keyboars to the kids. They find very confusing the normal keyboard.

Well done! :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 10:25 pm 
I would use the bad keys to make an alarm.

So windows key ::
Alert, Alert. You pressed a windows key. ending game.
DONT DO IT AGAIN.

:lol:

Nah, just messing around. Probably, scare the s--- out of them.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Miguel and 14 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