 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
groovs
Joined: 16 Nov 2009 Posts: 18 Location: Netherlands
|
Posted: Mon Nov 16, 2009 4:17 pm Post subject: combining script Toddler and monitor off |
|
|
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? |
|
| Back to top |
|
 |
First Toy Lab
Joined: 15 Nov 2009 Posts: 21 Location: London, UK
|
Posted: Mon Nov 16, 2009 5:36 pm Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
gamax92 Guest
|
Posted: Sun Nov 28, 2010 9:25 pm Post subject: |
|
|
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.
Nah, just messing around. Probably, scare the s--- out of them. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|