Jump to content

MouseGetPos - missing method?


Recommended Posts

Hi I'm trying to use the MouseGetPos function and running into some problems. Can someone point me to the right direction

I'm using AutoIT inside a ruby script. I was able to use to use MouseClick function without any problem, however when trying to use the MouseGetPos funtion, I'm getting "methond_missing": unknown property or method 'MouseGetPos" (WIN32OLERuntimeError)

Here is my code:

require 'win32ole'

a3 = WIN32OLE.new(AutoItX3.Control")

a3.MouseGetPos()

a3.MouseClick("left")

when I comment out the a3.MouseGetPos, the script runs and the MouseClick executes. Can someone point out what I'm doing wrong with the MouseGetPos. Thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...