+ Reply to Thread
Results 1 to 3 of 3

SetCursorPos

  1. #1
    Registered User
    Join Date
    04-25-2005
    Posts
    99

    SetCursorPos

    I'm trying to get some code that will control the cursor position on my AS400. I need to set the cursor to position 15, 9, then send the command F2.
    Here is my code:
    PS1.SetCursorPos 15, 9
    OIA1.WaitForAppAvailable
    OIA1.WaitForInputReady
    PS1.SendKeys "[pf2]", 15, 9
    OIA1.WaitForAppAvailable
    OIA1.WaitForInputReady

    This does not work, however, because it will not set the cursor position unless I somehow activate the AS400 window, then set the cursor position, then send F2. I'm not sure how to do this with code, or if there is any other way around it.

    Anyone know how to solve my little problem?

    TIA,

    DejaVu

  2. #2
    Registered User
    Join Date
    07-17-2005
    Location
    Bridgwater, Somerset, UK
    Posts
    10
    So, what version of Excel are you using?

  3. #3
    Registered User
    Join Date
    04-25-2005
    Posts
    99
    Microsoft Excel 2003

    Maybe this will help. I used:
    Dim PS1 As AutPS, OIA1 As AutOIA
    Last edited by DejaVu; 10-21-2005 at 04:06 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1