Move cursor to screen position in AS/400 macro

5 pts.
Tags:
AS/400 macros
Is it possible to move cursor to specific screen position in an AS/400 macro file (not VB)

Answer Wiki

Thanks. We'll let you know when a new response is added.

yes

Discuss This Question: 10  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • cristianeme
    how to...?
    30 pointsBadges:
    report
  • TomLiotta
    There is no way to know without first knowing what kind of macro you are creating. There are multiple products that create "AS/400 macros". -- Tom
    125,585 pointsBadges:
    report
  • cristianeme
    please post some examples
    30 pointsBadges:
    report
  • TomLiotta

    please post some examples

    Examples of what? You haven't said what kind of macros are needed yet.

    Tom

    125,585 pointsBadges:
    report
  • cristianeme
    I use the AS400 macro recorder, I find the function to move the cursor to a position X / Y. I do not use vbscript
    30 pointsBadges:
    report
  • TomLiotta

    What "AS400 macro recorder"? What is the product?

    Tom

    125,585 pointsBadges:
    report
  • andyj

    The AS/400 macro recorder is a built in function to record macros from the AS400 emulator. 

    I assume the PC emulator is IBM iSeries Access for Windows.  Macros can be recorded in 2 formats (VBScript file or Macro file) but both are saved as text files with the .mac extension.

    30 pointsBadges:
    report
  • andyj

    Sorry in my answer below I failed to include the full name of the emulator software:

    IBM

    Personal Communications

    iSeries Access for Windows

     

    I am running version 5.9 for Windows

    30 pointsBadges:
    report
  • TomLiotta

    I'm not aware of an iSeries Access emulator 'macro' function to position at a given row/column. Usually it's unnecessary.

    In most cases, a row/column is unimportant and undesirable. Instead, the need is to move to the first input field or to a later input field, e.g., by sending 'Tab' instructions.

    There are ways to move to a desired screen position, though. For example, the 'Home' key can be sent to position the cursor at a known position, say, row 4 column 10. Then a series of 3 CursorDown keys and 2 CursorLeft keys would put the cursor at row 7 column 8.

    The available 'macro' functions are documented in the PComm Emulator {Help} document. A toolbar icon opens the document, or it can be accessed through the menu Help selection. Navigate through {Help} from Personal Communications WorkStation Help-> Personal Communications Procedures-> Using the Actions Functions:Creating a Macro/Script.

    From there, the Macro Statements link leads you to the kinds of statements that can be specified and elements such as all of the possible 'Select a Key-Action' keys that can be sent.

    I have often recorded a macro that has a series of keys such as "3 CursorDown; 2 CursorLeft" and either copy/pasted into a larger macro or used it by calling from another macro. It can be easier to record many things than it is to figure out what you want and type it in.

    Apologies for asking "what product", but there are a number of emulators from different vendors and most can create macros. All use different instructions. Other macros are possible from various products that aren't emulators. (The C programming language even has "macro" capability.)

    Tom

    125,585 pointsBadges:
    report
  • andyj
    Thanks Tom - your idea to use Home combined with CursorDown, CursorLeft keys is helpful - something I had not thought of
    30 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following