Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3599 closed Bug (No Bug)

_WinAPI_ShowCursor does not hide the cursor.

Reported by: Au3Builder Owned by: Jpm
Milestone: Component: Standard UDFs
Version: 3.3.14.2 Severity: None
Keywords: Cc:

Description

I tried to run my as admin..no effect :(

by the way,unban be please... Perm ban is too harsh.

Change History (5)

comment:1 Changed 7 years ago by Melba23

I can reproduce the problem - thanks for the report.

And no we are not going to unban you, so stop asking.

M23

Last edited 7 years ago by Melba23 (previous) (diff)

comment:2 Changed 7 years ago by Melba23

  • Owner set to Jpm
  • Status changed from new to assigned

comment:3 Changed 7 years ago by Jpm

Best for me is to have a repro script so I can analyze
Thanks

Last edited 7 years ago by Jpm (previous) (diff)

comment:4 Changed 7 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from assigned to closed

In fact it is working not sure how to use it in all case

#include <GUIConstantsEx.au3>
#include <WinAPIRes.au3>

Example()

Func Example()
	GUICreate("put cursor over label", 300, 100)
	GUICtrlCreateLabel("label", 125, 40)
	GUICtrlSetCursor(-1, 4)
	GUISetState(@SW_SHOW)
	Local $iRet = _WinAPI_ShowCursor ( 0 )
	ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $iRet = ' & $iRet & @CRLF & '>Error code: ' & @error & '    Extended code: ' & @extended & ' (0x' & Hex(@extended) & ')' & @CRLF) ;### Debug Console

	; Loop until the user exits.
	While 1
		Switch GUIGetMsg()
			Case $GUI_EVENT_CLOSE
				ExitLoop

		EndSwitch
	WEnd
EndFunc   ;==>Example

comment:5 Changed 7 years ago by Au3Builder

Ok,so i found another way to hide the cursor.

All you need is Download Invisible Cursor and put it in the script directory:

http://www.rw-designer.com/cursor-detail/23254

#include <WinAPIRes.au3>

Local $hPrev = _WinAPI_CopyCursor(_WinAPI_LoadCursor(0, 32512))

_WinAPI_SetSystemCursor(_WinAPI_LoadCursorFromFile("invisible.cur"), 32512)
Sleep(5000)
_WinAPI_SetSystemCursor($hPrev, 32512)

unban me please...

i'm begging you.Do you want me to hurt myself?

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.