 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
essener Guest
|
Posted: Sun Oct 01, 2006 7:31 pm Post subject: i need a easy script |
|
|
hi, i am looking for a script to block the keyboard and mouse...
unlockable by a key combination (multiple keys at the same time)
also i want the scrip to pop-up a window with no buttons (so no OK button just text) and that when i press the correct combination i unlock the keyboard and mouse
oh and it's for school verry high protected systems so i need something to run from a self created folder/files
and i am a noob maybe a sugestion for a site/topic with a better toturial than on this site i also like to make some .exe files(like this one above^) so not only .ahk.... |
|
| Back to top |
|
 |
DisplacedPostAlert Guest
|
Posted: Mon Oct 02, 2006 8:17 am Post subject: |
|
|
 |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Mon Oct 02, 2006 8:23 am Post subject: |
|
|
Well, that's a wish...  _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
TucknDar
Joined: 07 Jan 2006 Posts: 47 Location: Oslo, Norway
|
Posted: Mon Oct 02, 2006 6:12 pm Post subject: |
|
|
I advice you to dig into AHK a little further than what you've done so far, then try to code the script yourself, and if you're in trouble with the code, THEN ask for help.
Every once in a while you're lucky enough that someone actually makes a script based on a request such as yours, but usually you'll only receive sighs and replies such as mine
I'm no programmer myself, but AHK is actually fairly easy (even I can make some small useful scripts), if you bother reading a little and look at other scripts. The latter is IMO the best way to learn the AHK scripting language!
Good luck. |
|
| Back to top |
|
 |
Zed Gecko
Joined: 23 Sep 2006 Posts: 149
|
Posted: Mon Oct 02, 2006 6:49 pm Post subject: |
|
|
I am a noob myself but i think:
a solution could be
creating a transparent fullscreen gui that is always on top
maybe like
| Code: | Gui, +AlwaysOnTop +LastFound +Owner +Toolwindow
Gui, Color, %CustomColor%
Gui, -Caption
WinSet, TransColor, %CustomColor% 0
Gui, Show, x0 y0 Maximize |
(see "Example: On-screen display (OSD) via transparent window:" on http://www.autohotkey.com/docs/commands/Gui.htm for a start)
and using the onmessage() command to receive all Windows messages related to keypesses with WM_KEYDOWN and WM_SYSKEYDOWN.
returning a var with this should terminate all these messages so the Keystrokes wonīt fall through to outher programms or the system.
(see "What the Function Should Return" and "Example: The following is a working script that monitors mouse clicks in a GUI window." on http://www.autohotkey.com/docs/commands/OnMessage.htm for a start)
you could let the funtion called by OnMessage() add each incoming char to a string and then check if this string containes your secret word.
(you should probably empty this string, when it exceeds a certain size)
but itīs just a guess |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 601 Location: Iowa, U.S.
|
Posted: Mon Oct 02, 2006 10:08 pm Post subject: |
|
|
| Code: |
Gui, +AlwaysOnTop +LastFound +Owner +Toolwindow
Gui, Color, FFFFFF
Gui, -Caption
WinSet, TransColor, FFFFFF
Gui, Submit, NoHide
Gui, Show, x0 y0 Maximize,
return |
then to disable a key do this:
| Code: | F12::
LButton::
etc...
return |
|
|
| 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
|