Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / NumLock, ON or OFF?

Author
Message
Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 25th Aug 2003 14:26
Hi,


I'm just wondering, if there is a way to know if the NumLock is ON or OFF.

Thanks A Lot
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Aug 2003 14:39
Yes...


Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 25th Aug 2003 14:49
Thanks


ehhh, How?
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Aug 2003 15:11 Edited at: 25th Aug 2003 15:18
I've got a plugin that lets you simulate key presses and mouse movements, which will let you active/deactive the NUM/LOCK, CAPS LOCK + other keys.

It should be noted that emulating the keyboard has a nasty tendency to lock the keyboard completely... It generally happens when you emulate the pressing of certain keys. I'm not going to do much about it as keyboard and mouse emulation shouldn't really be done.

It may also only work with Windows XP.


Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 25th Aug 2003 15:21
Thank you

I'll try it ,
and let you know!
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Aug 2003 15:43 Edited at: 25th Aug 2003 15:44
Okay... And no moaning if you lock out your keyboard, and have to reset...


Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 25th Aug 2003 15:46 Edited at: 25th Aug 2003 15:53
yes , it works! (had no doubts )

It works fine on WinXp,not tested on other OS.
I just want to ask if it is possible to find if the numlock is on,
so that your plugin is used as a last resource, since is
useless to put on the numlock when it is already on, and risk to
lock the keyboard.

Thanks!
empty
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Aug 2003 04:17 Edited at: 26th Aug 2003 13:48
This should work (I hope).

(see source button below)

I awoke in a fever. The bedclothes were all soaked in sweat.
She said "You've been having a nightmare and it's not over yet"
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 26th Aug 2003 11:04
Bit late, y'know...


OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 26th Aug 2003 13:41
Glad the plug-in worked! Dont forget to try my other wonderful plug-ins, all availiable at a low, low price of £0 (well, most of them anyway) at http://www.codingarea.co.uk


empty
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Aug 2003 13:49 Edited at: 26th Aug 2003 13:49
Quote: " Bit late, y'know... "

What is late?

I awoke in a fever. The bedclothes were all soaked in sweat.
She said "You've been having a nightmare and it's not over yet"
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 26th Aug 2003 14:07
Your code...


Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 26th Aug 2003 14:21
Nice!

So one problem is solved.
Thanks to both!
you'll see it in the competition entry, if it's finished
empty
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Aug 2003 14:33
Quote: " Your code... "

Oh, ok. But still in time, it seems.

I awoke in a fever. The bedclothes were all soaked in sweat.
She said "You've been having a nightmare and it's not over yet"
Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 26th Aug 2003 14:41 Edited at: 26th Aug 2003 14:42
It is never too late!

p.s. exception: the bus
empty
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Aug 2003 15:01
and the train and the plane.

I awoke in a fever. The bedclothes were all soaked in sweat.
She said "You've been having a nightmare and it's not over yet"
Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 26th Aug 2003 15:08
exactly!
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 26th Aug 2003 15:17
and programmers who dont get things finished...


Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 26th Aug 2003 15:31
exactly
Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 26th Aug 2003 15:33 Edited at: 26th Aug 2003 15:40
wait....

you were refering to me?


that's so sad
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 26th Aug 2003 16:11
I dont know - am I ?


Kendor
23
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 26th Aug 2003 16:49
No, it's me
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 26th Aug 2003 17:25
okay...


Login to post a reply

Server time is: 2026-07-23 00:17:44
Your offset time is: 2026-07-23 00:17:44