AutoHotkey Community

It is currently May 27th, 2012, 7:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: i need a easy script
PostPosted: October 1st, 2006, 8:31 pm 
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....


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2006, 9:17 am 
:roll:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2006, 9:23 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Well, that's a wish... :-)

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2006, 7:12 pm 
Offline

Joined: January 7th, 2006, 1:38 pm
Posts: 47
Location: Oslo, Norway
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2006, 7:49 pm 
Offline

Joined: September 23rd, 2006, 1:58 pm
Posts: 149
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2006, 11:08 pm 
Offline

Joined: September 3rd, 2006, 5:34 am
Posts: 601
Location: Iowa, U.S.
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, tomL, Yahoo [Bot] and 69 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