Jump to content

Recommended Posts

Posted

Hi

How can i make my program to click on something i want? Are there any tutorials already? Can't find :S

And also how to make my program write something that i want in any space

cheers

Posted

Start with the help file and "MouseClick"

Posted Image

8)

Im running the Game Updater, then AutoIt Window Info, then i move cursor on the button i want to be clicked

Position is: 14, 410

So im doing code like this:

;Run KalOnline.exe

Run("KalOnline.exe")

;Wait 5s then run game

Sleep(5000)

MouseClick("left", 14, 410, 2)

And it doesnt click on the button :/ , the cursor is moving somewhere on the end of screen

Any ideas?

Posted

I change the code:

;Run KalOnline.exe

Run("KalOnline.exe")

;Wait 5s then run game

Sleep(5000)

MouseClick("left", 14, 410, 0)

but now mouse dont even move ;/

Posted

Question:

Is your X and Y value coordinate within a window or it is a coordinate on your desktop height and width?

Opt("MouseCoordMode", 0) is use for the X and Y value coordinate within the window only.

[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]
Posted

Question:

Is your X and Y value coordinate within a window or it is a coordinate on your desktop height and width?

Opt("MouseCoordMode", 0) is use for the X and Y value coordinate within the window only.

Is your X and Y value coordinate within a window ... Yes, or it is a coordinate on your desktop height and width? No

Opt("MouseCoordMode", 0) is use for the X and Y value coordinate within the window only.... yes, that is what you want.

Actually, if it is a button and you have the Autoit Window Info, You should be using ControlCommand() or ControlClick()

... But you dont look at the info for learning that I linked to

8)

NEWHeader1.png

Posted

Thx alot mate

My Code looks like this now:

Opt("MouseCoordMode", 0)

Run("KalOnline.exe")

Sleep(2000)

MouseClick("left", 14, 410, 2, 0)

Sleep(9000)

MouseClick("left", 440, 507, 2, 0)

It should click on server name Hanin, but it doesnt and the application is closing (my program), its not on tray anymore

and btw do you have msn mayby?

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
  • Recently Browsing   0 members

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