Sign in to follow this  
Followers 0
t0ddie

cursor color?

5 posts in this topic

can you set the cursor so that its black? or set it as transparent so you cant see it? can you set it to an icon? and if so can it be returned to the users default at script close?


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites



#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_ARROW') Then Dim $Cursor_ARROW = 2
GUICtrlSetCursor("controlID",$Cursor_ARROW)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_CROSS') Then Dim $Cursor_CROSS = 3
GUICtrlSetCursor("controlID",$Cursor_CROSS)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_HELP') Then Dim $Cursor_HELP = 4
GUICtrlSetCursor("controlID",$Cursor_HELP)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_IBEAM') Then Dim $Cursor_IBEAM = 5
GUICtrlSetCursor("controlID",$Cursor_IBEAM)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_ICON') Then Dim $Cursor_ICON = 6
GUICtrlSetCursor("controlID",$Cursor_ICON)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_NO') Then Dim $Cursor_NO = 7
GUICtrlSetCursor("controlID",$Cursor_NO)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_SIZE') Then Dim $Cursor_SIZE = 8
GUICtrlSetCursor("controlID",$Cursor_SIZE)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_SIZEALL') Then Dim $Cursor_SIZEALL = 9
GUICtrlSetCursor("controlID",$Cursor_SIZEALL)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_SIZENESW') Then Dim $Cursor_SIZENESW = 10
GUICtrlSetCursor("controlID",$Cursor_SIZENESW)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_SIZENS') Then Dim $Cursor_SIZENS = 11
GUICtrlSetCursor("controlID",$Cursor_SIZENS)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_SIZENWSE') Then Dim $Cursor_SIZENWSE = 12
GUICtrlSetCursor("controlID",$Cursor_SIZENWSE)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_SIZEWE') Then Dim $Cursor_SIZEWE = 13
GUICtrlSetCursor("controlID",$Cursor_SIZEWE)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_UPARROW') Then Dim $Cursor_UPARROW = 14
GUICtrlSetCursor("controlID",$Cursor_UPARROW)
#EndRegion --- CodeWizard generated code End ---

#Region --- CodeWizard generated code Start ---
If Not IsDeclared('Cursor_WAIT') Then Dim $Cursor_WAIT = 15
GUICtrlSetCursor("controlID",$Cursor_WAIT)
#EndRegion --- CodeWizard generated code End ---


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

im trying to hide the screen, AND the cursor .

#include <GUIConstants.au3>
$curse = GUICreate("My GUI", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP,$WS_EX_TOPMOST)
GUICtrlSetcursor($curse,7)
GUISetBkColor (0x000000)
GUISetState ()
sleep(2500)

this isnt working.

i also tried to make a button, and disable it, but not working either.

#include <GUIConstants.au3>
$curse = GUICreate("My GUI", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP,$WS_EX_TOPMOST)
$dis = GUICtrlCreateButton("",@DesktopWidth, @DesktopHeight, 0, 0)
GUICtrlSetState($dis,$GUI_DISABLE)
GUISetBkColor (0x000000)
GUISetState ()
sleep(2500)

hmmm, it says only valid cursor id.. so you cant make your own? i dont see how to change the color, or make a custom icon for the cursor. only how to change the style of the cursor in the help file.

and i dont know why 7 (no) isnt working. i tried 0 as well

0 = UNKNOWN (this includes pointing and grabbing hand icons)

1 = APPSTARTING

2 = ARROW

3 = CROSS

4 = HELP

5 = IBEAM

6 = ICON

7 = NO

8 = SIZE

9 = SIZEALL

10 = SIZENESW

11 = SIZENS

12 = SIZENWSE

13 = SIZEWE

14 = UPARROW

15 = WAIT

still tryin to figure this out

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

Why not to set cursor outside visible Desktop area:

#include <GUIConstants.au3>
$curse = GUICreate("My GUI", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP,$WS_EX_TOPMOST)
MouseMove(@DesktopWidth + 100, 0, 0)
GUISetBkColor (0x000000)
GUISetState ()
sleep(2500)

Share this post


Link to post
Share on other sites

that works, but if you move the mouse back you see it again.

any other way?


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0