Jump to content
Sign in to follow this  
tjiuz

[Ask ] Change Keyboard Function to Koordinat Mouse

Recommended Posts

tjiuz

if I wanted to make a script for example I press a button, the cursor automatically moves to the coordinates 503, 547 and right-click just once .. help please on ..

sorry my english is not correct

Share this post


Link to post
Share on other sites
BigDod

It is all in the help file.

HotKeySet

MouseMove

MouseClick



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
tjiuz

It is all in the help file.

HotKeySet

MouseMove

MouseClick

What this example?

HotKeySet ("1")

MouseMove (503, 547,1,1)

Mouseclick ("right")

Edited by tjiuz

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, tjiuz. Try something like this.

HotKeySet("1", "Mouse")

While 1
Sleep(100)
WEnd

Func Mouse()

MouseMove(503,547)
Mouseclick ("right")

EndFunc

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
tjiuz

Hi, tjiuz. Try something like this.

HotKeySet("1", "Mouse") While 1 Sleep(100) WEnd Func Mouse() MouseMove(503,547) Mouseclick ("right") EndFunc
thanks for the help

then how do I add another hotkey?

for example:

hotkey 2 to 545.547

hotkey 3 to 592.547

hotkey 4 to 635.547

thanks b4 ...

Edited by tjiuz

Share this post


Link to post
Share on other sites
somdcomputerguy
MouseMove doesn't need to be used with MouseClick, unless you just want to move the mouse, as MouseClick can move it as well. Both of these functions accept an optional speed parameter.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
tjiuz

MouseMove doesn't need to be used with MouseClick, unless you just want to move the mouse, as MouseClick can move it as well. Both of these functions accept an optional speed parameter.

yes if movemouse omitted, the cursor can still move with the command mouseclick ("Right", 503,547,1,1) and then how to add another hotkey in a script?

Edited by tjiuz

Share this post


Link to post
Share on other sites
somdcomputerguy
JLogan3o13 already showed you how to add the first one (post #4), additional ones are similar to that. C'mon man. If you really can't figure it out, there's plenty of example code in the Help file, posts in this forum, and posts in the Example Scripts forum that have more than one HotKey defined. Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
tjiuz

JLogan3o13 already showed you how to add the first one (post #4), additional ones are similar to that. C'mon man. If you really can't figure it out, there's plenty of example code in the Help file, posts in this forum, and posts in the Example Scripts forum that have more than one HotKey defined.

I've been looking at post an example ... but I still have not found how to add another hotkey in a script .. too many times I've tried .. but all can not ..

thanks

Edited by tjiuz

Share this post


Link to post
Share on other sites
JLogan3o13

tjiuz, the help file under the topic HotKeySet explicitly shows you how to create multiple hot keys. Do not tell us you have searched and searched when it is written there right for you :oops:


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
tjiuz

tjiuz, the help file under the topic HotKeySet explicitly shows you how to create multiple hot keys. Do not tell us you have searched and searched when it is written there right for you :oops:

Thanks .. its very helpful clue .. it turns out before I did not know that just add func & endfunc only ..

Thanks for the help ^ ^

Share this post


Link to post
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
Sign in to follow this  

×