Page 1 of 1 1
Topic Options
#50872 - 2000-08-03 05:11 PM Call problem
Anonymous
Unregistered


Well,

I've got this little problem. When I used the IE loginscript from this board I wanted to call some other scripts that would run on the background of the IE screen and then a new line would be added on completion of that background script.

The original script was KIX/DOS based and the same procedure of "calling" other scripts was used.

OldScript: http://www.utah-kruiden.nl/oldscript.kix.txt
IEScript: http://www.utah-kruiden.nl/iescript.kix.txt

Come have a look see because I do not get it at all.

[This message has been edited by SCAdmin (edited 03 August 2000).]

Top
#50873 - 2000-08-03 06:28 PM Re: Call problem
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
SC:

Nice work !

What's not working ?

I downloaded your script, then renamed all your called scripts to a stub script that I created called sleep2.kix (sleeps-4-2), and eveything seems to work / synchronize just fine !

Shawn.

p.s.

I really like how you declared all your called scripts as string variables. Makes it real easy to stub them out and test !

[mental note to shawn: declare all your called scripts as $variables]

You might also want to play around with the setconsole("HIDE") function while your IE console is foreground !

Shawn.

[This message has been edited by Shawn (edited 03 August 2000).]

Top
#50874 - 2000-08-03 07:18 PM Re: Call problem
Anonymous
Unregistered


Shawn,

Before the script runs (NT Only!!) the whole %USERPROFILE%\Menu Start\Programs is cleared by a batch process and with the $CascadeAPPS KIX script is re-filled according to Group Membership (by-the-way, works like a charm)
Take a look-see at this script

Programs.KIX: http://www.utah-kruiden.nl/programs.kix.txt

The real problem is that when the script executes from the old script, files are copied without any problem.

When the IE script runs. Directories are created but files aren't copied.

Same script no changes but no files under IE.


Gillez

[This message has been edited by SCAdmin (edited 03 August 2000).]

Top
#50875 - 2000-08-04 02:33 PM Re: Call problem
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Gillez:

I would try a couple of things here:

1) Temporarily remove or simplify the HTML writes to simple one-liners, then retest. If this is the problem, you might want to try expressing long HTML statements like this:

code:

$html =
"<head><title>Stichting Cascade - Fancy Login Script</title>" +
"<style><!--body { font-family: Verdana, Arial, Helvetica, " +
"sans-serif; font-size: x-small; font-style: normal; line-height:" +
"normal; font-weight: normal; font-variant: normal; text-transform: " +
"none; color: #330033; text-decoration: none; background-attachment: " +
"fixed; background-color: #FFFFFF; background-image: " +
"url(\\sb1phoenix\netlogon\ielogin\bgFR.jpg);"
...


2) To find out why the copy commands aren't working, place debug statements in your sub-scripts, right after your command like this:

code:

COPY "this" "that"

?"error @error @serror"


3) For long HTML writes with imbedded jpg's and gif's, you might want to place a script sync-up statement right after it, like this:

code:

$= olecallfunc ( $doc, "write", "s", "<h1>A very long HTML string</h1>" )


while olegetproperty ( $ie, "busy" ) <> "0" loop


This pauses the script until IE completes all outstanding operations (the "Done" message appears lower left browser window).

4) Lastly - don't forget - your pioneering new KiX territory here ( I think ) so I applaud your efforts - but who knows what manner of strange behaviors might be encountered.

I just hope the problem is something simple and easy to fix !

Shawn.

[This message has been edited by Shawn (edited 04 August 2000).]

Top
#50876 - 2000-08-07 02:17 PM Re: Call problem
Anonymous
Unregistered


Hi,

You are not going to believe this one !! This is f***ing unbelievable.
For the ones who have downloaded the script mentioned above, then this one's for you.

In the original script I sought a Hidden share like BATCH$ or something like that but when I ran the script from the IE window no things were copied because the script couldn't find the Batch$ thingy. So I did a complete check (? "$Var1" ? "Var2" etc.) and what was the problem ??

When you declare another variable ($Var1) from a childwindow (not the console) the $ mark on the end of any word (like hidden shares) will be interpreted like a new variable. So my BATCH$ was in the child window nothing more than BATCH, and that one didn't exist. Added another $ (so is now BATCH$$) and it works.

Strang aint it ??


Gillez

P.S. Didn't get the text2speech to work properly, maybe because of dutch version of NT.

Top
#50877 - 2000-08-07 03:50 PM Re: Call problem
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Not all that surprising really, since kix treats a single $ as a variable

run the following

? "$"
$ = "test"
? "$"

so if you want to map a hidden share

use d: "\\server\hiddenshare$$"

Bryce

Top
#50878 - 2000-08-07 04:06 PM Re: Call problem
Anonymous
Unregistered


Bryce,


Okay, knew that but why is it than that if you do the following:

$A1 = "\\SERVER\BATCH$"
$A2 = "\\SERVER\BATCH$$"

$A1 works only if it is called from the console, but doesn't if the console is not on the fore-ground.

$A2 definetely if it is called from a child window, did not test from the console.

Gillez

P.S. Dutch Language Module sucks.

Top
#50879 - 2000-08-07 04:59 PM Re: Call problem
Anonymous
Unregistered


Dutch Language Module sucks bigtime!
Who the f*ck are Hans and Karen??
*grin*

Top
#50880 - 2000-08-08 03:01 PM Re: Call problem
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Gillez,Bryce:

So are we saying here that using this:

$= somefunc()

to "quiet" noisey functions is not a good thing ?

When one assigns something to $, it will screw-up the use of $$ ?

I guess we should be using $q= or $rs= instead !

Shawn.

[This message has been edited by Shawn (edited 08 August 2000).]

Top
#50881 - 2000-08-08 04:58 PM Re: Call problem
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Whenever kix finds a "$$" it will always use it as a single $. But if kix finds a single $ in the code it will first try to treat it as a variable, and then, if that variable has not been set, it will print the variable code name.

So if you have been using

$ = ingroup("....")

to suppress the return codes, and then try to use something like this

use h: "\\server\@userid$"

you will get the @userid+return code, not the hidden share that you were wanting.

code:

$ = ingroup("Domain users")
? "$$ = $"
?
? 'ingroup("Domain Users") = $'
? 'ingroup("Domain Users") = $$'
?
? "\\server\@userid$"
? "\\server\@userid$$"
?
? "$$$$$$$$"
? $$$$$$$$

Bryce

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 885 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

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