Jump to content

How to check for Cursor change?


Recommended Posts

Hello,

Sorry for my inactivity here..

Just checked the thread back and no this is not for a game.

I have a company software...

The software has custom cursors, but there is this case where the

cursor will change to another cursor to notify the user that there is

some sort of new action going on.

I want the AutoIt to detect what cursor it is changed to and act

accoording to the identified cursor.

I see so many sample of codes in this thread and I also see people who

are trying them out so I am kinda confused what to try out but I think I

will try out some of the code and see what is workin and what not.

Btw yeah I have access to the cursor files.

They aren't .cur files though, but .ani files.

Thanks for all the help! :mellow:

Edited by Sedoc94
Link to comment
Share on other sites

Hello,

Sorry for my inactivity here..

Just checked the thread back and no this is not for a game.

I have a company software...

The software has custom cursors, but there is this case where the

cursor will change to another cursor to notify the user that there is

some sort of new action going on.

I want the AutoIt to detect what cursor it is changed to and act

accoording to the identified cursor.

I see so many sample of codes in this thread and I also see people who

are trying them out so I am kinda confused what to try out but I think I

will try out some of the code and see what is workin and what not.

Btw yeah I have access to the cursor files.

They aren't .cur files though, but .ani files.

Thanks for all the help! :mellow:

It may be, that there is another way around this without worrying about cursors at all ... perhaps you need to think outside the box.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Hello,

Sorry for my inactivity here..

Just checked the thread back and no this is not for a game.

I have a company software...

The software has custom cursors, but there is this case where the

cursor will change to another cursor to notify the user that there is

some sort of new action going on.

I want the AutoIt to detect what cursor it is changed to and act

accoording to the identified cursor.

I see so many sample of codes in this thread and I also see people who

are trying them out so I am kinda confused what to try out but I think I

will try out some of the code and see what is workin and what not.

Btw yeah I have access to the cursor files.

They aren't .cur files though, but .ani files.

Thanks for all the help! :mellow:

My mistake!

One thing we can look at to see if something is happening is reading the controls in the application. Have you tried using the AutoIt Window Info tool on the application to see if you can read the controls?

Link to comment
Share on other sites

My mistake!

One thing we can look at to see if something is happening is reading the controls in the application. Have you tried using the AutoIt Window Info tool on the application to see if you can read the controls?

What is your idea?

@Sedoc94

there are other ways to find if the cursor is hovering an exact control.. there are APIs that found the control under the cursor, there`s a function called _WinAPI_WindowFromPoint or _WinAPI_ChildWindowFromPointEx this last one is included in the winapiex.au3 UDF that you can find in the example scripts section of this forum.(VERY RECOMENDED UDF)

Edited by monoscout999
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...