Page 1 of 1 1
Topic Options
#59258 - 2001-09-23 11:57 PM starting programm from script
Anonymous
Unregistered


I tried the following script. the purpose
start a programm. before that the user
should enter a 4 digit number that has
to appear in the following window
where he types in the digits.
can this be done with the following?


;============================================================================
$VNCSERVER = "server5:" ; VNCServer festlegen
;$port ="1"
$cl = chr(10) + chr(13)
$wide = " "
+ " "
+ " "
+ " "
$hs = $cl + $cl
$a1 = ""
$a2 = ""
$a3 = ""
$a4 = ""
$a5 = ""
$a6 = ""
$a7 = ""
$a8 = ""
$a9 = ""
$a10 = ""
$a11 = ""
$a12 = ""
$a13 = ""
$a14 = ""
$a15 = ""
$a16 = ""
$a17 = ""
$a18 = ""
$a19 = ""
$a20 = ""

$a14 = " " ;AT (14,12) " "
$a15 = " " ;AT (15,12) " "
$a16 = "Druecken Sie JA, nachdem Sie ihre PortNummer eingegeben haben " ;AT (16,12) " "
$a17 = "Druecken Sie NEIN, wenn Sie abbrechen wollen " ;AT (18,12) "NEIN, wenn Sie abbrechen wollen "
$a20 = $wide + $cl + $cl + "INTERNETZUGANGSKONTROLLSYSTEM fuer BENUTZER" + UCASE("@USERID") + $CL
+ "Fehler-Nr:" + $cl + $cl + " : $a1 $a2"
+ $cl + " : $a3 $a4" + $cl + " : $a5 $a6"
+ $cl + " : $a7 $a8" + $cl + " : $a9 $a10"
+ $cl + " : $a11 $a12" + $cl + "$a13" + $cl + $cl + "$a14" + $cl
+ "$a15" + $cl + "$a16" + $cl + "$a17" + $hs + $hs
+ " "
+ " "

messagebox("$a20","KIX Logonscript ",68)
; ??? errorlevel druecken?

if @error = 6
run "%comspec% /c e:\programme\orl\vnc\vncviewer.exe server5:1"
endif

Top
#59259 - 2001-09-24 03:59 PM Re: starting programm from script
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hi there Stephan and welcome on-board,

you can do this by inserting somewhere before the messagebox a gets statement

To check what the user has clicked in the message box assign it to a variable like :

code:

$rc = messagebox()
if $rc = value ;check manual
'action'
else
'other action'
endif

questions ?

Jochen

_________________________



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
0 registered and 1114 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.054 seconds in which 0.031 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