Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Pause script and wait for user activity in session

Pause script and wait for user activity in session

Pause script and wait for user activity in session

I'm looking for a way in Client Access VBScript macro to pause the script until the user takes actions in the session and progresses to a specific screen, at which point I want the script to continue.

Example: Script starts and populates a create customer screen, and begins to enter an order. Script Pauses, for the user to correct unanticipated details on the order screen and user progress to the Order Summary Screen, Script resumes based on summary screen displayed, and the script completes the order activity.

Any help would be appreciated.

RE: Pause script and wait for user activity in session

If you mean iSeries Client Access Green-Screen-Makros, then you can use for example message-boxes inside of it and wait until a button is pressed, simple something like this


'show MsgBox
message = "Continue processing ?"
title = "Question"
rc = msgbox (message, vbYesNoCancel+vbQuestion, title)
title = "Warning:" 
if rc=vbYes then
  message = "Now processing the AS/400 screens continues ..."
  call msgbox (message, vbExclamation, title)
  message = "Processing stopped by User"
  call msgbox (message, vbExclamation, title)
end if 

For more complex makro examples maybe look at these threads:

RE: Pause script and wait for user activity in session

Yes, I mean iSeries Client Access, but I'm using the vbScript instead of the macros format.

And I understand message boxes, but I want it to be paused while activity in the iSeries session occurs, with the macro continuing once a certain screen is populated by the user, without having to start a new script manually once completed.

a message box, keeps the user from doing anything in the session until the box is closed, at which time the rest of the script is processed, which I don't want to occur.

RE: Pause script and wait for user activity in session

Then I'm not sure whether it's at all possible.
IMO, when the user needs to decide how to populate the screen then it's suitable only for interactive processing and not ready for automation with a script.
In the past I have only created makros which took all data from a CSV file, entered them into the appropriate fields on the screen and then processed them pressing som efunction keys and stepping thru the several other screens - but without user interaction.
The user only started the makro and could look how it works - but without interaction.

RE: Pause script and wait for user activity in session

But you surely could divide the task into 2 makros:
1st makro until the specific screen on which the user needs to populate the data.
2nd makro to continue working from this screen

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close