Emuforums.com

Go Back   Emuforums.com > Handheld Emulation > Nintendo Handhelds > No$GBA Discussion
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read

Reply
 
Thread Tools Display Modes
Old December 1st, 2009, 21:47   #1
Jjiinx
Registered User
 
Join Date: Mar 2009
Location: USA, CA
Posts: 7
Tutorial-How to 'Stylus' your cursor quickly, With step by step Pictures!

Here I'm going to explain how to make a shortcut that will easily toggle your normal mouse cursor to a stylus cursor, and then back again each time you click it.

First download and Install AutoHotKey from this link AutoHotkey Download

After the program installs run it, you should get this popup


Click yes and a text document opens up. Select All and delete

Now paste the following into the document:

Quote:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Farhan Ahmad <farhan@thebitguru.com>
;
; Script Function:
; Swaps the mouse cursor schemes between the given one and "Windows Default."
;

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

; Windows Aero scheme is a system scheme in Windows Vista and will be defined
; as a user scheme in other versions.
if (A_OSVersion = "WIN_VISTA") {
SwapCursors("Windows Aero", 2)
} else {
SwapCursors("Windows Aero", 1)
}

; Function Name:
; SwapCursors
;
; Description:
; This function swaps the mouse cursors schemes between the Windows Default
; and the given scheme.
;
; Parameters:
; schemeName - Name of the other scheme.
; schemeSource - Type of the scheme.
; 0 - None Windows Default (Probably not going to be used)
; 1 - User Scheme
; 2 - System Scheme
;
SwapCursors(schemeName, schemeSource)
{
CursorKeyNames = Arrow,Help,AppStarting,Wait,Crosshair,IBeam,NWPen, No,SizeNS,SizeWE,SizeNWSE,SizeNESW,SizeAll,UpArrow ,Hand
RegRead currentScheme, HKEY_CURRENT_USER, Control Panel\Cursors
if (currentScheme = schemeName) {
schemeName = Stylus
schemeSource = 1
}

; Figure out the key that the scheme is saved at.
If (schemeSource = 0) { ; Windows default
registryKey = SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes
registryRoot = HKEY_LOCAL_MACHINE
} else if (schemeSource = 1) { ; User scheme
registryKey = Control Panel\Cursors\Schemes
registryRoot = HKEY_CURRENT_USER
} else if (schemeSource = 2) { ; System scheme
registryKey = SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes
registryRoot = HKEY_LOCAL_MACHINE
} else {
MsgBox Invalid scheme type
exit
}
;MsgBox %registryKey% %registryRoot% %schemeName% %schemeSource%

; Read the scheme
RegRead schemeToUse, %registryRoot%, %registryKey%, %schemeName%

; Write out the basic info about the new scheme
if (schemeName = "Windows Default") {
RegWrite REG_SZ, HKEY_CURRENT_USER, Control Panel\Cursors, ,
} else {
RegWrite REG_SZ, HKEY_CURRENT_USER, Control Panel\Cursors, , %schemeName%
}
RegWrite REG_DWORD, HKEY_CURRENT_USER, Control Panel\Cursors, Scheme Source, %schemeSource%

; Remove any double quotes from the scheme
StringReplace schemeToUse, schemeToUse, `", , All

; Replace the keys.
StringSplit schemeCursors, schemeToUse, `,
Loop, Parse, CursorKeyNames, `,
{
RegWrite REG_EXPAND_SZ, HKEY_CURRENT_USER, Control Panel\Cursors, %A_LoopField%, % schemeCursors%A_Index%
}

; Load the new cursors
SPI_SETCURSORS := 0x57
result := DllCall("SystemParametersInfo", "UInt", SPI_SETCURSORS, "UInt", 0, "UInt", 0, "UInt", 0)
;MsgBox Error Level: %ErrorLevel% `nLast error: %A_LastError%`nresult: %result%
}
Save and exit the text document.

Open up control panel and search for mouse, then click "Change how the mouse pointer looks"


Double click "Normal Select"


Now find and double click "aero_pen_xl.cur"


Click "Save As..."


Type in "Stylus" and click OK


Now close everything and go to "C:\Program Files\AutoHotkey" or "C:\Program Files (x86)\AutoHotkey" if you're on a 64bit OS

Right click AutoHotkey.exe and click Send to... Desktop (Create Shortcut)


Close everything and rename the new shortcut on your desktop to Stylus


*Note* The rest of this is optional, only do it if you want the shortcut on your desktop to look like a stylus

Save this file to anywhere on your computer (I put mine in my No%GBA folder) https://dl.dropbox.com/u/3046224/stylus.ico

Right click the Stylus shortcut on your desktop and click Properties, in the window that pops up click "Change Icon"


Click "Browse" and locate and double click that stylus icon file you saved (Mine is in my No$GBA folder)


Click OK, and then click OK on the next window

That's it! Now just double click the Stylus icon on your desktop to change your cursor to a stylus, and double click it again to change back to normal! Sorry that there were so many steps, but it's worth it IMO, hope you enjoy, and happy gaming with your stylus!

Note that this tutorial was written using Windows 7 64bit, so if something isn't the same for your OS then just find something similar (such as the stylus cursor icon filenames)

Also if you use myZoom by testerHooK heres a realistic DS skin to go with your new stylus: https://dl.dropbox.com/u/3046224/Jjiinx%20DS%20Skin.png

This is how the new skin and stylus looks in game:

-Jjiinx

Last edited by Jjiinx; December 1st, 2009 at 21:57..
Jjiinx is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old December 2nd, 2009, 17:00   #2
Lex_Light
Registered User
 
Lex_Light's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 2,609
Great! Works in Windows XP? xD
__________________
AMD Athlon XP 2200+ (1,81 GHz), 1,25 GB of RAM, nVidia GeForce MX/MX 400. (Yes, it's an old computer).
New one:
Intel i5 2500k 3,3 GHz; 8 GB DDR3 RAM, AMD Radeon 6670 2GB DDR3 (by Gigabyte), Windows 7 Ultimate x64 SP1.
Sorry for my english, I'm Spanish.
Please, read the rules of Emuforums before posting. Thanks.
Page to download ROMs and ISOs for free.
18 November 2009, at 19:59 : Nevar forget.
Quote:
Originally Posted by sergitox29 View Post
check if your mother is compatible with 45nm processors
My Deviantart (WARNING, IT'S MAINLY SPANISH!)
Lex_Light is offline   Reply With Quote

Old December 2nd, 2009, 23:25   #3
Jjiinx
Registered User
 
Join Date: Mar 2009
Location: USA, CA
Posts: 7
Quote:
Originally Posted by Lex_Light View Post
Great! Works in Windows XP? xD
It should
Jjiinx is offline   Reply With Quote

Old December 3rd, 2009, 01:28   #4
SCHUMI_4EVER
Hackin 'n Slashin
 
SCHUMI_4EVER's Avatar
 
Join Date: Jan 2007
Location: Most-expensive-Internet-on-the-Planet Land : South Africa
Posts: 26,660
I can't see anything that would prevent it from working other than I don't think XP has that cursor...though as far as I remember it does have a pen cursor which resembles it (though it's yellow or blue I think).
__________________
Intel Core2Quad Q9550 (2.83Ghz stock) | ASUS P5Q | 2x2GB Transcend JetRam DDR2-800 | ASUS ENGTX260\HDTP\896M | Windows Vista Home Premium 64bit SP1
The Champ has retired but may his Legacy live on FOREVER !!!!
Get it right fools! The glass is HALF-EMPTY, not half-full!!!
!!! WARNING: Emulation requires a brain !!! WARNING: Emulation =/= Piracy !!!
SCHUMI_4EVER is offline   Reply With Quote

Old December 3rd, 2009, 04:21   #5
Gamer3000
DS Gamer
 
Gamer3000's Avatar
 
Join Date: Jul 2003
Location: Monterrey, México
Posts: 113
It is possible to switch back to a custom cursor scheme other than the system default?

Thanks!
__________________
It's not who I am underneath, but what I do that defines me...
Gamer3000 is offline   Reply With Quote

Old December 3rd, 2009, 07:14   #6
Jjiinx
Registered User
 
Join Date: Mar 2009
Location: USA, CA
Posts: 7
Quote:
Originally Posted by Gamer3000 View Post
It is possible to switch back to a custom cursor scheme other than the system default?

Thanks!
Go to your documents folder and edit AutoHotkey.ahk to this:

Quote:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Farhan Ahmad <farhan@thebitguru.com>
;
; Script Function:
; Swaps the mouse cursor schemes between the given one and "Windows Default."
;

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

; Windows Aero scheme is a system scheme in Windows Vista and will be defined
; as a user scheme in other versions.
if (A_OSVersion = "WIN_VISTA") {
SwapCursors("Windows Aero", 2)
} else {
SwapCursors("Windows Aero", 1)
}

; Function Name:
; SwapCursors
;
; Description:
; This function swaps the mouse cursors schemes between the Windows Default
; and the given scheme.
;
; Parameters:
; schemeName - Name of the other scheme.
; schemeSource - Type of the scheme.
; 0 - None Windows Default (Probably not going to be used)
; 1 - User Scheme
; 2 - System Scheme
;
SwapCursors(schemeName, schemeSource)
{
CursorKeyNames = Arrow,Help,AppStarting,Wait,Crosshair,IBeam,NWPen, No,SizeNS,SizeWE,SizeNWSE,SizeNESW,SizeAll,UpArrow ,Hand
RegRead currentScheme, HKEY_CURRENT_USER, Control Panel\Cursors
if (currentScheme = schemeName) {
schemeName = Stylus
schemeSource = 1
}

; Figure out the key that the scheme is saved at.
If (schemeSource = 0) { ; Windows default
registryKey = Control Panel\Cursors\Schemes
registryRoot = HKEY_CURRENT_USER
} else if (schemeSource = 1) { ; User scheme
registryKey = Control Panel\Cursors\Schemes
registryRoot = HKEY_CURRENT_USER
} else if (schemeSource = 2) { ; System scheme
registryKey = Control Panel\Cursors\Schemes
registryRoot = HKEY_CURRENT_USER
} else {
MsgBox Invalid scheme type
exit
}
;MsgBox %registryKey% %registryRoot% %schemeName% %schemeSource%

; Read the scheme
RegRead schemeToUse, %registryRoot%, %registryKey%, %schemeName%

; Write out the basic info about the new scheme
if (schemeName = "Windows Default") {
RegWrite REG_SZ, HKEY_CURRENT_USER, Control Panel\Cursors, ,
} else {
RegWrite REG_SZ, HKEY_CURRENT_USER, Control Panel\Cursors, , %schemeName%
}
RegWrite REG_DWORD, HKEY_CURRENT_USER, Control Panel\Cursors, Scheme Source, %schemeSource%

; Remove any double quotes from the scheme
StringReplace schemeToUse, schemeToUse, `", , All

; Replace the keys.
StringSplit schemeCursors, schemeToUse, `,
Loop, Parse, CursorKeyNames, `,
{
RegWrite REG_EXPAND_SZ, HKEY_CURRENT_USER, Control Panel\Cursors, %A_LoopField%, % schemeCursors%A_Index%
}

; Load the new cursors
SPI_SETCURSORS := 0x57
result := DllCall("SystemParametersInfo", "UInt", SPI_SETCURSORS, "UInt", 0, "UInt", 0, "UInt", 0)
;MsgBox Error Level: %ErrorLevel% `nLast error: %A_LastError%`nresult: %result%
}
Now go edit the custom cursor theme you want to set to default and rename it to Windows Aero (Just click save as... and type in Windows Aero)
Jjiinx is offline   Reply With Quote

