Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3599 closed Bug (No Bug)

_WinAPI_ShowCursor does not hide the cursor.

Reported by: Au3Builder Owned by: J-Paul Mesnage
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.

Attachments (0)

Change History (5)

comment:1 by Melba23, 8 years ago

I can reproduce the problem - thanks for the report.

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

M23

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

comment:2 by Melba23, 8 years ago

Owner: set to J-Paul Mesnage
Status: newassigned

comment:3 by J-Paul Mesnage, 8 years ago

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

Last edited 8 years ago by J-Paul Mesnage (previous) (diff)

comment:4 by J-Paul Mesnage, 8 years ago

Resolution: No Bug
Status: assignedclosed

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 by Au3Builder, 8 years ago

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?

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.