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 

naughty word blocker
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
rodfell



Joined: 05 Oct 2007
Posts: 57
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Mon Jul 14, 2008 12:38 pm    Post subject: naughty word blocker Reply with quote

I have kids and there's some words i don't want them typing. If they type these words the computer is shut down
Code:

:*?:boobs::
:*?:badword::
:*?:anotherbadword::
shutdown 13
return
Back to top
View user's profile Send private message
Rabiator



Joined: 17 Apr 2005
Posts: 265
Location: Sauerland

PostPosted: Mon Jul 14, 2008 12:51 pm    Post subject: Reply with quote

Brilliant! Laughing
Back to top
View user's profile Send private message
JoeSchmoe



Joined: 17 Feb 2008
Posts: 45

PostPosted: Mon Jul 14, 2008 5:42 pm    Post subject: Reply with quote

If you are worried that kids might somehow circumvent the program, you could add:

#NoTrayIcon

Note that if you do this, you won't have any way of exiting the program. To get rid of it, you'd have to remove the code that starts it and restart the machne. Alternatively, you can just include a hotkey that calls ExitApp, though kids might figure that text out if you don't compile.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Jul 14, 2008 9:36 pm    Post subject: Reply with quote

JoeSchmoe wrote:
Note that if you do this, you won't have any way of exiting the program.


It can be killed via Task Manager anytime.
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 1125

PostPosted: Mon Jul 14, 2008 9:37 pm    Post subject: Reply with quote

Wonderful... so when little Rod is typing his school report and reaches a word like "circumstance", he loses all his hard work!

I'd suggest that you restrict such a script to certain applications where it is vastly more likely to effect the behavior you intend it to ( for instance, google image search or youtube or kazaa or limewire or whatever p2p client is popular now)

Or perhaps exempt certain programs that are used only for school/work so people don't inadvertantly lose data.
_________________
My Home Thread
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 903
Location: The Interwebs

PostPosted: Mon Jul 14, 2008 9:39 pm    Post subject: Reply with quote

Eh. There are some scripts around here somewhere that prevent the opening of the task manager.

Or you have two instances running, each checking to see if the other still exists, and if it doesn't then run it.
Back to top
View user's profile Send private message AIM Address
rodfell



Joined: 05 Oct 2007
Posts: 57
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Tue Jul 15, 2008 3:05 am    Post subject: previous comments Reply with quote

this is aimed at kids who can't bypass autohotkey yet.
yes avoid things like tit as it will block things like title
some combinations of letters, which i won't spell out here, are unique to naughty words. cum would be no good, but cum{space} would do it
an interesting side effect of this program is my kids sometimes shutdown their computers by typing the f word.
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jul 15, 2008 8:40 am    Post subject: Re: previous comments Reply with quote

rodfell wrote:
cum would be no good, but cum{space} would do it


So cums and cumming is a permitted. Smile
Back to top
Tertius



Joined: 05 Jun 2008
Posts: 61

PostPosted: Tue Jul 15, 2008 8:54 am    Post subject: Reply with quote

rodfell wrote:
cum would be no good, but cum{space} would do it
Ah, but you will mess up their Latin studies with all these computer shut downs (cum ~ with). Wink
_________________
- Tertius
Back to top
View user's profile Send private message
rodfell



Joined: 05 Oct 2007
Posts: 57
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Tue Jul 15, 2008 11:50 am    Post subject: Reply with quote

this is getting a bit silly but this will please everyone except the latin scholars amongst us
Code:
::cum::
::cums::
:*?:cumming::
shutdown 13
return
Back to top
View user's profile Send private message
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Tue Jul 15, 2008 1:09 pm    Post subject: Reply with quote

Hey Billy, you should learn as hard as I do. I hope to graduate one day summa cum ... (laude).


Computer: you're a bad boy<shutdown>
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Jul 16, 2008 10:11 am    Post subject: Re: previous comments Reply with quote

Anonymous wrote:
rodfell wrote:
cum would be no good, but cum{space} would do it


So cums and cumming is a permitted. Smile


{space}cum
Back to top
Guest






PostPosted: Wed Jul 16, 2008 10:50 am    Post subject: Reply with quote

Anonymous wrote:
Anonymous wrote:
{space}cum


I don't think this would be good, as it could make things quite cumbersome.
Back to top
Guest






PostPosted: Wed Jul 16, 2008 11:23 am    Post subject: Reply with quote

rodfell wrote:
this is getting a bit silly but this will please everyone except the latin scholars amongst us Code:
Code:

::cum::
::cums::
:*?:cumming::
shutdown 13
return


As mention above, cum should not be there because of words that begin with cum (cumulative, cumbersome (as posted earlier)) and other such words containing cum (e.g. cucumber). Hopefully this has not resulted in any shutdowns on their part Sad
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 903
Location: The Interwebs

PostPosted: Wed Jul 16, 2008 11:39 am    Post subject: Reply with quote

Anonymous wrote:
rodfell wrote:
this is getting a bit silly but this will please everyone except the latin scholars amongst us Code:
Code:

::cum::
::cums::
:*?:cumming::
shutdown 13
return


As mention above, cum should not be there because of words that begin with cum (cumulative, cumbersome (as posted earlier)) and other such words containing cum (e.g. cucumber). Hopefully this has not resulted in any shutdowns on their part Sad


Yes, but because it doesn't have the * or ? options, it will only get activated when it is by itself ({space}cum{space}). So it shouldn't cause any problems unless, as previously mentioned, they decide to whip out their latin skills.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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