Liberty BASIC Community Forum
« Keybord Stuff »

Welcome Guest. Please Login or Register.
Feb 22nd, 2018, 12:25pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1 2 3  Notify Send Topic Print
 veryhotthread  Author  Topic: Keybord Stuff  (Read 3764 times)
steven6446
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Keybord Stuff
« Thread started on: Feb 5th, 2003, 12:40pm »

Is it possible to make lb lock the keybord controls out? , im interested in perhaps making a password protected screen saver so i need the windows buttion etc disabled and the alt ctrl del option, is it possible to do? smiley

Steve
User IP Logged

Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14923
xx Re: Keybord Stuff
« Reply #1 on: Feb 5th, 2003, 1:24pm »

on Feb 5th, 2003, 12:40pm, steven6446 wrote:
Is it possible to make lb lock the keybord controls out? , im interested in perhaps making a password protected screen saver so i need the windows buttion etc disabled and the alt ctrl del option, is it possible to do? smiley

Steve


Oh my. I've only been programming for six years, and although I've studied quite a lot, I haven't had any formal training (for instance, a class at college.) I would not attempt to disable those features of Windows, so I have no idea if LB can do that. I know that if I started messing with that stuff, I would surely crash my system. Someone much smarter than me will have to give you an answer to the question of whether it is possible to do it in LB.

My suggestion is, why don't you write a really neat screen saver? Learn what the graphics commands are, and what they can do for you. As a hobbiest, you should be in this to have some fun and to learn.

In another post, you mentioned that you are not a registered user. That would make it difficult to do the password thing. It might well be impossible. Any program you write will have to run through the LB IDE.

Whenever anyone asks me for advice on beginning to learn programming, I suggest that they start with modest goals and build from there. So often, we see new programmers who want to tackle the really hard stuff right out of the gates. They are in for no end of frustration. It ought to be FUN!

Alyce
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14923
xx Re: Keybord Stuff
« Reply #2 on: Feb 5th, 2003, 1:31pm »

I've always thought that one of the demos that comes with LB would be a nice start to a screen saver. It needs some work. For one thing, it needs a trapclose. It also runs too quckly on my system. It would be fun to watch the figure get drawn.

Just a thought...

Code:
    ' This is a turtle graphics demo

    dim color$(3)

    color$(0) = "red"
    color$(1) = "green"
    color$(2) = "yellow"
    color$(3) = "blue"

    print "Opening Graphics Window"
    open "Turtle Graphics Spiral" for graphics_fs as #turtleOut

    print "Writing spiral data..."

    print #turtleOut, "home"
    print #turtleOut, "down"
    print #turtleOut, "north"
    print #turtleOut, "fill black"
    print #turtleOut, "size 8"

    for x = 1 to 200
        print #turtleOut, "color "; color$(x - int(x/4) * 4)
        print #turtleOut, "turn 122"
        print #turtleOut, "go "; x*2
    next x

    print #turtleOut, "flush"

    input r$

    print "Closing Window" : print
    close #turtleOut

    print "Done."



 
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
steven6446
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Keybord Stuff
« Reply #3 on: Feb 5th, 2003, 3:20pm »

i had many ideas to use this on as well undecided (ignore keypress code etc)
User IP Logged

TknSoft
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 138
xx Re: Keybord Stuff
« Reply #4 on: Feb 5th, 2003, 6:18pm »

Yes, it's possible to disable Ctrl-Alt-Del. I have the code in an
old program. I'll try to find it tonight and post it. I'll also check on whether other keys - such as the Windows key - can be too. I'm inclined to think YES. If so, I'll post code for that also.

Dave Thomas
TknSoft2002@yahoo.com
User IP Logged

I tried to back up my hard drive, but I couldn't find 'Reverse' !
steven6446
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Keybord Stuff
« Reply #5 on: Feb 5th, 2003, 7:19pm »

Thanx a lot mate grin, im really looking forward to getting my project(s) started grin




Steve
User IP Logged

JohnDavidson
Moderator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2480
xx Re: Keybord Stuff
« Reply #6 on: Feb 5th, 2003, 8:51pm »

Hello Steve,
It seems to me that a screen saver should have access to all keys.
When any key is pressed or the mouse is clicked the screen saver should go away.

If I were designing a password protected screen saver, I would use a prompt dialog when anything was pressed or clicked.

A while back there was a thread named "It's a graphics thing" in The Official Liberty BASIC Support Group at http://groups.yahoo.com/group/libertybasic/

I think this would be a good start for a screen saver and it will show how to check for keyboard or mouse input.