Old December 3rd, 2009, 11:31   #7
SCHUMI_4EVER
Hackin 'n Slashin
 
SCHUMI_4EVER's Avatar
 
Join Date: Jan 2007
Location: Most-expensive-Internet-on-the-Planet Land : South Africa
Posts: 26,660
Wait...are you asking to change the cursor permanently in Windows...in other words change the system default? In that case forget this additional program and just stop at the 6th step where you are browsing the available cursors, select the one you want and press open, this will close the browsing window and you will see the window in step 5 again and there just click Apply and Ok and you have yourself a new system default.
__________________
Intel Core2Quad Q9550 (2.83Ghz stock) | ASUS P5Q | 2x2GB Transcend JetRam DDR2-800 | ASUS ENGTX260\HDTP\896M | Windows Vista Home Premium 64bit SP1
The Champ has retired but may his Legacy live on FOREVER !!!!
Get it right fools! The glass is HALF-EMPTY, not half-full!!!
!!! WARNING: Emulation requires a brain !!! WARNING: Emulation =/= Piracy !!!
SCHUMI_4EVER is offline   Reply With Quote

Old December 3rd, 2009, 11:42   #8
Jjiinx
Registered User
 
Join Date: Mar 2009
Location: USA, CA
Posts: 7
Quote:
Originally Posted by SCHUMI_4EVER View Post
Wait...are you asking to change the cursor permanently in Windows...in other words change the system default? In that case forget this additional program and just stop at the 6th step where you are browsing the available cursors, select the one you want and press open, this will close the browsing window and you will see the window in step 5 again and there just click Apply and Ok and you have yourself a new system default.
No, the script will toggle between the stylus cursor and the system default cursor, what he's asking if it's possible to make it switch between the stylus cursor and another custom set cursor that he already had, and what I posted above will explain how
Jjiinx is offline   Reply With Quote

