Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[68] Simulating User Actions

Last post 08-29-2007 3:08 AM by gangstavexx. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [68] Simulating User Actions

    This thread is for discussions of Simulating User Actions.

    • Post Points: 40
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 01-24-2003 4:46 PM In reply to

    Crystal Reports

    I wan to to do this but with a captionless button on crystal reports preview windows to force click event search button
    • Post Points: 0
  • 11-25-2003 8:38 PM In reply to

    Simulating Mouse Movement

    Many many thanks for this.

    I had found something somewhere else on calling API procedures but couldn't get it to work.

    I had been searching for ages for something like this and am very grateful for it.

    I was trying to create something in Excel that does a screen scrape of a payments system developed in-house, but one of the pages that contained the info I needed called for a right mouse click with no shortcut-key.  Another thing required a mouse-click into a field that had neither an accelerator nor was it a tab-stop.  So emulating a mouse move and click was the only thing I could do.

    Oh the possibilities!  

    • Post Points: 0
  • 03-07-2004 10:53 AM In reply to

    Help...

    I can't make it work.
    I'm using this code:
    Code:
    Private Sub tMover_Timer()
       Select Case tMover.Tag
       Case 0
           MoveMouse GetCurrentX + 10, GetCurrentY
           tMover.Tag = 1
       Case 1
           MoveMouse GetCurrentX + 10, GetCurrentY + 10
           tMover.Tag = 2
       Case 2
           MoveMouse GetCurrentX, GetCurrentY + 10
           tMover.Tag = 3
       Case 3
           MoveMouse GetCurrentX - 10, GetCurrentY + 10
           tMover.Tag = 4
       Case 4
           MoveMouse GetCurrentX - 10, GetCurrentY
           tMover.Tag = 5
       Case 5
           MoveMouse GetCurrentX - 10, GetCurrentY - 10
           tMover.Tag = 6
       Case 6
           MoveMouse GetCurrentX, GetCurrentY - 10
           tMover.Tag = 7
       Case 7
           MoveMouse GetCurrentX + 10, GetCurrentY - 10
           tMover.Tag = 0
       End Select
    End Sub

    To move the mouse around in a circle with a timer. But all it do is moving the mouse towards the bottom right corner. What am I doing wrong?

    [edit] Nevermind. I thought that positions were absolute. They're relative
    • Post Points: 0
  • 03-07-2004 11:04 AM In reply to

    Help... [edit] Nevermind.

    I can't make it work.
    I'm using this code:
    Code:
    Private Sub tMover_Timer()
       Select Case tMover.Tag
       Case 0
           MoveMouse GetCurrentX + 10, GetCurrentY
           tMover.Tag = 1
       Case 1
           MoveMouse GetCurrentX + 10, GetCurrentY + 10
           tMover.Tag = 2
       Case 2
           MoveMouse GetCurrentX, GetCurrentY + 10
           tMover.Tag = 3
       Case 3
           MoveMouse GetCurrentX - 10, GetCurrentY + 10
           tMover.Tag = 4
       Case 4
           MoveMouse GetCurrentX - 10, GetCurrentY
           tMover.Tag = 5
       Case 5
           MoveMouse GetCurrentX - 10, GetCurrentY - 10
           tMover.Tag = 6
       Case 6
           MoveMouse GetCurrentX, GetCurrentY - 10
           tMover.Tag = 7
       Case 7
           MoveMouse GetCurrentX + 10, GetCurrentY - 10
           tMover.Tag = 0
       End Select
    End Sub

    To move the mouse around in a circle with a timer. But all it do is moving the mouse towards the bottom right corner. What am I doing wrong?
    • Post Points: 0
  • 02-12-2005 9:20 PM In reply to

    • kc111
    • Not Ranked
    • Joined on 02-12-2005
    • New Member
    • Points 5

    ShiftOn and CtrlOn

    It might be a good idea to drop the second 'n' from ShiftOnn and CtrlOnn
    • Post Points: 0
  • 09-13-2006 7:51 AM In reply to

    Re: [68] Simulating User Actions

    Will this code prevent the screensaver from beeing activated (if I just use the mouse movement now and then)?

    /Max

    • Post Points: 5
  • 04-13-2007 9:03 PM In reply to

    • cubbuk
    • Not Ranked
    • Joined on 01-08-2007
    • New Member
    • Points 20

    Re: [68] Simulating User Actions

    Hi, is there a C# version of this code, by the way thanks a lot for this code too, it helps me too much.

    • Post Points: 5
  • 08-29-2007 3:08 AM In reply to

    Re: [68] Simulating User Actions

    This is col and all and im happy wit all the keys used i it, except for one, y is it that enter is not in the list when i type KeyPress(vbKey?
    • Post Points: 5
Page 1 of 1 (9 items)