Page 1 of 1 1
Topic Options
#53083 - 2001-01-10 01:05 AM User Input
Anonymous
Unregistered


Hi,
Can you have the script ask for input and then go on ? such as ..
welcome to whatever
wich office are you from
1 - whatever
2 - whichever

and just have it if 1 goto :1
something like that ?
has this been talked about before?
if so mind giving me some links ^_^

Top
#53084 - 2001-01-10 11:41 AM Re: User Input
Anonymous
Unregistered


Hi Rodriguez,

I dont have a complete solution for you, but you can get some kind of imput through messageboxes. For example:

code:

$RC = Messagebox("Are you an administrator?", "Question", 36, 0)
If $RC = 6
? Hi Administrator
End If
If $RC = 7
? Who are you?
End If

This is very very basic, and it properbly dont cover your needs, but with a little imagination meaby you can get some possivtive out of it....good luck

------------------
Cheers....

David

Top
#53085 - 2001-01-10 08:29 PM Re: User Input
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Hi,

Here is a small program that displays a popup question window. I am writing one in KiX too...

dInput.exe

Usage:

DINPUT <caption> <message> <default>

all are optional, but if you don't want one replace it with "" as they are used in order.

example:

dinput "Login" "Enter your Username"

The return_value is echoed to the STDOUT, so use > to capture to file.


cj

Top
#53086 - 2001-01-10 11:31 PM Re: User Input
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Hi ARodriguez,

I've written a script that can be used for user input.
http://home.wanadoo.nl/r.s.m.s.dejong/Scripts/input.kix

You also might want to look at my select routine.

http://home.wanadoo.nl/r.s.m.s.dejong/Scripts/select.kix

Let me know how you like it or what I should change.

------------------
Greetz,

Roger the Young
------------------------
The code is out there...
------------------------

[This message has been edited by DrillSergeant (edited 10 January 2001).]

_________________________
The Code is out there

Top
#53087 - 2001-01-11 09:31 PM Re: User Input
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
DrillSergeant,

Great script!

If you add this:
$showanswer=substr($showanswer,1,len($showanswer)-1)

after this:
$answer=substr($answer,1,len($answer)-1)

it will delete the chars from the screen display. I found that when I pressed <- the chars disappeared from the $answer, but not the screen.

cj

[This message has been edited by cj (edited 11 January 2001).]

Top
#53088 - 2001-01-11 10:26 PM Re: User Input
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Thanx CJ,

Yeah, that '$showanswer' bit was a last minute add-on, and I didn't really test it.

That will teach me, eh?
TEST, TEST, TEST, POST

------------------
Greetz,

Roger the Young
------------------------
The code is out there...
------------------------

_________________________
The Code is out there

Top
#53089 - 2001-01-11 10:30 PM Re: User Input
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I thought it was more like post, test test test, repost, test test test repost

Bryce

Top
#53090 - 2001-01-11 10:34 PM Re: User Input
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
LOL,

Yeah, that's what I tell my superiors:

Testing? Isn't that what users are for?

------------------
Greetz,

Roger the Young
------------------------
The code is out there...
------------------------

_________________________
The Code is out there

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (StuTheCoder) and 798 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org