Page 1 of 1 1
Topic Options
#9615 - 2001-06-16 05:27 PM GUI Output other than msg-box?
Anonymous
Unregistered


Hi there!

I want to show my users some nice and friendly window, some informations and want to check some pointas when they are done so the user knows, how long it will take or where there is a problem.

I don't find any output than console window (no way!) and msg-boxes.

I would like ti use a msg-box but kix always waits for a button to click and I can not update the box.

Any other possibilites to do that?

Thx alot,
Jo

Top
#9616 - 2001-06-17 06:37 PM Re: GUI Output other than msg-box?
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
There are a couple of options available to you in this regard:

1. ie. Using OLE calls in KiX3.6x and to a lesser degree COM calls in KiX2k (COM is being fixed in KiX2k as we speak (type?)) you can launch an instance of MSie and interact with it. Have a look at a game that uses OLE and IE

2. Custom DLL plugin (made by Shawn) like KiXWin32. Have a look on Bryce's KiXtart Tools page for this and other cool DLLs to enhance KiX.

3. Other OLE/COM stuff that you make yourself or find lying around. For example, I made a program in Delphi that displays a picture and has an OK button for use as a Logo to look at while your logon script runs. Have a look here to see how this works.


hope this helps


cj

------------------
cj's scripts page
cj's User Guide - 14 May 2001

chrismat@ozemail.com.au


 

[This message has been edited by cj (edited 17 June 2001).]

Top
#9617 - 2001-06-18 03:06 AM Re: GUI Output other than msg-box?
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

By MessageBox it isn't necessary that an user must click a button.
The delay-time can influence it. F.e. by using a value of 3 seconds
the box will disappear after 3 seconds with or without an user click.

The way of changing the messages of a MessageBox are:

code:

$cr=CHR(13)+CHR(10)
;
$message="Hello, "+@userid+$cr+"Welcome and have a nice day."
$title="Informative"
$style=64 ; OK + Information
$delay=3
$null=MessageBox($message, $title, $style, $delay)

By an error situation you can change it to:

code:

$cr=CHR(13)+CHR(10)
;
copy s ss
$message= "System dectect error "+@error
$message=$message+$cr+$cr+"Explanation: "+@serror
$message=$message+$cr+$cr+"Please contact your network administrator."
$title="Warning"
$style=16 ; OK + STOP
$delay=10
$null=MessageBox($message, $title, $style, $delay)

Greetings.

------------------
Site map:

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#9618 - 2001-06-18 07:46 PM Re: GUI Output other than msg-box?
Anonymous
Unregistered


Thx for all your info :-)

Is ist possible to close a message box when the script is done?
So I could open one without a button, update it through the scripting process with some infos and close it, when no errors occured.

Is this possible?

Thx for your advices,
Jo

Top
#9619 - 2001-06-19 02:58 AM Re: GUI Output other than msg-box?
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

See for such a MessageBox topic
http://kixtart.org/board/Forum1/HTML/002351.html
Greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 271 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.027 seconds in which 0.011 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