AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

i need a easy script

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
essener
Guest





PostPosted: Sun Oct 01, 2006 7:31 pm    Post subject: i need a easy script Reply with quote

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





PostPosted: Mon Oct 02, 2006 8:17 am    Post subject: Reply with quote

Rolling Eyes
Back to top
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Mon Oct 02, 2006 8:23 am    Post subject: Reply with quote

Well, that's a wish... Smile
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
TucknDar



Joined: 07 Jan 2006
Posts: 47
Location: Oslo, Norway

PostPosted: Mon Oct 02, 2006 6:12 pm    Post subject: Reply with quote

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 Wink

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
View user's profile Send private message Visit poster's website MSN Messenger
Zed Gecko



Joined: 23 Sep 2006
Posts: 149

PostPosted: Mon Oct 02, 2006 6:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
slomz



Joined: 03 Sep 2006
Posts: 601
Location: Iowa, U.S.

PostPosted: Mon Oct 02, 2006 10:08 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group