Old December 3rd, 2009, 11:50   #9
SCHUMI_4EVER
Hackin 'n Slashin
 
SCHUMI_4EVER's Avatar
 
Join Date: Jan 2007
Location: Most-expensive-Internet-on-the-Planet Land : South Africa
Posts: 26,660
Seems like a strange request to have 3 sets of cursors operating on a system, but whatever floats his boat then I guess.
__________________
Intel Core2Quad Q9550 (2.83Ghz stock) | ASUS P5Q | 2x2GB Transcend JetRam DDR2-800 | ASUS ENGTX260\HDTP\896M | Windows Vista Home Premium 64bit SP1
The Champ has retired but may his Legacy live on FOREVER !!!!
Get it right fools! The glass is HALF-EMPTY, not half-full!!!
!!! WARNING: Emulation requires a brain !!! WARNING: Emulation =/= Piracy !!!
SCHUMI_4EVER is offline   Reply With Quote

Old December 3rd, 2009, 11:55   #10
Jjiinx
Registered User
 
Join Date: Mar 2009
Location: USA, CA
Posts: 7
Quote:
Originally Posted by SCHUMI_4EVER View Post
Seems like a strange request to have 3 sets of cursors operating on a system, but whatever floats his boat then I guess.
Again, you misunderstand. He wants to toggle between his custom cursor and between the stylus cursor INSTEAD OF between the windows default cursor and stylus cursor
Jjiinx is offline   Reply With Quote

Old December 3rd, 2009, 12:00   #11
SCHUMI_4EVER
Hackin 'n Slashin
 
SCHUMI_4EVER's Avatar
 
Join Date: Jan 2007
Location: Most-expensive-Internet-on-the-Planet Land : South Africa
Posts: 26,660
Oh so this program automatically loads what it thinks (is programmed to see as) the default windows cursor rather than loading whatever cursor is currently set as system default on that system?

In other words this program automatically reloads the normal pointer even if his actual default is a cool sword or something?
__________________
Intel Core2Quad Q9550 (2.83Ghz stock) | ASUS P5Q | 2x2GB Transcend JetRam DDR2-800 | ASUS ENGTX260\HDTP\896M | Windows Vista Home Premium 64bit SP1
The Champ has retired but may his Legacy live on FOREVER !!!!
Get it right fools! The glass is HALF-EMPTY, not half-full!!!
!!! WARNING: Emulation requires a brain !!! WARNING: Emulation =/= Piracy !!!
SCHUMI_4EVER is offline   Reply With Quote

Old December 3rd, 2009, 12:06   #12
Jjiinx
Registered User
 
Join Date: Mar 2009
Location: USA, CA
Posts: 7
Quote:
Originally Posted by SCHUMI_4EVER View Post
Oh so this program automatically loads what it thinks (is programmed to see as) the default windows cursor rather than loading whatever cursor is currently set as system default on that system?

In other words this program automatically reloads the normal pointer even if his actual default is a cool sword or something?
Correct, follow the other tutorial as well if you want to use a custom cursor as your normal one
Jjiinx is offline   Reply With Quote

Old December 3rd, 2009, 12:25   #13
SCHUMI_4EVER
Hackin 'n Slashin
 
SCHUMI_4EVER's Avatar
 
Join Date: Jan 2007
Location: Most-expensive-Internet-on-the-Planet Land : South Africa
Posts: 26,660
Nah, I don't see using the Vista redesigned pen cursor for no$gba as so revolutionary so I am not into this was just checking up on the goings on here as the Handheld Section Moderator.

Seems a little silly that this program works like that though but after having taken a close look at the code I understand why. O well carry on.
__________________
Intel Core2Quad Q9550 (2.83Ghz stock) | ASUS P5Q | 2x2GB Transcend JetRam DDR2-800 | ASUS ENGTX260\HDTP\896M | Windows Vista Home Premium 64bit SP1
The Champ has retired but may his Legacy live on FOREVER !!!!
Get it right fools! The glass is HALF-EMPTY, not half-full!!!
!!! WARNING: Emulation requires a brain !!! WARNING: Emulation =/= Piracy !!!
SCHUMI_4EVER is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 02:52.

© 2006 - 2012 Emu Forums | About Emu Forums | Advertisers | Investors | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.