Mouse click with win32api

I have read that I can use AutoIt, but that the program has to have an
ole interface for it to be possible. That autoit doesn't really move the
mouse cursor, but rather tells the program to click a certain
coordinate.

Is it possible to do this using win32api instead of autoIt, or is there
another neat way of acheive it?

Advertisements

Emil Sandin wrote:
> Hi,
> I would like to write a script like this:
>
> mouse.move_cursor_to( x, y )
> mouse.click_left_button()
>
> I have read that I can use AutoIt, but that the program has to have an
> ole interface for it to be possible. That autoit doesn't really move the
> mouse cursor, but rather tells the program to click a certain
> coordinate.
>
> Is it possible to do this using win32api instead of autoIt, or is there
> another neat way of acheive it?
>
> Regards
> Emil

Sorry, I was to fast to create a post.
AutoIt seems to do the trick for me:

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!