higrfgvdfgdf Posted December 31, 2010 Share Posted December 31, 2010 hello, I would like to get the mouse coordinates and display some kind of drawing (such as a cross or a cursor or a white arrow) that would follow the mouse and get updated everytime the mouse moves (so basically it just redraws the mouse whereever it is). It would need to be lightweight so that it works flawlessly as the mouse moves. The thing is that there's a bug in divx web players that makes the mouse disappear and not appear again, which is VERY hirritating. If you could help me it would prevent me from going mad and jump out of the window. I'm just a newbie at programming but I'm guessing this is easy for you, and I come to this site because I've heard this is probably the easiest way to make it work, in just a few lines of code. Thanks a lot for your help. Link to comment Share on other sites More sharing options...
Zedna Posted December 31, 2010 Share Posted December 31, 2010 There is missing very important information. Is it for fullscreen? If answer is yes then I doubt there is no chance. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
higrfgvdfgdf Posted December 31, 2010 Author Share Posted December 31, 2010 no it's not for full screen. It's just for any normal application. The thing is, the mouse disappears while playing the divx, but doesn't appear afterwards wherever you go in the browser, so basically you have to kill firefox to be able to use the mouse again, which is very frustating. I guess there are simple functions to get the mouse position and draw something on the screen. Thanks for your concern Link to comment Share on other sites More sharing options...
MvGulik Posted December 31, 2010 Share Posted December 31, 2010 (edited) Nevermind me, but it seems you need to get a new login-names list. ... "higrfgvdfgdf" looks like just a fast one handed key ruffle. Edited December 31, 2010 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
higrfgvdfgdf Posted January 1, 2011 Author Share Posted January 1, 2011 (edited) It's just the first part of my password, which I indeed typed randomly. Is MvGulik your real name or Gender: Not Telling your gender? Anyway does that really matter to the problem at hand? Can you please help me to find out how to retrieve the mouse coordinates and then display a cross on the screen please? That would really help me. Thanks a lot. Edited January 1, 2011 by higrfgvdfgdf Link to comment Share on other sites More sharing options...
Zedna Posted January 1, 2011 Share Posted January 1, 2011 Look here Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
MvGulik Posted January 1, 2011 Share Posted January 1, 2011 It's just the first part of my password, which I indeed typed randomly. Is MvGulik your real name or Gender: Not Telling your gender?Anyway does that really matter to the problem at hand?Can you please help me to find out how to retrieve the mouse coordinates and then display a cross on the screen please?That would really help me.Thanks a lot.Your welcome. (matter of speech of course)And thanks for clearing that up. "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
higrfgvdfgdf Posted January 1, 2011 Author Share Posted January 1, 2011 So if I used just this line, it would make the mouse reappear? Link to comment Share on other sites More sharing options...
MvGulik Posted January 1, 2011 Share Posted January 1, 2011 (edited) That seems to be the idea here.SPI_SETCURSORS, 0x0057, Reloads the system cursors. Set the uiParam parameter to zero and the pvParam parameter to NULL.why not try it out ... (setup a little script that acts on two hotkeys, one to quit the script again, and a other to run those 2 lines.) Edited January 1, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
UEZ Posted January 1, 2011 Share Posted January 1, 2011 Here someting I found in my code collections: expandcollapse popup#include<WindowsConstants.au3> #include <WinAPI.au3> $crosscolor = 0x0000FF #Region - GUI Create $gui = GUICreate('MouseCross', 25, 25, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW + $WS_EX_LAYERED + $WS_EX_TRANSPARENT + $WS_EX_TOPMOST) $transcol = 0xABCDEF If $crosscolor = $transcol Then $transcol = 0xFBCDEF GUISetBkColor($transcol) GUICtrlCreateLabel("", 11, 0, 3, 10) GUICtrlSetBkColor(-1, $crosscolor) GUICtrlCreateLabel("", 11, 15, 3, 10) GUICtrlSetBkColor(-1, $crosscolor) GUICtrlCreateLabel("", 0, 11, 10, 3) GUICtrlSetBkColor(-1, $crosscolor) GUICtrlCreateLabel("", 15, 11, 10, 3) GUICtrlSetBkColor(-1, $crosscolor) GUISetState() #EndRegion - GUI Create $mouse_info = GUIGetCursorInfo() $cursor_id = $mouse_info[4] HotKeySet("{Esc}", "_Exit") _WinAPI_SetLayeredWindowAttributes($gui, $transcol) #Region - GUI SelectLoop While 1 WinMove($gui, "", MouseGetPos(0) - 12, MouseGetPos(1) - 12) Sleep(10) WEnd #EndRegion - GUI SelectLoop Func _Exit() Exit EndFunc Maybe helpful for you! Happy new year, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now