The thread starts with message #10439 but I like Kenny's version in message #10439.

John Davidson
e-me: johnshomeport
home: http://www.geocities.com/johnshomeport/


User IP Logged

John Davidson
e-me: johnshomeport@yahoo.com
Comming Soon: http://johnshomeport.com
Did ya Libby yet? http://lblibby.com/



steven6446
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Keybord Stuff
« Reply #7 on: Feb 5th, 2003, 9:17pm »

Im mostly intrested in the blocking of windows buttons +alt ctrl del etc cos i can make a personal secureity program then to secure my pc grin

thanx for the replys smiley



Steve
User IP Logged

TronDoc
Full Member
ImageImageImage


member is offline

Avatar




Homepage PM


Posts: 145
xx on a tangent...
« Reply #8 on: Feb 6th, 2003, 06:33am »

on Feb 5th, 2003, 8:51pm, JohnDavidson wrote:
in The Official Liberty BASIC Support Group at http://groups.yahoo.com/group/libertybasic/
....just wondering is this still true?
User IP Logged

peace©®™
http://trondoc.ezwebtech.com/theWRAP
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14923
xx Re: on a tangent...
« Reply #9 on: Feb 6th, 2003, 06:40am »

on Feb 6th, 2003, 06:33am, TronDoc wrote:
....just wondering is this still true?


The Yahoo group is still the official support group as far as I know, but this group is also owned and supported by Carl, so I guess it is official as well... two places to hang our hats... just depends on how you like to access the messages, I guess. So many have complained about the yahoo group, but there are still folks who want to get their messages by email, so there is a use for both forums.
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
BillBeasley
Guest
xx Re: Keybord Stuff
« Reply #10 on: Feb 6th, 2003, 11:28am »

on Feb 5th, 2003, 9:17pm, steven6446 wrote:
Im mostly intrested in the blocking of windows buttons +alt ctrl del etc cos i can make a personal secureity program then to secure my pc


And you'll secure the power or reset switch in some manner too?
You'll need your program to boot into the program that disables the keyboard effectively locking you out also.

You might want to consider Alyce's suggestion as a more reasonable approach to a secure screen saver.

If you only intend to use such security on your machine then depending on the OS version you're running, look into User Log In and Passwords.
User IP Logged

JerryMuelver
Board Moderator

member is offline

Avatar

Kissy, kissy?....


Homepage PM

Gender: Male
Posts: 1317
xx Re: Keybord Stuff
« Reply #11 on: Feb 6th, 2003, 12:15pm »

on Feb 5th, 2003, 9:17pm, steven6446 wrote:
Im mostly intrested in the blocking of windows buttons +alt ctrl del etc cos i can make a personal secureity program then to secure my pc grin

A better approach would be to buy a good padlock for your room door. rolleyes
User IP Logged

steven6446
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Keybord Stuff
« Reply #12 on: Feb 6th, 2003, 12:48pm »

"A better approach would be to buy a good padlock for your room door"

er that wasent the kind of solution i was looking for grin good idea tho grin
« Last Edit: Feb 6th, 2003, 1:21pm by steven6446 » User IP Logged

TknSoft
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 138
xx Disabling Windows Shortcut Keys
« Reply #13 on: Feb 6th, 2003, 5:24pm »

nomainwin
button #main.btnDisable,"Disable Keys",[disable],UL,5,5,100,20
button #main.btnEnable,"Enable Keys",[enable],UL,5,35,100,20
open "Keys" for window_nf as #main
#main,"trapclose [quit]"
wait
[disable]
call DisableKeys 0
wait
[enable]
call DisableKeys 1
wait
[quit]
call DisableKeys 1
close #main
end
sub DisableKeys a
if a=1 then
calldll #user32,"SystemParametersInfoA",_
97 as long,_
0 as long,_
1 as long,_
0 as long,_
ret as long
else 'enable keys
calldll #user32,"SystemParametersInfoA",_
97 as long,_
1 as long,_
0 as long,_
0 as long,_
ret as long
end if
end sub


Dave Thomas<TknSoft2002@yahoo.com>

User IP Logged

I tried to back up my hard drive, but I couldn't find 'Reverse' !
steven6446
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Keybord Stuff
« Reply #14 on: Feb 6th, 2003, 6:29pm »

Thanx a lot that works great grin , wish there was some way to repay you , all i have is a pic of a frog (from this forum) and i modified it to have fire out of his bum and a speech bubble sayin "lb tastes good", i was gonna try post it here but i have no host for the file, anyways enough about my mad creations thanx again for this code grin




Steve
User IP Logged

Pages: 1 2 3  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls