Question about shortcuts for Registry values

t4akawolf

Banned
Local time
8:18 AM
Messages
72
Location
Visakhapatnam, India
Greetings my fellow Landwalkers,

I created a 'NoTrayItemDisplay' DWORD with a value of 1 for a program. What I want to know is, can I create shortcuts to modify/change it's value from 1 to 0 and vice versa?

The ideal solution for me would be creating two shortcuts; one which modifies the value to 0 and another which modifies the value to 1.

The perfect solution for me would be some sort of Value Toggle which can toggle between both values...

So, how do I do either of the above solutions? Or is there another solution out there?
 

My Computer

Computer Manufacturer/Model Number
Intel DG31PR
OS
Windows 7 Ultimate x32 (UPDATE: Now x64!)
CPU
Intel(R) Core(TM)2 Duo CPU - E4600 @ 2.40GHz (2CPUs)
Motherboard
Intel DG31PR
Memory
4096 RAM
Graphics Card(s)
ATI Radeon HD 4350 1GB DDR2
Sound Card
In-built
Monitor(s) Displays
Generic Pnp Monitor 1024x768 (32 bit) (85Hz)
Screen Resolution
1024x768
Hard Drives
[s]250GB HDD[/s] 1TB HDD + 150GB Ext + 4GB PD
PSU
450W
Case
Uhm, a normal one I guess
Cooling
No cooling thingamabobs installed
Keyboard
MS Standard PS/2 Keyboard
Mouse
MS HID Compliant Mouse
Internet Speed
256Kbps-768Kbps
Other Info
Creative 2.1 Speakers
What is the registry location?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
What is the registry location?

If you are referring to the place where the DWORD is located, then it is
" Computer\KEY_CURRENT_USER\Software\BitTorrent\uTorrent "

Sorry, I'm a bit of a...scratch that, I AM a noob in these matters. Remember how I said I created a DWORD, well I had to follow step by step instructions to do so...
 

My Computer

Computer Manufacturer/Model Number
Intel DG31PR
OS
Windows 7 Ultimate x32 (UPDATE: Now x64!)
CPU
Intel(R) Core(TM)2 Duo CPU - E4600 @ 2.40GHz (2CPUs)
Motherboard
Intel DG31PR
Memory
4096 RAM
Graphics Card(s)
ATI Radeon HD 4350 1GB DDR2
Sound Card
In-built
Monitor(s) Displays
Generic Pnp Monitor 1024x768 (32 bit) (85Hz)
Screen Resolution
1024x768
Hard Drives
[s]250GB HDD[/s] 1TB HDD + 150GB Ext + 4GB PD
PSU
450W
Case
Uhm, a normal one I guess
Cooling
No cooling thingamabobs installed
Keyboard
MS Standard PS/2 Keyboard
Mouse
MS HID Compliant Mouse
Internet Speed
256Kbps-768Kbps
Other Info
Creative 2.1 Speakers
Here you go. Copy and paste the codes below into Notepad and save them with a suitable name, giving them a .bat extension.

Code:
@ECHO OFF
REG ADD "HKCU\Software\BitTorrent\uTorrent" /v "NoTrayItemDisplay" /t REG_DWORD /d "00000000" /f

Code:
@ECHO OFF
REG ADD "HKCU\Software\BitTorrent\uTorrent" /v "NoTrayItemDisplay" /t REG_DWORD /d "00000001" /f
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Here you go. Copy and paste the codes below into Notepad and save them with a suitable name, giving them a .bat extension.

Code:
@ECHO OFF
REG ADD "HKCU\Software\BitTorrent\uTorrent" /v "NoTrayItemDisplay" /t REG_DWORD /d "00000000" /f
Code:
@ECHO OFF
REG ADD "HKCU\Software\BitTorrent\uTorrent" /v "NoTrayItemDisplay" /t REG_DWORD /d "00000001" /f

Hmmmm, most odd...I tried that and the value does seem to change when I check in Regedit but now, whatever I set the value to, uTorrent seems to open with the icon. Before I created the shortcut, setting the value to 1 manually used to stop the icon...what did I do wrong?? :confused:
 

My Computer

Computer Manufacturer/Model Number
Intel DG31PR
OS
Windows 7 Ultimate x32 (UPDATE: Now x64!)
CPU
Intel(R) Core(TM)2 Duo CPU - E4600 @ 2.40GHz (2CPUs)
Motherboard
Intel DG31PR
Memory
4096 RAM
Graphics Card(s)
ATI Radeon HD 4350 1GB DDR2
Sound Card
In-built
Monitor(s) Displays
Generic Pnp Monitor 1024x768 (32 bit) (85Hz)
Screen Resolution
1024x768
Hard Drives
[s]250GB HDD[/s] 1TB HDD + 150GB Ext + 4GB PD
PSU
450W
Case
Uhm, a normal one I guess
Cooling
No cooling thingamabobs installed
Keyboard
MS Standard PS/2 Keyboard
Mouse
MS HID Compliant Mouse
Internet Speed
256Kbps-768Kbps
Other Info
Creative 2.1 Speakers
Here is a VBScript to flip it back and forth.

Code:
' Change Registry Key v1.1.1
' Programmed WindowsStar - Copyright (c) 2010
' ---------------------------------------------------
On Error Resume Next
Set WShShell = WScript.CreateObject("WScript.Shell")
Value = WSHShell.RegRead ("HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay")
If Value = "0" Then
   WSHShell.RegWrite "HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay", 00000001, "REG_DWORD"
Else
   WSHShell.RegWrite "HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay", 00000000, "REG_DWORD"
End If
WshShell.Popup "          Done!",5,"Script Message"
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Here is a VBScript to flip it back and forth.

Code:
' Change Registry Key v1.1.1
' Programmed WindowsStar - Copyright (c) 2010
' ---------------------------------------------------
On Error Resume Next
Set WShShell = WScript.CreateObject("WScript.Shell")
Value = WSHShell.RegRead ("HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay")
If Value = "0" Then
   WSHShell.RegWrite "HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay", 00000001, "REG_DWORD"
Else
   WSHShell.RegWrite "HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay", 00000000, "REG_DWORD"
End If
WshShell.Popup "          Done!",5,"Script Message"

Thanks!
 

My Computer

Computer Manufacturer/Model Number
Intel DG31PR
OS
Windows 7 Ultimate x32 (UPDATE: Now x64!)
CPU
Intel(R) Core(TM)2 Duo CPU - E4600 @ 2.40GHz (2CPUs)
Motherboard
Intel DG31PR
Memory
4096 RAM
Graphics Card(s)
ATI Radeon HD 4350 1GB DDR2
Sound Card
In-built
Monitor(s) Displays
Generic Pnp Monitor 1024x768 (32 bit) (85Hz)
Screen Resolution
1024x768
Hard Drives
[s]250GB HDD[/s] 1TB HDD + 150GB Ext + 4GB PD
PSU
450W
Case
Uhm, a normal one I guess
Cooling
No cooling thingamabobs installed
Keyboard
MS Standard PS/2 Keyboard
Mouse
MS HID Compliant Mouse
Internet Speed
256Kbps-768Kbps
Other Info
Creative 2.1 Speakers
Here is a VBScript to flip it back and forth.

Code:
' Change Registry Key v1.1.1
' Programmed WindowsStar - Copyright (c) 2010
' ---------------------------------------------------
On Error Resume Next
Set WShShell = WScript.CreateObject("WScript.Shell")
Value = WSHShell.RegRead ("HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay")
If Value = "0" Then
   WSHShell.RegWrite "HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay", 00000001, "REG_DWORD"
Else
   WSHShell.RegWrite "HKCU\Software\BitTorrent\uTorrent\NoTrayItemDisplay", 00000000, "REG_DWORD"
End If
WshShell.Popup "          Done!",5,"Script Message"

Thanks!

You are very welcome.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Back
Top