Mouse Cursor change color on click
Mouse Cursor change color on click
There is this Recording software named "Xsplit" where the option "Show mouse clicks" has this effect in the output video, where the mouse pointer changes from white (default) to black color to indicate the usage of the left mouse button. Now, this effect only shows in the output video. How do I make my pointer have this kind of effect always? Here's an example :
Re: Mouse Cursor change color on click
Welcome to this AutoHotkey forum!
Related: viewtopic.php?p=451694#p451694 • viewtopic.php?t=82431
Code: Select all
~LButton::SetSystemCursor("D:\images\cursors\bigRed.cur") ; Adjust as you wish
~LButton Up::RestoreCursors()
SetSystemCursor(file) { ; https://www.autohotkey.com/boards/viewtopic.php?t=75867
CursorHandle := DllCall("LoadCursorFromFile", Str, file)
Cursors = 32512,32513,32514,32515,32516,32640,32641,32642,32643,32644,32645,32646,32648,32649,32650,32651
Loop, Parse, Cursors, `,
DllCall("SetSystemCursor", Uint, CursorHandle, Int, A_Loopfield)
}
RestoreCursors() {
SPI_SETCURSORS := 0x57, DllCall("SystemParametersInfo", UInt, SPI_SETCURSORS, UInt, 0, UInt, 0, UInt, 0)
}
Re: Mouse Cursor change color on click
sorry, I have basically zero coding knowledge. What am I supposed to replace with what? The "dark colored" cursors file is named "darkcursors" in location "C:\Users\user\Desktop\darkcursors"mikeyww wrote: ↑06 Jul 2022, 05:32Welcome to this AutoHotkey forum!
Related: viewtopic.php?p=451694#p451694 • viewtopic.php?t=82431Code: Select all
~LButton::SetSystemCursor("D:\images\cursors\bigRed.cur") ; Adjust as you wish ~LButton Up::RestoreCursors() SetSystemCursor(file) { ; https://www.autohotkey.com/boards/viewtopic.php?t=75867 CursorHandle := DllCall("LoadCursorFromFile", Str, file) Cursors = 32512,32513,32514,32515,32516,32640,32641,32642,32643,32644,32645,32646,32648,32649,32650,32651 Loop, Parse, Cursors, `, DllCall("SetSystemCursor", Uint, CursorHandle, Int, A_Loopfield) } RestoreCursors() { SPI_SETCURSORS := 0x57, DllCall("SystemParametersInfo", UInt, SPI_SETCURSORS, UInt, 0, UInt, 0, UInt, 0) }
Re: Mouse Cursor change color on click
A cursor file usually has a ".cur" extension. You can replace the full path on line 1.
Re: Mouse Cursor change color on click
This code worked :
Code: Select all
file = E:\Games\Normal.cur
~LButton::SetSystemCursor(file)
~LButton Up::RestoreCursors()
SetSystemCursor(file) {
CursorHandle := DllCall("LoadCursorFromFile", Str, file)
Cursors = 32512,32513,32514,32515,32516,32640,32641,32642,32643,32644,32645,32646,32648,32649,32650,32651
Loop, Parse, Cursors, `,
DllCall("SetSystemCursor", Uint, CursorHandle, Int, A_Loopfield)
}
RestoreCursors() {
SPI_SETCURSORS := 0x57, DllCall("SystemParametersInfo", UInt, SPI_SETCURSORS, UInt, 0, UInt, 0, UInt, 0)
}
Re: Mouse Cursor change color on click
The second link that I posted is @SKAN's SetCursorScheme. Could try that. I never used it.
Re: Mouse Cursor change color on click
Makes sense! Thanks for sharing.
Re: Mouse Cursor change color on click
hey could you help me how to do it? i don't really understand how to change other cursors too. thanks
Re: Mouse Cursor change color on click
mateejr, good vibes
I think it only makes sense to change the color of the cursor when clicking (and at most they change with the right click), why change the color of the "waiting" cursor or that of resizing, if in the second case it is already done click when resizing and therefore it will only be seen in those cases?
What do you want that color change for? If what you want is to do online courses, programs like camtasia have effects that manifest themselves during the course. If what you want is to have the cursors in a different color, look for a gallery of cursors or edit them with programs like icoFX.
I think it only makes sense to change the color of the cursor when clicking (and at most they change with the right click), why change the color of the "waiting" cursor or that of resizing, if in the second case it is already done click when resizing and therefore it will only be seen in those cases?
What do you want that color change for? If what you want is to do online courses, programs like camtasia have effects that manifest themselves during the course. If what you want is to have the cursors in a different color, look for a gallery of cursors or edit them with programs like icoFX.
Re: Mouse Cursor change color on click
thanks for replying but i already figured it out. thank youwetware05 wrote: ↑17 Dec 2022, 06:52mateejr, good vibes
I think it only makes sense to change the color of the cursor when clicking (and at most they change with the right click), why change the color of the "waiting" cursor or that of resizing, if in the second case it is already done click when resizing and therefore it will only be seen in those cases?
What do you want that color change for? If what you want is to do online courses, programs like camtasia have effects that manifest themselves during the course. If what you want is to have the cursors in a different color, look for a gallery of cursors or edit them with programs like icoFX.