Mouse Coords in a dill file that vb can reference to.

What I would like to really know how to do is the following. The go.dll would be able to supply the x,y coords needed for the MouseMove to work. Not sure if this would be the correct way, but thanks for the help. The following should work with Visual Studio 2010 / Visual Basic.

So the go.dll would be something like:
Class1

Dim moosex = (1000)
Dim moosey = (254)

End Class

Open in new window


Reference go.dll

MouseMoveTo(New Point(Val(moosex), Val(moosey)))

Open in new window

LVL 1
Jack_JonesAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
Make these public

Public moosex = (1000)
Public moosey = (254)
0
Jack_JonesAuthor Commented:
so it wouldn't need a .dll just need to have the varables in a Public setting?
0
CodeCruiserCommented:
Yes you can put the variables in a module and these will be accessible in whole project.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Jack_JonesAuthor Commented:
Is this possible with that method, then I could have it just call 1 value, instead of doing 2 for each value.

Public moosemove As String = MoveMouseTo(New Point(Val(-1152), Val(358)))
0
CodeCruiserCommented:
I did not understand you question? You can declare a Point variable instead of two integers.
0
Jack_JonesAuthor Commented:
I have an autoit mindset sorry, but for example.

In autoit, I could pass a varable using an array to the mouse coord location.

Like:

Global Const $movehere[2] = [ 1020, 39 ]

This above would tell the following where to go.

MouseClick("left", $movehere[0], $movehere[1]

So I guess I am trying to accomplish this in Visual Basic.

0
CodeCruiserCommented:
In that case

Dim Points(2) As Integer
Points(0) = 1020
Points(1) = 39

http://msdn.microsoft.com/en-us/library/wak0wfyt.aspx

Its VB6 right?
0
Jack_JonesAuthor Commented:
This is VB 2010, also I found the following might work. In theory right now it looks like it woulld put the code after the = of the Dim MoveHere, and plug in the values needed for the actual mousemove command. Thoughts?

Dim MoveHere = (New Point(Val(-1152), Val(368)))

AppActivate("Calc")

MoveMouseTo(MoveHere)

Open in new window

0
CodeCruiserCommented:
Yes if its VB.NET then use the Point class.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jack_JonesAuthor Commented:
Thanks, system says it will close the question on 4/14/11 so you will see your points then I beleve.
0
CodeCruiserCommented:
Yeah no problem.
0
Mike TomlinsonHigh School Computer Science, Computer Applications, and Mathematics TeachersCommented:
You can call it like this:

    MoveMouseTo(New Point(1020, 39))

or this:

    Dim pt As New Point(1020, 39)
    MoveMouseTo(pt)
0
Jack_JonesAuthor Commented:
With my own trial and error, and CodeCruiser we were both able to finally get my mind in the right direction.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.