Jump to content
untomas

Cursor problem

Recommended Posts

Hello,

im currently writing script for one game,

and for it to work i need to catch event of changing cursor to another image,

my problem is:

TSCARclient.capture do not return current mouse cursor as part of bitmap

and

FindBitmap<> do not helps either =\

 

so, is there a way to compare mouse cursor with given bitmap ? (cursors in this game are custom, and not default windows ones).

Link to comment
Share on other sites

Hello,

im currently writing script for one game,

and for it to work i need to catch event of changing cursor to another image,

my problem is:

TSCARclient.capture do not return current mouse cursor as part of bitmap

and

FindBitmap<> do not helps either =\

 

so, is there a way to compare mouse cursor with given bitmap ? (cursors in this game are custom, and not default windows ones).

 

No...Not that I know of.

 

You can suggest this to SCAR's bugtracker at bug.scar-divi.com

If you don't...I will, its a good idea since cursors can change a lot when playing a game.

 

If I'm wrong then how? TCursor?

Link to comment
Share on other sites

GetCursorType returns 0 for every cursor =\

 

edit1:

Print Screen, build-in game SS feature, TSCARclient.capture dont return cursor as part of image,

SCAR divi's "pick bitmap" tool simply overwrites game cursor when im trying to get it,

but i was able to use some softwere (like IrfanView) to get them...

 

wich isnt realy helpfull if i cant compare it with sometihng...

Edited by untomas
Link to comment
Share on other sites

Had a quick look. This is a DirectX game and the in game cursor changes according to what is under your mouse: If it is someone you can talk to you get a talk icon cursor, etc.

 

GetCursorType always returns crDefault regardless of where the mouse is in game (no big surprise there). I imagine there is a way to read the DirectX cursor if you want to write a .dll to interface with DirectX.

Edited by Bixby Sayz
Link to comment
Share on other sites

I'm not sure how having an image of the cursor would help you, after all, you should be able to find where you have to click, not find a cursor change...

 

in my case its whole different story...

there is event i need to catch, and only way i can tell it happened - cursor changes to another, and some sound plays,

its not triggered by something under my cursor pointer, just happens randomly in time (every 3-20 secs)

 

I imagine there is a way to read the DirectX cursor if you want to write a .dll to interface with DirectX.

Sadly thats beyond my knowledge =(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...