Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RustCursorPath := "E:\_After_Windows_Reinstall\rust_crosshair2.cur"
- DefaultCursorPath := "%SYSTEMROOT%\Cursors\aero_arrow.cur"
- UpdateCursor()
- {
- SPI_SETCURSORS := 0x57
- result := DllCall("SystemParametersInfo", "UInt", SPI_SETCURSORS, "UInt", 0, "UInt", 0, "UInt", 0)
- if (result != 1)
- {
- MsgBox Error Level: %ErrorLevel% `nLast error: %A_LastError%`nresult: %result%
- }
- }
- Loop
- {
- Process, Exist, RustClient.exe
- if (%ErrorLevel% != 0)
- {
- RegWrite, REG_EXPAND_SZ, HKEY_CURRENT_USER\Control Panel\Cursors, Arrow, %RustCursorPath%
- UpdateCursor()
- Process, WaitClose, RustClient.exe
- if (%ErrorLevel% = 0)
- {
- RegWrite, REG_EXPAND_SZ, HKEY_CURRENT_USER\Control Panel\Cursors, Arrow, %DefaultCursorPath%
- UpdateCursor()
- }
- }
- Sleep, 5000
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement