shouldn't the script work exactly the same, with the same timing after compilation?
in my script,
i open a Dialog box and show some instructions, and then asks for some input for user name and password.
here is the code:
// instruction message
Dialog>Instructions
Caption=Instructions
Top=247
Width=473
Left=217
Height=160
Label=** Instructions **,185,8
Label=1. Save today's list of CIC and WTN's in 'C:\RESULTS\514.csv',30,36
Label=2. Close all programs,30,56
Label=3. Stop the process anytime by pressing "SHIFT + ESC",30,76
EndDialog>Instructions
show>Instructions
MoveWindow>Instructions,1,1
// open siebel
Input>login,Enter Your Oracle Siebel Reporting Server login:
If>login=,end
Input>password,Enter Your password:
If>password=,end
CloseWindow>Instructions
// run SQL plus in DOS
Press LWinKey
Send Character/Text>r
release LWinKey
wait>0.5
Send Character/Text>cmd
press enter
wait>1.5
Send Character/Text>sqlplus %login%/%password%@siebrpt
press enter
wait>4
this works normally like its supposed to when i run the .SCP file in macroscheduler, but after compiling,
it wont pop up the Dialog box anymore. and i get the "Instructions box not present error" with the option of Abort/Ignore
whats going on?!?
Error after compiling into .EXE , what happened?
Moderators: Dorian (MJT support), JRL
I get the error when running your script uncompiled. The problem is caused by the CloseWindow command which in my case attempted to close the window after the dialog was closed - hence it complained that the window you wanted to close does not exist.
I have a number of points
1. Why use MoveWindow when you can just set the X,Y coordinates of the dialog in the dialog block?
2. Why use CloseWindow to close a dialog - just use the CloseDialog command.
3. At several points you try to jump to a non-existant label called end. This causes an error.
If you change CloseWindow for CloseDialog and put the non-existant label in you shouldn't get any errors.
I have a number of points
1. Why use MoveWindow when you can just set the X,Y coordinates of the dialog in the dialog block?
2. Why use CloseWindow to close a dialog - just use the CloseDialog command.
3. At several points you try to jump to a non-existant label called end. This causes an error.
If you change CloseWindow for CloseDialog and put the non-existant label in you shouldn't get any errors.
MJT Net Support
[email protected]
[email protected]
When I closed it.
This is what your script should look like:
// instruction message
Dialog>Instructions
Caption=Instructions
Top=1
Width=473
Left=1
Height=160
Label=** Instructions **,185,8
Label=1. Save today's list of CIC and WTN's in 'C:\RESULTS\514.csv',30,36
Label=2. Close all programs,30,56
Label=3. Stop the process anytime by pressing "SHIFT + ESC",30,76
EndDialog>Instructions
show>Instructions
// open siebel
Input>login,Enter Your Oracle Siebel Reporting Server login:
If>login=,end
Input>password,Enter Your password:
If>password=,end
CloseDialog>Instructions
// run SQL plus in DOS
Press LWinKey
Send Character/Text>r
release LWinKey
wait>0.5
Send Character/Text>cmd
press enter
wait>1.5
Send Character/Text>sqlplus %login%/%password%@siebrpt
press enter
wait>4
Label>end
This is what your script should look like:
// instruction message
Dialog>Instructions
Caption=Instructions
Top=1
Width=473
Left=1
Height=160
Label=** Instructions **,185,8
Label=1. Save today's list of CIC and WTN's in 'C:\RESULTS\514.csv',30,36
Label=2. Close all programs,30,56
Label=3. Stop the process anytime by pressing "SHIFT + ESC",30,76
EndDialog>Instructions
show>Instructions
// open siebel
Input>login,Enter Your Oracle Siebel Reporting Server login:
If>login=,end
Input>password,Enter Your password:
If>password=,end
CloseDialog>Instructions
// run SQL plus in DOS
Press LWinKey
Send Character/Text>r
release LWinKey
wait>0.5
Send Character/Text>cmd
press enter
wait>1.5
Send Character/Text>sqlplus %login%/%password%@siebrpt
press enter
wait>4
Label>end
MJT Net Support
[email protected]
[email protected]