Word blocking

U

Urza9814

Ok, this is gonna sound really stupid, and I doubt it's possible, but
is there any way to make a program that'll stop you from typing
certain words? People are complaining that I type lol too much
(especially my gf...lol [see?...lol]), and I also could use it for
other things (which I shall not name here)so...is it somehow possible?
 
N

Noah Roberts

Urza9814 said:
Ok, this is gonna sound really stupid, and I doubt it's possible, but
is there any way to make a program that'll stop you from typing
certain words? People are complaining that I type lol too much
(especially my gf...lol [see?...lol]), and I also could use it for
other things (which I shall not name here)so...is it somehow possible?

You could use the new "BrainTap" peripheral and send it the appropriate
commands to keep you from typing "lol", however that would not be
standard C++.

NR
 
H

Howard

Urza9814 said:
Ok, this is gonna sound really stupid, and I doubt it's possible, but
is there any way to make a program that'll stop you from typing
certain words? People are complaining that I type lol too much
(especially my gf...lol [see?...lol]), and I also could use it for
other things (which I shall not name here)so...is it somehow possible?

You mean you don't want those letters typed ANYWHERE, in ANY PROGRAM? I
suppose it's possible, but it's got to be about the strangest request I've
ever heard. In Windows, you can use a "hook" to trap keypresses, but you'd
have to ask in a Windows newsgroup for how to implement that.

As a design issue, what would you do if the user (you?) were typing, and so
far had typed in the 'l' and the 'o"...what would happen when you hit the
'l' again? Nothing? And what about typing "lollipop", or other words that
contain "lol"? In any case, you're opening a rather large can of worms when
you start messing around with what the user can and cannot do, especially if
that user is not you!

As for preventing YOU from typing in "lol", have your girlfriend stick you
with a fork every time you do it. Eventually you'll learn. :)

-Howard
 
N

Noah Roberts

Howard said:
As for preventing YOU from typing in "lol", have your girlfriend stick you
with a fork every time you do it. Eventually you'll learn. :)

I like the "BrainTap" periferal idea better.

NR
 
D

David B. Held

Urza9814 said:
[...]
(especially my gf...lol [see?...lol]),

I suggest upgrading to GirlFriend 2.0. Fewer errors, better
performance, but fairly costly.
and I also could use it for other things (which I shall not name
here)

Which sounds like the real reason, and probably an illicit one.
Although preventing someone from typing something doesn't
seem like a useful h@X0r tool, so I can't imagine what. Unless
this were a trojan to be installed on someone else's computer,
and you wanted to prevent them from entering their password,
or something.
so...is it somehow possible?

Besides underspecifying the problem, this isn't a C++-specific
question. If there is a solution, it could be implemented in any
number of languages. It's really a function of the hardware
and operating system in question, and varies according to
each, so you should look for a forum where people talk about
your platform.

Dave
 
U

Urza9814

David B. Held said:
I suggest upgrading to GirlFriend 2.0. Fewer errors, better
performance, but fairly costly.
lol...I'll think about it... :p
Which sounds like the real reason, and probably an illicit one.
Although preventing someone from typing something doesn't
seem like a useful h@X0r tool, so I can't imagine what. Unless
this were a trojan to be installed on someone else's computer,
and you wanted to prevent them from entering their password,
or something.
no...not a 'h@X0r tool'...but...well...I'm 13...and there's stuff I do
that I really shouldn't...I'll just say that...
Besides underspecifying the problem, this isn't a C++-specific
question. If there is a solution, it could be implemented in any
number of languages. It's really a function of the hardware
and operating system in question, and varies according to
each, so you should look for a forum where people talk about
your platform.
what I mean is, is it possible in C++? I don't have a compiler for
anything else, and most aren't free anyways
 
H

Howard

You're missing the point:

"....you should look for a forum where people talk about your platform."

what I mean is, is it possible in C++? I don't have a compiler for
anything else, and most aren't free anyways

This newsgroup discusses aspects of the C++ language itself, not
platform-specific implementation issues. Check in a newsgroup that
discusses whatever operating system you're using.

-Howard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,825
Members
47,371
Latest member
Brkaa

Latest Threads

Top