View previous topic :: View next topic |
Author |
Message |
VDSuser Contributor
Joined: 21 Mar 2002 Posts: 58 Location: Somewhere in time
|
Posted: Wed Apr 03, 2002 4:28 pm Post subject: Who wants to be a hero? |
|
|
Here's a project for a DLL author to make you loved by millions: Come up with a method to check the Caps Lock state on a remote PC.
No, I don't want the final proggie to run on their computer, I want it to run on mine. I help administer over a thousand desktop PCs and one of the biggest problems we have when it comes to logons is people trying to enter passwords in upper case characters. When I ask "Is your Caps Lock on?" the answer always is "No," spoken in the tone of "(What's a Caps Lock?)"
I want to be smarter than the user. I want to know when they're lying. I want a DLL that'll call the GetKeyState of a remote PC, as in "%a = @keystate(capital[,computername])" or "%a = @keystate(numlock[,computername])." You know what I mean.
So I ask you, fellow programmers, who wants to be a hero? |
|
Back to top |
|
|
flypaper Contributor
Joined: 19 Oct 2001 Posts: 104
|
Posted: Wed Apr 03, 2002 4:52 pm Post subject: |
|
|
I'm no programmer, but I doubt that could be done without a program running on the remote PC. |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Wed Apr 03, 2002 5:25 pm Post subject: |
|
|
I would not be possible to do without a program running
on the users computer to serve as a client. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Apr 03, 2002 6:44 pm Post subject: |
|
|
Whooooo, Chris. I think that your avatar has gone totally Pulp Fiction! Take
more care when headbanging at your keyboard - maybe that's the way
people's Caps Lock gets stuck so they have to lie to VDSuser about
it
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Wed Apr 03, 2002 8:01 pm Post subject: |
|
|
Hey, Haven't you felt like doing that when you just can't
take it anymore? I don't think there is enough blood. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
VDSuser Contributor
Joined: 21 Mar 2002 Posts: 58 Location: Somewhere in time
|
Posted: Wed Apr 17, 2002 5:45 pm Post subject: |
|
|
Getting back to the question at hand for a moment, are there any Basic programmers in the forum who are familiar with PEEK and POKE?
I know that using PEEK locally, one can read a specific memory address to check the value of the Caps Lock.
The Basic code for determining the Caps Lock state is:
DEF SEG = 0
X = PEEK(1047) AND 64
If the Caps Lock is off, X will equal 0, otherwise, it will equal 64.
Each bit of location 1047 reflects the status of a keyboard flag. This includes NUM LOCK, SCROLL LOCK, CAPS LOCK, INSert mode, and whether or not the LEFT SHIFT and RIGHT SHIFT keys, the ALT key, or the CTRL (Control) key is currently pressed or not.
Why can't one PEEK a remote PC's memory? 8O |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Apr 18, 2002 3:30 am Post subject: |
|
|
Use Windows XP, it'll warn the user if capslock is turned on while entering
a password in the login screen
Tommy |
|
Back to top |
|
|
flypaper Contributor
Joined: 19 Oct 2001 Posts: 104
|
Posted: Fri Apr 19, 2002 6:48 pm Post subject: |
|
|
VDSuser wrote: | Why can't one PEEK a remote PC's memory? 8O |
That would be a huge security issue if memory could be read remotely without a program running on the remote computer. |
|
Back to top |
|
|
|