untomas Posted December 3, 2012 Share Posted December 3, 2012 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). Quote Link to comment Share on other sites More sharing options...
LordJashin Posted December 4, 2012 Share Posted December 4, 2012 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? Quote Link to comment Share on other sites More sharing options...
FHannes Posted December 4, 2012 Share Posted December 4, 2012 This isn't a bug... Have you tried GetCursorType? Quote Link to comment Share on other sites More sharing options...
untomas Posted December 5, 2012 Author Share Posted December 5, 2012 (edited) 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 December 5, 2012 by untomas Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted December 5, 2012 Share Posted December 5, 2012 What game is this? Would help to know. Quote Link to comment Share on other sites More sharing options...
untomas Posted December 5, 2012 Author Share Posted December 5, 2012 Rift Quote Link to comment Share on other sites More sharing options...
FHannes Posted December 5, 2012 Share Posted December 5, 2012 SCAR's functions are supposed to ignore cursors. 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... Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted December 5, 2012 Share Posted December 5, 2012 (edited) 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 December 5, 2012 by Bixby Sayz Quote Link to comment Share on other sites More sharing options...
untomas Posted December 5, 2012 Author Share Posted December 5, 2012 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 =( Quote Link to comment Share on other sites More sharing options...