Skip to content

Instantly share code, notes, and snippets.

@GnstheGrain
Forked from CHEF-KOCH/win78.reg
Created July 22, 2016 03:12
Show Gist options
  • Save GnstheGrain/fbf682e816a3282951f883d9907e284a to your computer and use it in GitHub Desktop.
Save GnstheGrain/fbf682e816a3282951f883d9907e284a to your computer and use it in GitHub Desktop.
Windows 7 and 8 tweaks (all together)
Windows Registry Editor Version 5.00
;System Tweaks for Windows 7/8 2015 Edition
;Useful after a fresh Win installation
;Read the comments to see that will be changed and how you can optimize them
;No fucking "Tweak" tools needed....
;But if you still like tools, I recommend RSW (registry System Wizard .NET) @WinFAQ.de
;http://www.winfaq.de/shop.htm
;###############################################################################
; NEW FILE TYPE FLYOUT
;###############################################################################
;Remove Ms Briefcase, Rich-Text-Document, .wave, .bmp, MS PowerPoint, MS Access, Outlook Journal & .mdb files from right click)
[-HKEY_CLASSES_ROOT\Briefcase]
[-HKEY_CLASSES_ROOT\.rtf\ShellNew]
[-HKEY_CLASSES_ROOT\.bmp\ShellNew]
[-HKEY_CLASSES_ROOT\.wav\ShellNew]
[-HKEY_CLASSES_ROOT\.vsd\ShellNew]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ppt\PowerPoint.Show.8\ShellNew]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mdb\Access.Application.11\ShellNew]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.jnt\jntfile\ShellNew]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.contact\ShellNew]
[-HKEY_CLASSES_ROOT\.lbl]
[-HKEY_CLASSES_ROOT\.lbp]
[-HKEY_CLASSES_ROOT\.lbx]
[-HKEY_CLASSES_ROOT\.contact]
[-HKEY_CLASSES_ROOT\jntfile]
[-HKEY_CLASSES_ROOT\.bmp]
;add new file cmd
[HKEY_CLASSES_ROOT\cmdfile]
@="Command Script"
;Change Text filetype icon
[HKEY_CLASSES_ROOT\txtfile\DefaultIcon]
@="%SystemRoot%\\notepad.exe,0"
;Set custom CMD scrip template (C:\Windows\ShellNew\Template.cmd) & icon
[HKEY_CLASSES_ROOT\cmdfile\DefaultIcon]
@="@%SystemRoot%\\System32\\imageres.dll,249"
[HKEY_CLASSES_ROOT\.cmd\ShellNew]
"FileName"="%SystemRoot%\\ShellNew\\Template.CMD"
;change name from 'Windows Script Command' to 'Command Script'
[HKEY_CURRENT_USER\Software\Classes\Local Settings\MuiCache\183\52C64B7E]
"@%SystemRoot%\\System32\\acppage.dll,-6003"="Command Script"
;Shorten new document names and change icons to reduce clutter and increase visiblity
;rename Adobe LiveCycle Designer Document to LiveCycle Document
[HKEY_CLASSES_ROOT\LiveCycleDesigner.Document]
@="LiveCycle Document"
;rename Microsoft Visio Drawing to Visio Drawing
[HKEY_CLASSES_ROOT\Visio.Drawing.11]
@="Visio Drawing"
;rename Microsoft Excel Worksheet;excel worksheet
[HKEY_CLASSES_ROOT\Excel.Sheet.8]
@="Excel Worksheet"
;rename Microsoft Word Document to Word Document
[HKEY_CLASSES_ROOT\Oice.Word.Document]
@="Word Document"
[HKEY_CLASSES_ROOT\Word.Document]
@="Word Document"
[HKEY_CLASSES_ROOT\Word.Document.8]
@="Word Document"
;rename Microsoft Publisher Document to Publisher Doc
[HKEY_CLASSES_ROOT\Publisher.Document.11]
@="Publisher Doc"
;rename PowerPoint Document to PowerPoint Doc
[HKEY_CLASSES_ROOT\Oice.PowerPoint.Show]
@="PowerPoint Doc"
;rename AutoIt v3 Script to AutoIt Script
[HKEY_CLASSES_ROOT\AutoIt3Script]
@="AutoIt Script"
;change autoit script icon
[HKEY_CLASSES_ROOT\AutoIt3Script\DefaultIcon]
@="X:\\CUSTOMICONS\\AutoIt4.ico,0"
;change ini file icon
[HKEY_CLASSES_ROOT\inifile\DefaultIcon]
@="X:\\CUSTOMICONS\\1SYS.icl,11"
;change Photoshop icon and rename .PSD filetype
[HKEY_CLASSES_ROOT\Photoshop.Image.13]
@="Photoshop Image"
"DefaultIcon"="X:\\CUSTOMICONS\\Photohop_Fancy.ico"
[HKEY_CLASSES_ROOT\Photoshop.Image.13\DefaultIcon]
@="X:\\CUSTOMICONS\\Photohop_Fancy.ico"
;Add icon and program handler for editing HTM & HTML files
[HKEY_CLASSES_ROOT\.htm]
@="htmlfile"
"PerceivedType"="texta"
"Content Type"="text/html"
[HKEY_CLASSES_ROOT\.htm\ShellNew]
"FileName"="%SystemRoot%\\ShellNew\\Template.htm"
"IconPath"=hex(2):44,00,3a,00,5c,00,32,00,5c,00,49,00,63,00,6f,00,6e,00,73,00,\
5c,00,46,00,69,00,6c,00,65,00,54,00,79,00,70,00,65,00,73,00,2e,00,69,00,63,\
00,6c,00,2c,00,32,00,36,00,00,00
@="HTML Document"
;Add new REG, INI & htm file to right click > New
[HKEY_CLASSES_ROOT\.reg\ShellNew]
"FileName"="%SystemRoot%\\ShellNew\\Template.reg"
[HKEY_CLASSES_ROOT\.ini\ShellNew]
"FileName"="%SystemRoot%\\ShellNew\\Template.ini"
[HKEY_CLASSES_ROOT\inifile\DefaultIcon]
@="X:\\CUSTOMICONS\\FileTypes.icl,28"
;Add ZIP Filetype to right click > New
[HKEY_CLASSES_ROOT\7-Zip.zip]
@="Zip Archive"
[HKEY_CLASSES_ROOT\7-Zip.zip\DefaultIcon]
@="X:\\CUSTOMICONS\\ZipIcons.icl,1"
[HKEY_CLASSES_ROOT\7-Zip.zip\shell\open\command]
@="\"E:\\UTILITY\\ZIP\\7z\\7zFM.exe\" \"%1\""
;Add XML filetype to right click > New
[HKEY_CLASSES_ROOT\xmlfile]
@="XML Document"
[HKEY_CLASSES_ROOT\xmlfile\BrowseInPlace]
[HKEY_CLASSES_ROOT\xmlfile\DefaultIcon]
@="X:\\CUSTOMICONS\\FileTypes.icl,18"
[HKEY_CLASSES_ROOT\xmlfile\shell]
@=""
[HKEY_CLASSES_ROOT\xmlfile\shell\edit]
[HKEY_CLASSES_ROOT\xmlfile\shell\edit\command]
@="\"%SystemRoot%\\notepad.exe\" \"%1\""
[HKEY_CLASSES_ROOT\xmlfile\shell\EditWithFP]
@="&Edit with Notepad"
[HKEY_CLASSES_ROOT\xmlfile\shell\EditWithFP\command]
@="\"%SystemRoot%\\notepad.exe\" \"%1\""
[HKEY_CLASSES_ROOT\xmlfile\shell\EditWithFP\ddeexec]
@="[Open(\"%1\")]"
[HKEY_CLASSES_ROOT\xmlfile\shell\EditWithFP\ddeexec\application]
@=""
[HKEY_CLASSES_ROOT\xmlfile\shell\EditWithFP\ddeexec\topic]
@="system"
[HKEY_CLASSES_ROOT\xmlfile\shell\open]
[HKEY_CLASSES_ROOT\xmlfile\shell\open\command]
@="\"%SystemRoot%\\notepad.exe\" \"%1\""
;###############################################################################
; # OEM PAGE SETTINGS # #
;###############################################################################
;OEM PAGE: Subsitute the last 5 digits of your product ID, for the 12345 that appears below, for easy identification
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"ProductId"="****-12345"
;Computer Description
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"srvcomment"="My Motherboard Model"
;OEM Information
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
"Model"="Motherboard Model"
"Manufacturer"="Custom Built"
;1. TO ENTER A SUPPORT URL, USE THE STYLE BELOW
"SupportURL"="www.wincert.org"
;2. TO LAUNCH A FILE LIKE OEM CONFIGURATOR.EXE ENTER YOUR PATH BELOW. Note foward slash
;file:///C:/%APP_PATH/OEM Configurator.exe
#"Logo"="C:\\Windows\\system32\\OEMLogo.bmp"
;###############################################################################
; # Flyout SEARCH MENU # #
;###############################################################################
;Fly-out Search Menu
;Get the Software here: http://www.sowsoft.com
;-> or imply use Hddb software !
#[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SearchFO]
#"MUIVerb"="Search"
#"SubCommands"="Find All;Find Docs;Find New"
#"icon"="D:\\PATHTOEFS\\efs\\Search All.ico"
#"Position"="Top"
;Find All
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Find All]
#@="Find All"
#"Icon"="D:\\2\\Icons\\Search All.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Find All\Command]
#@="\"D:\\PATHTOEFS\\EFS\\search.exe\" \"D:\\PATHTOEFS\\EFS\\ALL_DRVS.efsp\""
;Find Docs
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Find Docs]
#@="Find Docs"
#"Icon"="D:\\2\\Icons\\Document Binder.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Find Docs\Command]
#@="\"D:\\PATHTOEFS\\EFS\\search.exe\" \"D:\\PATHTOEFS\\EFS\\DOCS.efsp\""
;Find New
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Find New]
#@="Find New"
#"Icon"="D:\\2\\Icons\\FileSeek.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Find New\Command]
#@="\"D:\\PATHTOEFS\\EFS\\search.exe\" \"D:\\PATHTOEFS\\EFS\\NEWEST.efsp\""
;Add Custom Icon & Register Program to Work on Folders and Drives
#[HKEY_CLASSES_ROOT\Folder\shell]
#[HKEY_CLASSES_ROOT\Folder\shell\Effective Search]
#"Icon"="D:\\PATHTOEFS\\efs\\Search All.ico,0"
#[HKEY_CLASSES_ROOT\Folder\shell\Effective Search\command]
#@="\"D:\\PATHTOEFS\\EFS\\search.exe\" \"%1\""
;Register Application Path
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\search.exe]
#@="D:\\PATHTOEFS\\EFS\\search.exe"
;Store Registration
#[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store]
#"D:\\PATHTOEFS\\efs\\search.exe"=hex:53,41,43,50,01,00,00,00,00,00,00,00,\
# 07,00,00,00,28,00,00,00,d8,90,0c,00,00,00,00,00,01,00,00,00,00,00,00,00,00,\
# 00,01,06,61,20,00,00,97,5f,d8,91,c9,9e,ce,01,00,00,00,00,00,00,00,00,02,00,\
# 00,00,28,00,00,00,00,00,00,00,00,00,00,40,00,00,00,00,00,00,00,00,00,00,00,\
# 00,00,00,00,00,5a,75,01,00,00,00,00,00,02,00,00,00,02,00,00,00
;Register .efs Filetype
#[HKEY_CLASSES_ROOT\efsFile]
#@="EFS File"
#[HKEY_CLASSES_ROOT\efsFile\AlwaysShowExt]
#@=""
#[HKEY_CLASSES_ROOT\efsFile\DefaultIcon]
#@="D:\\PATHTOEFS\\efs\\Search All.ico,0"
#[HKEY_CLASSES_ROOT\efsFile\shell]
#[HKEY_CLASSES_ROOT\efsFile\shell\open]
#[HKEY_CLASSES_ROOT\efsFile\shell\open\command]
#@="\"D:\\PATHTOEFS\\EFS\\search.exe\" \"%1\""
;Register .efsp Filetype
#[HKEY_CLASSES_ROOT\efspFile]
#@="EFS Parameters"
#[HKEY_CLASSES_ROOT\efspFile\AlwaysShowExt]
#@=""
#[HKEY_CLASSES_ROOT\efspFile\DefaultIcon]
#@="D:\\PATHTOEFS\\efs\\Search All.ico"
#[HKEY_CLASSES_ROOT\efspFile\shell]
#[HKEY_CLASSES_ROOT\efspFile\shell\open]
#[HKEY_CLASSES_ROOT\efspFile\shell\open\command]
#@="\"D:\\PATHTOEFS\\EFS\\search.exe\" \"%1\""
;Register .efss Filetype
#[HKEY_CLASSES_ROOT\efssFile]
#@="EFS Script"
#[HKEY_CLASSES_ROOT\efssFile\AlwaysShowExt]
#@=""
#[HKEY_CLASSES_ROOT\efssFile\DefaultIcon]
#@="D:\\PATHTOEFS\\efs\\Search All.ico,0"
#[HKEY_CLASSES_ROOT\efssFile\shell]
#[HKEY_CLASSES_ROOT\efssFile\shell\open]
#[HKEY_CLASSES_ROOT\efssFile\shell\open\command]
#@="\"D:\\PATHTOEFS\\EFS\\search.exe\" \"%1\""
;Uninstall Info
#[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Effective File Search]
#"NSIS:StartMenuDir"="Effective File Search"
#"DisplayName"="Effective File Search 6.8.1"
#"UninstallString"="\"D:\\PATHTOEFS\\EFS\\UnRun.exe\" \"D:\\PATHTOEFS\\EFS\\Uninst.exe\""
#"DisplayIcon"="D:\\PATHTOEFS\\efs\\Search All.ico,0"
#"DisplayVersion"="6.8.1"
#"Publisher"="SOW"
;###############################################################################
; # Select all Files # #
;###############################################################################
;ADD CASCADING "SELECT" TO CONTEXT MENU
[HKEY_CLASSES_ROOT\*\shell\SelectAllFO]
"MUIVerb"="Select"
"icon"="imageres.dll,-5308"
"SubCommands"="Windows.selectall;Windows.selectnone;Windows.invertselection"
[HKEY_CLASSES_ROOT\Folder\shell\SelectAllFO]
"MUIVerb"="Select"
"icon"="imageres.dll,-5308"
"SubCommands"="Windows.selectall;Windows.selectnone;Windows.invertselection"
[HKEY_CLASSES_ROOT\Directory\Background\shell\SSelectAllFO]
"MUIVerb"="Select"
"icon"="imageres.dll,-5308"
"SubCommands"="Windows.selectall"
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\SelectAllFO]
"MUIVerb"="Select"
"icon"="imageres.dll,-5308"
"SubCommands"="Windows.selectall;Windows.selectnone;Windows.invertselection"
;remove example for the tweak above
;[-HKEY_CLASSES_ROOT\*\shell\Select]
;[-HKEY_CLASSES_ROOT\Folder\shell\Select]
;[-HKEY_CLASSES_ROOT\Directory\Background\shell\Select]
;[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\Select]
;###############################################################################
; # Disable Prefetcher on SSD Systems # #
;###############################################################################
;Disable PrefetchParameters to fix SSD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"LargeSystemCache"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000000
;###############################################################################
; # File Manager Link # #
;###############################################################################
;File Manager******************************************************************
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\zFile Manager]
"Icon"="%windir%\\explorer.exe"
"Position"="Top"
@="File Manager"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\zFile Manager\command]
@="C:\\Windows\\explorer.exe /e, c:"
;###############################################################################
; # Admin Command Prompt her # #
;###############################################################################
;Admin Command Prompt here****************************************************
;http://michaelcrump.net/power-tip-elevated-command-prompt-here-in-windows-8-1
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Admin Cmd Prompt Here"
"icon"="X;\\CUSTOMICONS\\Cmd.ico"
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Admin Cmd Prompt Here"
"icon"="X;\\CUSTOMICONS\\Cmd.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="Admin Cmd Prompt Here"
"icon"="X;\\CUSTOMICONS\\Cmd.ico"
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
;Configure the Prompt appearance and properties
;Show the full path in minimized explorer windows
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState]
"FullPath"=dword:00000001
;Set text color in command windows
;Color |0 Black | 1 Blue | 2 Green | 3 Aqua | 4 Red | 5 Purple | 6 Yellow | 7 White | 8 Gray | 9 Light Blue | A Light Green | B Light Aqua | C Light Red | D Light Purple | E Light Yellow | F Bright White
;e.g. to show Light Yellow test: "DefaultColor"=dword:0000000E;to show Green "DefaultColor"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"DefaultColor"=dword:0000000B
;###############################################################################
; # Scan with Windows Defender # #
;###############################################################################
;Scan with Windows Defender
;Windows Defender File Scan
[HKEY_CLASSES_ROOT\*\shell\WindowsDefender]
"MUIVerb"="Scan with Windows Defender"
"icon"=""C:\\Program Files\\Windows Defender\\MSASCui.exe,0"
[HKEY_CLASSES_ROOT\*\shell\WindowsDefender\Command]
@="cmd.exe /s /c \"\"C:\\Program Files\\Windows Defender\\MpCmdRun.exe\" -scan -scantype 3 -SignatureUpdate -file \"%1 \"\" & pause"
;Windows Defender Folder Scan
[HKEY_CLASSES_ROOT\Folder\shell\WindowsDefender]
"MUIVerb"="Scan with Windows Defender"
"icon"="C:\\Program Files\\Windows Defender\\MSASCui.exe,0"
[HKEY_CLASSES_ROOT\Folder\shell\WindowsDefender\Command]
@="cmd.exe /s /c \"\"C:\\Program Files\\Windows Defender\\MpCmdRun.exe\" -scan -scantype 3 -SignatureUpdate -file \"%1 \"\" & pause
;###############################################################################
; # REGISTER / UNREGISTER DLL & OCX FILE # #
;###############################################################################
;REGISTER / UNREGISTER DLL
;http://www.eightforums.com/tutorials/40512-register-unregister-context-menu-dll-ocx-files.html
[HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
@="regsvr32.exe \"%L\""
[HKEY_CLASSES_ROOT\dllfile\shell\Unregister\command]
@="regsvr32.exe /u \"%L\""
;REGISTER / UNREGISTER OCX
[HKEY_CLASSES_ROOT\ocxfile\shell\Register\command]
@="regsvr32.exe \"%L\""
[HKEY_CLASSES_ROOT\ocxfile\shell\Unregister\command]
@="regsvr32.exe /u \"%L\""
;###############################################################################
; # OPTIONAL CLEANUP ITEMS (Not RECOMMED) # #
;###############################################################################
;REMOVE NVIDIA CONTEXT ENTRY
;http://www.howtogeek.com/howto/windows-vista/remove-nvidia-control-panel-from-desktop-right-click-menu
;[-HKEY_CLASSES_ROOT\Directory\background\shellex\ContextMenuHandlers\NvCplDesktopContext]
;Remove Music Bee Queue Next entry
;[-HKEY_CLASSES_ROOT\Directory\shell\MusicBee.2QueueNext]
;Remove Music Bee Queue Last entry
;[-HKEY_CLASSES_ROOT\Directory\shell\MusicBee.3QueueLast]
;Remove Add to PotPlayler Playlist
;[-HKEY_CLASSES_ROOT\Directory\shell\PotPlayer.Enqueue]
;REMOVE ADOBE BRIDGE BROWSER ENTRY
;[-HKEY_CLASSES_ROOT\Directory\shell\Bridge]
;REMOVE ADOBE ACROBAT 9 PRO CONTEXT entry
;To remove Adobe Acrobat Context item, open a command prompt & UNREGISTER ContextMenu.dll
;regsvr32 /u "C:\path to\Acrobat Elements\ContextMenu.dll"
;INFO: http://twigstechtips.blogspot.com/2008/08/adobe-acrobat-8-remove-combine.html
;###############################################################################
; # Browser Menu # #
;###############################################################################
;Cascading Browser Menu
;Source: http://www.askvg.com/add-cascading-menus-for-your-favorite-programs-in-windows-7-desktop-context-menu/
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\BrowserFO]
"MUIVerb"="Browsers"
"SubCommands"="Iron;iexplore;Firefox"
"icon"="iexplore.exe"
"Position"="Top"
;Internet Explorer 11
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\iexplore]
@="IE 11"
"icon"=""%SYSTEMROOT\\Program Files\\Internet Explorer\\iexplore.exe",0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\iexplore\command]
@="iexplore google.com"
;Iron
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Iron]
@="Iron"
"icon"="%PATHTOBROWSER\\Iron\\chrome.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Iron\command]
@="%PATHTOBROWSER\\Iron\\chrome.exe file:///D:/2/StartPage/0HOME.HTM"
;Firefox
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Firefox]
@="Firefox"
"icon"="%PATHTOBROWSER\\Firefox\\firefox.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Firefox\command]
@="%PATHTOBROWSER\\Firefox\\firefox.exe"
;###############################################################################
; # 64-Bit restore folders in this PC # #
;###############################################################################
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
;###############################################################################
; # Custom Windows fonts # #
;###############################################################################
;Custom fonts
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
#"Trebuchet MS Bold (TrueType)"="trebucbd.ttf"
#"Malgun Gothic (TrueType)"="malgun.ttf"
#"Segoe UI Italic (TrueType)"="segoeuii.ttf"
#"VI University (TrueType)"="UN___.TTF"
;###############################################################################
; # Windows Legacy Boot # #
;###############################################################################
;This registry file creates an successful installation flag for WPI and documents unintall procedures
;To return to default bootmenu, execute the command on line 449, below
;then delete this registry key by putting a minus after the first bracket in this registry file
;Like this: [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\LegacyBoot]
;then, double click the registry file to remove this entry
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\LegacyBoot]
#"DisplayName"="LegacyBoot"
#"DisplayIcon"="C:\\Windows\\System32\\imageres.dll,250"
#"UninstallString"="bcdedit.exe /set {default} bootmenupolicy standard"
#"DisplayVersion"="2.5"
#"Publisher"="BYTE-ME"
#"Version"=dword:00000110
;###############################################################################
; # RELOCATE SHELL/LIBRARY FOLDERS # #
;###############################################################################
;RELOCATE SHELL FOLDERS TO NEW DRIVE PARTITION: COOKIES | SENDTO | DOCS | FAVS | PICS | MUSIC | VIDEO | TIF | DOWNLOAD | TEMPLATES
;http://www.tweakhound.com/2013/10/22/tweaking-windows-8-1/5/
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"SendTo"="X:\\OFF_SYSTEMDRIVE\\XtremeSend2\\SendTo"
"Personal"="X:\\OFF_SYSTEMDRIVE\\DOCS"
"Favorites"="X:\\OFF_SYSTEMDRIVE\\Favs"
"My Pictures"="X:\\OFF_SYSTEMDRIVE\\Pics"
"My Music"="X:\\OFF_SYSTEMDRIVE\\Music"
;COPY AND PASTE HEX VALUIE FOR DOWNLOAD SHELL FOLDER {374DE290-123F-4565-9164-39C4925E467B}
"{374DE290-123F-4565-9164-39C4925E467B}"=hex(2):46,00,3a,00,5c,00,57,00,50,00,\
49,00,5c,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,5c,00,31,00,44,00,6f,\
00,77,00,6e,00,6c,00,6f,00,61,00,64,00,73,00,00,00
"Templates"=hex(2):46,00,3a,00,5c,00,31,00,48,00,4f,00,4d,00,45,00,5c,00,44,00,\
4f,00,43,00,53,00,5c,00,54,00,65,00,6d,00,70,00,6c,00,61,00,74,00,65,00,00,\
00
;Set User Shell Folder locations: VIDEO | PICS | HISTORY | COOKIES | FAVS | SENDTO | MUSIC | BURN | DOWNLOAD | DOCS | TIF | TEMPLATES
#[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
#"My Video"="X:\\OFF_SYSTEMDRIVE\\VCR"
#"My Pictures"="X:\\OFF_SYSTEMDRIVE\\Pics"
#"History"="X:\\OFF_SYSTEMDRIVE\\WEB\\History"
#"Favorites"="X:\\OFF_SYSTEMDRIVE\\WEB\\Favs"
#"SendTo"="X:\\OFF_SYSTEMDRIVE\\XtremeSend2\\SendTo"
#"My Music"="X:\\OFF_SYSTEMDRIVE\\Music"
#"CD Burning"="X:\\OFF_SYSTEMDRIVE\\Burn"
#"{374DE290-123F-4565-9164-39C4925E467B}"="X:\\OFF_SYSTEMDRIVE\\1Downloads"
#"Personal"="X:\\OFF_SYSTEMDRIVE\\DOCS"
#"Templates"="X:\\OFF_SYSTEMDRIVE\\Template"
;Common Personal Docs
#[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\Shell Folders]
#"Personal"="X:\\OFF_SYSTEMDRIVE\\DOCS"
;###############################################################################
; # WINDOWS 8.1 ANNOYANCES # #
;###############################################################################
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage]
;Search everywhere instead of just my apps when I search from the Apps view
"GlobalSearchInApps"=dword:00000001
;When I sign in or close all apps on a screen, go to the desktop instead of Start
"OpenAtLogon"=dword:00000000
;Don't Show Start on the display I'm using when I press the Windows logo key
"MonitorOverride"=dword:00000001
;Don't Show the Apps view automatically when I go to Start
"MakeAllAppsDefault"=dword:00000000
;List desktop apps first in the Apps view when it's sorted by category
"DesktopFirst"=dword:00000001
;No lock screen
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
"NoLockScreen"=dword:00000001
;###############################################################################
; # Nuke Windows Media Player # #
;###############################################################################
;Remove Windows Media Player context menu audio handlers***********************
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex\ContextMenuHandlers\PlayTo]
@="{7AD84985-87B4-4a16-BE58-8B72A5B390F7}"
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex\ContextMenuHandlers\WMPShopMusic]
;Disable Windows Media Player auto update
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer]
"DisableAutoUpdate"=dword:00000001
;Prevent Windows Media Player from sending client GUID to streaming servers (to allow, change hex to 00)
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]
"SendUserGUID"=hex:10
;###############################################################################
; # Windows Explorer Customize # #
;###############################################################################
;Show file extensions
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"HideFileExt"=dword:00000000
;Show Protected Operating System Files
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSuperHidden"=dword:00000001
;Open HTA files (used for WPI) with MSHTA.EXE
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta\OpenWithProgids]
"htafile"=hex(0):
;Remove warning about showing hidden system folders
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden]
"WarningIfNotDefault"=-
;###############################################################################
; # File $PATH's # #
;###############################################################################
;Add app paths (to programs you want to execute automatically from the run box)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\RAR.exe]
@="X:\\PATHTO\\7z\\7z.exe"
"Path"="X:\\PATHTO\\7z"
;Path Deletions: WRITE | WORDPAD | WMP | WINDOWS MAIL
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WRITE.EXE]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wmplayer.exe]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mplayer2.exe]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wab.exe]
;###############################################################################
; # SHELL APPEARANCE # #
;###############################################################################
;Disable grouping of system tray icons
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"TaskbarGlomming"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"EnableAutoTray"=dword:00000000
;Show detailed Device settings in device manager
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"DEVMGR_SHOW_DETAILS"="1"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
;Show all hidden devices in device manager
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"DEVMGR_SHOW_NONPRESENT_DEVICES"=1
;Remove " - Shortcut" Suffix from shortcuts
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"link"=hex:00,00,00,00
;Set Control Panel on Classic View and small icons
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel]
"AllItemsIconView"=dword:00000001
"StartupPage"=dword:00000001
;Cache more Icons (4096 is max)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"Max Cached Icons"="4096"
;Customize shortcut arrow to make it less prominent and change Explorer open folder color to make more prominent (requires logoff to activate)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
;Must copy included archive icon to C:\\Windows\\System32
"29"="C:\\Windows\\System32\\Arrow.ico,0"
"4"="C:\\Windows\\System32\\imageres.dll,179"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
"29"="C:\\Windows\\System32\\Arrow.ico,0"
"4"="C:\\Windows\\System32\\imageres.dll,179"
;###############################################################################
; # Folder Options # #
;###############################################################################
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;FIND PARTIAL SEARCH MATCHES
"Start_SearchFiles"=dword:00000002
;Suppresses inclusion of the links from "UserAssist" (detailed explanation here) in the StartMenu and Taskbar
"ServerAdminUI"=dword:00000000
;Show hidden files and folders (Don't show dword:00000002)
"Hidden"=dword:00000001
;Show encrypted or compressed NTFS files in color
"ShowCompColor"=dword:00000001
;Don't Hide file extensions
"HideFileExt"=dword:00000000
;Don't change the upper/lower case of filenames
"DontPrettyPath"=dword:00000000
;Enable Pop-up Descriptions for folder or desktop items
"ShowInfoTip"=dword:00000001
;Show Desktop icons (dword:00000001 to hide)
"HideIcons"=dword:00000000
;Show the Map Nework Drive button (dword:00000000 to hide)
"MapNetDrvBtn"=dword:00000001
;Legacy key to enable folder templates
"WebView"=dword:00000001
;Unknown ??
"Filter"=dword:00000000
;Show protected operating system files (dword:00000000 to hide)
"ShowSuperHidden"=dword:00000001
;Launch folder windows in a separate process
"SeparateProcess"=dword:00000001
;Don't Use check boxes to select file items
"AutoCheckSelect"=dword:00000000
;Show thumbnails instead of icons (To show icons dword:00000001)
"IconsOnly"=dword:00000000
;Display file icon on Thumbnails
"ShowTypeOverlay"=dword:00000001
;Show Status Bar for Files and Folder using Folder (dword:00000000 to hide)
"ShowStatusBar"=dword:00000001
;Enables colored selection rectangle in folder windows. (Use dword:00000000 for transparent rectangle)
"ListviewAlphaSelect"=dword:00000001
;Use drop shadows for icon labels on the desktop
"ListviewShadow"=dword:00000001
;Enable taskbar preview animation (Use dword:00000000 for no animation)
"TaskbarAnimations"=dword:00000001
;Disable Start Menu Popping Up on First Boot
"StartMenuInit"=dword:00000005
"ReindexedProfile"=dword:00000001
;Unlock the taskbar (dword:00000000 to lock)
"TaskbarSizeMove"=dword:00000001
;Show all folders in Explorer navigation pane
"NavPaneShowAllFolders"=dword:00000001
;Show menus above the Explorer toolbar (To turn off dword:00000000)
"AlwaysShowMenus"=dword:00000001
;Show "Merge Conflicts" dialog during copying (To hide dword:00000001)
"HideMergeConflicts"=dword:00000000
;Unknown ??
"NavPaneShowFavorites"=dword:00000000
;Unknown ??
"MapNetDrvBtn"=dword:00000001
"MapNetDrvBtn"=dword:00000000
;Display drive letters
;0 = windows default
;1 = only network drive's letters shown
;2 = no drive letters shown
;4 = all drive letters shown
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"ShowDriveLettersFirst"=dword:00000004
;Disable Tracking of Broken Shortcut Links
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoResolveTrack"=dword:00000001
;Windows will tell you exactly what it is doing when it is shutting down or is booting
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
;"verbosestatus"=dword:00000001
;Disable Default Hidden Shares - This keeps Windows from creating the
;Admin$, C$, etc. shares (security holes) on start-up.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\parameters]
"AutoShareWks"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"AutoShareServer"=dword:00000000
;###############################################################################
; # Common System TWeaks # #
;###############################################################################
;Turn off system beeps by default
[HKEY_CURRENT_USER\Control Panel\Sound]
"beep"="no"
;Hide Action Center tray icon
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"HideSCAHealth"=dword:00000001
;Opens 16-bit apps in a separate memory space;;This increases stability when dealing with 16-bit apps.;(No = disabled, Yes = enabled)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WOW]
"DefaultSeparateVDM"="Yes"
;Enable Status Bar in all windows
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"StatusBarOther"=dword:00000001
;Kill hung services after 3 seconds
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="3000"
;Remove the annoying clicking sound
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current]
@=""
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Default]
@=""
;Disable thumbnail cache
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoThumbnailCache"=dword:00000001
"DisableThumbnailCache"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoThumbnailCache"=-
"DisableThumbnailCache"=-
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DisableThumbnailCache"=-
"NoThumbnailCache"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DisableThumbnailCache"=-
"NoThumbnailCache"=-
;Fix for compatibility with older versions of "Windows Post Install Wizard" (WPI)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"SourcePath"=""
;Small icons on the Taskbar
;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;"TaskbarSmallIcons"=dword:00000001
;Remove blank icon from desktop
;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{98D99750-0B8A-4c59-9151-589053683D73}]
;Remove Explorer, IE Browser and WMP12 icons from the Taskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage2]
"ProgramsCacheTBP"=hex:01,00,00,00,09,00,00,00,02,
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
"Favorites"=hex:ff,
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
"FavoritesChanges"=dword:00000009
;DISABLE HIBERNATE: http://www.sevenforums.com/tutorials/819-hibernate-enable-disable.html
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
"HibernateEnabled"=dword:00000000
;###############################################################################
; # Display (Screensaver,..) # #
;###############################################################################
;Disable screensavers
[HKEY_CURRENT_USER\Control Panel\Desktop]
"ScreenSaveActive"="0"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"SCRNSAVE.EXE"=""
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"ScreenSaveActive"="0"
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"SCRNSAVE.EXE"=""
;Disable automatic restart in the event of a blue screen, you will see the Error Code
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000
;Disable Automatic Updates (not the ability to update;just disables the
;automatic background updates and balloon tips)
;But I recommend to use the 'Windows Hotfix Downloader'
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000001
"IncludeRecommendedUpdates"=dword:00000000
"SetupWizardLaunchTime"=-
"BalloonTime"=-
"BalloonType"=-
;###############################################################################
; # Windows 8 SPEED # #
;###############################################################################
;SPEED UP DESKTOP & SHELL
;Source: http://www.hongkiat.com/blog/faster-windows-8-hacks/
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DesktopLivePreviewHoverTime"=dword:00000001
[HKEY_CURRENT_USER\Control Panel\Mouse]
"MouseHoverTime"="1"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="1"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"ActiveWndTrackTimeout"=dword:0000000a
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowRun"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoLowDiskSpaceChecks"=dword:00000001
"LinkResolveIgnoreLinkInfo"=dword:00000001
"NoResolveSearch"=dword:00000001
"NoResolveTrack"=dword:00000001
"NoInternetOpenWith"=dword:00000001
[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
"HungAppTimeout"="2000"
"MenuShowDelay"="0"
"WaitToKillAppTimeout"="3000"
"LowLevelHooksTimeout"="2000"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control]
"WaitToKillServiceTimeout"="2000"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control]
"WaitToKillServiceTimeout"="2000"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="2000"
;###############################################################################
; # Internet Explorer # #
;###############################################################################
;Webpage print format | 1. Page # of total Pages | 2. Footer URL | 3. Date in long format
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup]
"header"="Page &p of &P"
"footer"="&u&b&D"
"Print_Background"="no"
"Shrink_To_Fit"="yes"
;Lock IE Browser toolbars
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]
"Locked"=dword:00000000
;Gets rid of annoying popup for running files you download from internet
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download]
"CheckExeSignatures"="no"
"RunInvalidSignatures"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
;Set browser homepage (I use a custom local start page;but you can can add Google by leaving this entry commented, below)
;"Start Page"="D:\\Custom_StartPage\\HOME.HTM"
;Save session on exit
"Save_Session_History_On_Exit"="yes"
;Disable script debugging in applications using IE
"DisableScriptDebuggerIE"="yes"
;Do not display a notification about every script error
"Error Dlg Displayed On Every Error"="no"
;Enable page transitions
"Page_Transitions"=dword:00000001
;Disable personalized favorites menu;to enable enter "Yes"
"FavIntelliMenus"="NO"
;Enable visual styles on buttons and controls in web pages
"UseThemes"=dword:00000001
;Show friendly HTTP error messages
"Friendly http errors"="yes"
;Use Smooth Scrollilng
"SmoothScroll"=dword:00000001
;Enable automatic image resizing
"Enable AutoImageResize"="yes"
;notify download is complete
"NotifyDownloadComplete"="YES"
;Show friendly/Full URL
"Show_FullURL"="yes"
;Notify when downloads complete (change "yes" to "no" to not be notified)
"NotifyDownloadComplete"="yes"
;Allow active content to run in files on My Computer
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN]
"iexplore.exe"=dword:00000000
;Allow active content to run in files on My CD-ROM
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\CRYPTO\CD_LMZ_LOCKDOWN]
"Text"="Allow active content from CDs to run on my computer"
;Disable 'Send information to the Internet' prompt
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"1601"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
;Disable Internet Explorer Cookie 'Privacy Icon' prompt
"PrivDiscUiShown"=dword:00000001
;Increase Simultaneous Downloads
"MaxConnectionsPerServer"=dword:00000014
"MaxConnectionsPer1_0Server"=dword:00000014
;Use http 1.1 through proxy settings
"ProxyHttp1.1"=dword:00000000
;Warn about invalid site certificates
"WarnonBadCertRecving"=dword:00000001
;Disable Internet Explorer 'Auto-Complete' prompt
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\IntelliForms]
"AskUser"=dword:00000000
;Disable FTP folder view (for faster browsing)
[HKEY_CURRENT_USER\Software\Microsoft\Ftp]
"Use Web Based FTP"="yes"
;Smart image dithering
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer]
"SmartDithering"=dword:00000001
;IE toolbar layout (small icons, no text)
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]
"ShowDiscussionButton"="no"
;Set IE default Download folder
#[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer]
#"Download Directory"="X:\\OFFSYSTEMDRIVE\\1Downloads"
;Turn on the phishing filter by default
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PhishingFilter]
"ShownVerifyBalloon"=dword:00000003
"Enabled"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ShowPunycode"=dword:00000000
"EnablePunycode"=dword:00000001
"DisableIDNPrompt"=dword:00000000
"WarnOnPostRedirect"=dword:00000001
;Disable the Windows Mail splash screen
[HKEY_CURRENT_USER\Software\Microsoft\Windows Mail]
"NoSplash"=dword:00000001
;Disable Attachment Manager file security warning
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"HideZoneInfoOnProperties"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"HideZoneInfoOnProperties"=-
;CurrentVersion\Explorer\Shell Folders
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Favorites"="X:\\OFFSYSTEMDRIVE\\Favorites"
;Explorer\User Shell Folders
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Favorites"="X:\\OFFSYSTEMDRIVE\\Favorites"
;Internet Explorer\Main\WindowsSearch
#[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\WindowsSearch]
#"User Favorites Path"="file:///X:\\OFFSYSTEMDRIVE\\Favorites"
;Disable the Windows Mail splash screen
[HKEY_CURRENT_USER\Software\Microsoft\Windows Mail]
"NoSplash"=dword:00000001
;Disable Attachment Manager file security warning
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"HideZoneInfoOnProperties"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"HideZoneInfoOnProperties"=-
;CurrentVersion\Explorer\Shell Folders
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Favorites"="X:\\OFFSYSTEMDRIVE\\Favs"
;Explorer\User Shell Folders
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Favorites"="X:\\OFFSYSTEMDRIVE\\Favs"
;Internet Explorer\Main\WindowsSearch
#[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\WindowsSearch]
#"User Favorites Path"="file:///X:\\OFFSYSTEMDRIVE\\Favs"
;###############################################################################
; # System Tools & Tweaks # #
;###############################################################################
;On Desktop Context menu, add OEM Properties link and “System Tools” flyout menu: http://www.askvg.com/add-system-tools-cascading-menu-in-my-computer-context-menu-in-windows-7/
;System Tools******************************************************************
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SystemToolsFO]
"MUIVerb"="System Tools"
"SubCommands"="Notepad;PCManager;Spooler;GroupPolicy;Sound;GodMode;Scheduler;Dismount;Nuke Icon Cache;Icons;Downloads;AddPrinter;router;Power"
"icon"="%SystemRoot%\\system32\\SHELL32.dll,15"
"Position"="Top"
;OEM Properties
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\OEM Properties]
"Icon"="%windir%\\system32\\imageres.dll,1"
"Position"="Top"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\OEM Properties\Command]
@="control.exe /name Microsoft.System"
;Notepad
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\notepad]
@="Notepad"
"icon"="notepad.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\notepad\command]
@="notepad.exe"
;PC Manager
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\PCmanager]
#@="PC Manager"
#"icon"="X:\\CUSTOMICONS\\People.icl,3"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\PCmanager\command]
#@="D:\\PATHTO\\AutoIt3\\AutoIt3_x64.exe X:\\CUSTOMSCRIPTS\\PCmgr.au3"
;Spooler
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Spooler]
#@="Spooler"
#"icon"="X:\\CUSTOMICONS\\Printer.ico"
#"Position"="Top"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Spooler\command]
#@="D:\\PATHTO\\AutoIt3\\AutoIt3_x64.exe X:\\CUSTOMSCRIPTS\\PrintSpooler.au3"
;GroupPolicy
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\GroupPolicy]
#@="GroupPolicy"
#"icon"="X:\\CUSTOMICONS\\People.icl,8"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\GroupPolicy\command]
#@="D:\\PATHTO\\AutoIt3\\AutoIt3_x64.exe X:\\CUSTOMSCRIPTS\\GP.au3"
;Sound
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Sound]
@="Sound"
"Icon"="%systemroot%\System32\SndVol.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Sound\command]
@="explorer shell:::{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}
;GodMode
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\GodMode]
@="GodMode"
"icon"="control.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\GodMode\command]
@="explorer shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"
;Scheduler
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Scheduler]
#@="Scheduler"
#"icon"="C:\\Windows\\system32\\miguiresource.dll,1"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Scheduler\command]
#@="D:\\PATHTO\\AutoIt3\\AutoIt3_x64.exe X:\\CUSTOMSCRIPTS\\Scheduler.au3"
;Dismount
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Dismount]
#@="Dismount"
#"icon"="X:\\CUSTOMICONS\\HORSE.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Dismount\command]
#@="D:\\PATHTO\\AutoIt3\\AutoIt3_x64.exe X:\\CUSTOMSCRIPTS\\dismount.au3"
;Nuke Icon Cache
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Nuke Icon Cache]
#@="Nuke Icon Cache"
#"icon"="X:\\CUSTOMICONS\\Icons Nuke.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Nuke Icon Cache\command]
#@="D:\\2\\Scripts\\CMD\\iconcache.cmd"
;Icons
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Icons]
#@="Icons"
#"icon"="X:\\CUSTOMICONS\\cube.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Icons\command]
#@="C:\\Windows\\explorer.exe D:\\2\\Icons"
;Downloads
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Downloads]
#@="Downloads"
#"icon"="%SystemRoot%\\system32\\imageres.dll,175"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Downloads\command]
#@="C:\\Windows\\explorer.exe F:\\WPI\\Install\\1Downloads"
;Add printer
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\AddPrinter]
#@="Add Printer"
#"icon"="X:\\CUSTOMICONS\\Lexmark.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\AddPrinter\command]
#@="RunDll32.exe SHELL32.DLL,SHHelpShortcuts_RunDLL AddPrinter"
;Router
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Router]
#@="Router"
#"icon"="X:\\CUSTOMICONS\\router.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Router\command]
#@="C:\\windows\\system32\\RunDll32.exe url.dll,FileProtocolHandler http://10.10.2.1"
;Power
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Power]
#@="Power"
#"icon"="X:\\CUSTOMICONS\\Power manager.ico"
#[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Power\command]
#@="rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl"
;###############################################################################
; # Windows 8.1 Only # #
;###############################################################################
; Enable Metro Apps to Work on In-Built Administrator Account with UAC Prompt Disabled (Requires Reboot)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000001
"FilterAdministratorToken"=dword:00000001
"ConsentPromptBehaviorAdmin"=dword:00000000
"ConsentPromptBehaviorUser"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000
; Apply Thin Windows Borders
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"BorderWidth"="2"
"PaddedBorderWidth"="2"
; Disable the Lock Screen
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
"NoLockScreen"=dword:00000001
; Disable New App Toast Notification
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer]
"NoNewAppAlert"=dword:00000001
; Disable Charms Bar and the Apps Switcher
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUI]
"DisableCharmsHint"=dword:00000001
"DisableTRcorner"=dword:00000001
"DisableTLcorner"=dword:00000001
; Reduce Distance to Drag Close Metro Apps and Speed Up Closing Metro Apps
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\Switcher]
#"CloseDwellTimeout"=dword:0000012c
"CloseDwellTimeout"=dword:00000001
#"MouseCloseThresholdPercent"=dword:00000050
"MouseCloseThresholdPercent"=dword:00000063
"TouchCloseThresholdPercent"=dword:00000050
; Go to the Desktop instead of Start when I Sign in
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage]
"OpenAtLogon"=dword:00000000
; Show Desktop Background as Start Screen Background
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent]
"MotionAccentId_v1.00"=dword:000000db
; Show the Apps View Automatically when I go to Start
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage]
"MakeAllAppsDefault"=dword:00000001
; List Desktop Apps First in the Apps View when it's Sorted by Category
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage]
"DesktopFirst"=dword:00000001
; Don't Replace Command Prompt with Windows PowerShell On the WinX Menu
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DontUsePowerShellOnWinX"=dword:00000001
; Change Sky Drive Brand Name to Microsoft Drive Brand Name
[HKCU\Software\Microsoft\Windows\CurrentVersion\SkyDriveOptIn]
"Brand"=dword:00000001
; Change LogonUI and Startscreen Default Background Color
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
"StartColor"=dword:fff09c00
"AccentColor"=dword:ffb76900
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
"DefaultStartColor"=dword:fff09c00
; Disable Backup for Windows 8.1 Apps
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync]
"EnableBackupForWin8Apps"=dword:00000000
; Change Default Windows 8.1 Apps Install Folder
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx]
"PackageRoot"=C:\WindowsApps
; Disable Windows 8.1 Apps Store Feature
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsStore]
"RemoveWindowsStore"=dword:00000001
; Disable Windows 8.1 Apps and Store related Services (Default value is 3)
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AllUserInstallAgent]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SystemEventsBroker]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TimeBroker]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WSService]
"Start"=dword:00000004
; Turn off The Let Me Teach You About Metro Tutorial Tips
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI]
"DisableHelpSticker"=dword:00000001
; Remove Desktop Link from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
; Remove Documents Link from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
; Remove Downloads Link from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
; Remove Music Link from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
; Remove Pictures Link from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
; Remove Videos Link from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
; Windows Explorer Ribbon Quick Access Toolbar Settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Ribbon]
"QatItems"=hex:3c,73,69,71,3a,63,75,73,74,6f,6d,55,49,20,78,6d,6c,6e,73,3a,73,\
69,71,3d,22,68,74,74,70,3a,2f,2f,73,63,68,65,6d,61,73,2e,6d,69,63,72,6f,73,\
6f,66,74,2e,63,6f,6d,2f,77,69,6e,64,6f,77,73,2f,32,30,30,39,2f,72,69,62,62,\
6f,6e,2f,71,61,74,22,3e,3c,73,69,71,3a,72,69,62,62,6f,6e,20,6d,69,6e,69,6d,\
69,7a,65,64,3d,22,74,72,75,65,22,3e,3c,73,69,71,3a,71,61,74,20,70,6f,73,69,\
74,69,6f,6e,3d,22,31,22,3e,3c,73,69,71,3a,73,68,61,72,65,64,43,6f,6e,74,72,\
6f,6c,73,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,\
3a,31,36,34,33,32,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,\
67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,\
20,69,64,51,3d,22,73,69,71,3a,31,32,33,33,36,22,20,76,69,73,69,62,6c,65,3d,\
22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,\
71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,33,32,32,22,\
20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,\
22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,\
69,71,3a,31,32,33,32,33,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,\
61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,\
6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,33,32,30,22,20,76,69,73,69,62,6c,\
65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,\
73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,32,34,38,33,\
32,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,\
74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,\
22,73,69,71,3a,32,35,30,38,38,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,\
22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,\
74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,33,35,32,22,20,76,69,73,69,\
62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,\
3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,\
33,35,37,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,\
65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,\
51,3d,22,73,69,71,3a,31,36,31,32,38,22,20,76,69,73,69,62,6c,65,3d,22,74,72,\
75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,\
6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,36,31,32,39,22,20,76,69,\
73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,\
20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,\
31,32,33,38,34,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,\
75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,\
69,64,51,3d,22,73,69,71,3a,31,32,34,30,31,22,20,76,69,73,69,62,6c,65,3d,22,\
74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,\
3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,36,35,37,37,22,20,\
76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,\
30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,\
71,3a,31,36,35,37,38,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,\
72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,\
6c,20,69,64,51,3d,22,73,69,71,3a,31,36,35,37,39,22,20,76,69,73,69,62,6c,65,\
3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,\
69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,34,38,35,\
22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,\
3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,\
73,69,71,3a,31,36,35,37,36,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,\
20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,\
72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,38,32,32,38,22,20,76,69,73,69,62,6c,\
65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,\
73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,32,30,36,38,\
38,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,\
74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,\
22,73,69,71,3a,31,32,35,30,31,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,\
22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,\
74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,35,30,32,22,20,76,69,73,69,\
62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,\
3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,36,\
34,38,31,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,\
65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,\
51,3d,22,73,69,71,3a,31,32,34,31,36,22,20,76,69,73,69,62,6c,65,3d,22,74,72,\
75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,\
6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,35,34,34,31,22,20,76,69,\
73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,\
20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,\
31,35,34,34,30,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,\
75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,\
69,64,51,3d,22,73,69,71,3a,32,31,38,32,34,22,20,76,69,73,69,62,6c,65,3d,22,\
74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,\
3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,36,34,36,35,22,20,\
76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,\
30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,\
71,3a,31,35,35,33,37,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,\
72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,2f,73,69,71,3a,73,68,61,72,65,\
64,43,6f,6e,74,72,6f,6c,73,3e,3c,2f,73,69,71,3a,71,61,74,3e,3c,2f,73,69,71,\
3a,72,69,62,62,6f,6e,3e,3c,2f,73,69,71,3a,63,75,73,74,6f,6d,55,49,3e
;shellPromptAsAdministrator
[HKEY_CLASSES_ROOT\Directory\shell\runas]
"Icon"="imageres.dll,-5323"
"MUIVerb"="@shell32.dll,-37415"
;Alternative text
;"MUIVerb"="@shell32.dll,-22022"
"Position"="Bottom"
"SubCommands"="Windows.MultiVerb.cmd;Windows.MultiVerb.cmdPromptAsAdministrator"
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
"Icon"="imageres.dll,-5323"
"MUIVerb"="@shell32.dll,-37415"
;Alternative text
;"MUIVerb"="@shell32.dll,-22022"
"Position"="Bottom"
"SubCommands"="Windows.MultiVerb.cmd;Windows.MultiVerb.cmdPromptAsAdministrator"
[HKEY_CLASSES_ROOT\Drive\shell\runas]
"Icon"="imageres.dll,-5323"
"MUIVerb"="@shell32.dll,-37415"
;Alternative text
;"MUIVerb"="@shell32.dll,-22022"
"Position"="Bottom"
"SubCommands"="Windows.MultiVerb.cmd;Windows.MultiVerb.cmdPromptAsAdministrator"
;cmdPromptAsAdministrator
[HKEY_CLASSES_ROOT\Directory\shell\cmdhere]
"Icon"="imageres.dll,-5323"
"MUIVerb"="@shell32.dll,-37415"
;Alternative text
;"MUIVerb"="@shell32.dll,-22022"
"Position"="Bottom"
"SubCommands"="Windows.MultiVerb.cmd;Windows.MultiVerb.cmdPromptAsAdministrator"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmdhere]
"Icon"="imageres.dll,-5323"
"MUIVerb"="@shell32.dll,-37415"
;Alternative text
;"MUIVerb"="@shell32.dll,-22022"
"Position"="Bottom"
"SubCommands"="Windows.MultiVerb.cmd;Windows.MultiVerb.cmdPromptAsAdministrator"
[HKEY_CLASSES_ROOT\Drive\shell\cmdhere]
"Icon"="imageres.dll,-5323"
"MUIVerb"="@shell32.dll,-37415"
;Alternative text
;"MUIVerb"="@shell32.dll,-22022"
"Position"="Bottom"
"SubCommands"="Windows.MultiVerb.cmd;Windows.MultiVerb.cmdPromptAsAdministrator"
;Disable HIBERBOOT
[HKEY_LOCAL_MACHINE\WIM_System\ControlSet001\Control\Session Manager\Power]
"HiberbootEnabled"=dword:00000000
;Disable HIBERNATION
[HKEY_LOCAL_MACHINE\WIM_System\ControlSet001\Control\Power]
"HibernateEnabled"=dword:00000000
#[HKEY_CLASSES_ROOT\Directory\shell\cmd]
#@=""
#"NoWorkingDirectory"=""
#"SubCommands"=""
#"MUIVerb"="Command Prompt"
#"Icon"="cmd.exe"
#[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
#@="cmd.exe /s /k pushd \"%V\""
#[HKEY_CLASSES_ROOT\Directory\shell\cmd\shell\runas]
#"MUIVerb"="Open Elevated CMD Here"
#"Icon"="cmd.exe"
#"HasLUAShield"=""
;Reassemble 'Libraries' above "This PC" in the navigation pane
[HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]
"SortOrderIndex"=dword:00000042
;Disable Superfetch
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SysMain]
"DisplayName"="Superfetch"
"Start"=dword:00000004
;Disable ReadyBoot
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\WMI\Autologger\ReadyBoot]
"Start"=dword:00000004
;Disable System Restore
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore]
"DisableConfig"=dword:00000001
"DisableSR"=dword:00000001
;Disable downloaded file block (eliminates requirement to "unblock" downloaded files in File Properties); set default risk to normal
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"DefaultFileTypeRisk"=dword:00001808
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"SaveZoneInformation"=dword:00000001
;Stop Windows Media Player from generating album art files
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]
"LargeAlbumArtSize"=dword:ffffffff
"SmallAlbumArtSize"=dword:ffffffff
;Other Microsoft Products Updates
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update] "EnableFeaturedSoftware"=dword:00000001
;Open File Explorer to This PC instead of libraries
[HKEY_CURRENT_USER\Software\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]
"System.IsPinnedToNameSpaceTree"=dword:00000001
; Startup delay
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize]
"StartupDelayInMSec"=dword:00000000
;Always open All Control Panel Items when opening Control Panel - and Select 'Disable'
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"ForceClassicControlPanel"=dword:00000000
@Gnzadaa
Copy link

Gnzadaa commented Oct 29, 2024

const Discord = require("discord.js")
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } = require("discord.js")
const { Painel, Gerenciar2 } = require("../../Functions/Painel");
const { configqrcode } = require("../../Functions/QRCode.js");
const { AcoesAutomaticsConfigs } = require("../../Functions/AcoesAutomatics.js");
const { Gerenciar } = require("../../Functions/Gerenciar");
const { ConfigRoles } = require("../../Functions/ConfigRoles");
const { msgbemvindo } = require("../../Functions/MensagemBemVindo");
const { gerenciarPerms } = require("../../Functions/modUsersPerms");
const { EstatisticasKing } = require("../../index.js");
const { profileuser } = require("../../Functions/profile");
const { produtos, configuracao, tickets } = require("../../DataBaseJson");
const { Posicao1 } = require("../../Functions/PosicoesFunction.js");
const { painelTicket } = require("../../Functions/PainelTickets.js");
const { CreateMessageTicket, Checkarmensagensticket } = require("../../Functions/CreateMensagemTicket.js");
const { CreateTicket } = require("../../Functions/CreateTicket.js");
const { GerenciarCampos2 } = require("../../Functions/GerenciarCampos.js");
const { MessageStock } = require("../../Functions/ConfigEstoque.js");
const { AcoesMsgsAutomatics } = require("../../Functions/ConfigMsgsAutomatics.js");
const { AcoesRepostAutomatics } = require("../../Functions/ConfigRepostAuto.js");
const { moedaConfig } = require("../../Functions/moedaConfig.js");
const { protectConfig } = require("../../Functions/protectConfig.js");
const { owner } = require("../../config.json");
const discordTranscripts = require('discord-html-transcripts');

module.exports = {
name: 'interactionCreate',

run: async (interaction, client) => {

    if (interaction.type == Discord.InteractionType.ModalSubmit) {

        if (interaction.customId == 'sdaju11111231idsj1233js123dua123') {
            let NOME = interaction.fields.getTextInputValue('tokenMP');
            let PREDESC = interaction.fields.getTextInputValue('tokenMP2');
            let DESC = interaction.fields.getTextInputValue('tokenMP3');
            let BANNER = interaction.fields.getTextInputValue('tokenMP5');
            let EMOJI = interaction.fields.getTextInputValue('tokenMP6');

            NOME = NOME.replace('.', '');
            PREDESC = PREDESC.replace('.', '');

            if (tickets.get(`tickets.funcoes.${NOME}`) !== null) {
                return interaction.reply({ content: `❌ |  Já existe uma função com esse nome!`, ephemeral: true });
            }

            if (NOME.length > 32) {
                return interaction.reply({ content: `❌ |  O nome não pode ter mais de 32 caracteres!`, ephemeral: true });
            } else {
                tickets.set(`tickets.funcoes.${NOME}.nome`, NOME)
            }

            if (PREDESC.length > 64) {
                return interaction.reply({ content: `❌ |  A pré descrição não pode ter mais de 64 caracteres!`, ephemeral: true });
            } else {
                tickets.set(`tickets.funcoes.${NOME}.predescricao`, PREDESC)
            }

            if (DESC !== '') {
                if (DESC.length > 1024) {
                    return interaction.reply({ content: `❌ |  A descrição não pode ter mais de 1024 caracteres!`, ephemeral: true });
                } else {
                    tickets.set(`tickets.funcoes.${NOME}.descricao`, DESC)
                }
            }

            if (BANNER !== '') {
                const urlRegex = /^(ftp|http|https):\/\/[^ "]+$/;
                if (!urlRegex.test(BANNER)) {
                    tickets.set(`tickets.funcoes.${NOME}.banner`, BANNER)
                    return interaction.reply({ message: dd, content: `❌ |  Você escolheu incorretamente a URL do banner!`, ephemeral: true });
                } else {
                    tickets.set(`tickets.funcoes.${NOME}.banner`, BANNER)
                }
            }

            if (EMOJI !== '') {
                const emojiRegex = /^<:.+:\d+>$|^<a:.+:\d+>$|^\p{Emoji}$/u;
                if (!emojiRegex.test(EMOJI)) {
                    return interaction.reply({ content: `❌ |  Você escolheu incorretamente o emoji!`, ephemeral: true });
                } else {
                    tickets.set(`tickets.funcoes.${NOME}.emoji`, EMOJI)
                }
            }

            await painelTicket(interaction)

            interaction.followUp({ content: `✅ |  Função adicionada com sucesso!`, ephemeral: true });




        }

        if (interaction.customId == '0-89du0awd8awdaw8daw') {

            let TITULO = interaction.fields.getTextInputValue('tokenMP');
            let DESC = interaction.fields.getTextInputValue('tokenMP2');
            let BANNER = interaction.fields.getTextInputValue('tokenMP3');
            let COREMBED = interaction.fields.getTextInputValue('tokenMP5');

            if (TITULO.length > 256) {
                return interaction.reply({ content: `❌ |  O título não pode ter mais de 256 caracteres!`, ephemeral: true });
            }
            if (DESC.length > 1024) {
                return interaction.reply({ content: `❌ |  A descrição não pode ter mais de 1024 caracteres!`, ephemeral: true });
            }

            if (COREMBED !== '') {
                const hexColorRegex = /^#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})$/;
                if (!hexColorRegex.test(COREMBED)) {
                    
                    return interaction.reply({ content: `❌ |  Código Hex Color \`${COREMBED}\` inváldo, tente pegar [nesse site.](https://www.google.com/search?q=color+picker&oq=color+picker) `, ephemeral: true });
                }else{
                    tickets.set(`tickets.aparencia.color`, COREMBED)
                }
            }



            if (BANNER !== '') {
                const urlRegex = /^(ftp|http|https):\/\/[^ "]+$/;
                if (!urlRegex.test(BANNER)) {
                 
                    return interaction.reply({ message: dd, content: `❌ |  Você escolheu incorretamente a URL do banner!`, ephemeral: true });
                }else{
                    tickets.set(`tickets.aparencia.banner`, BANNER)
                }
            }

            if (TITULO !== '') {
                tickets.set(`tickets.aparencia.title`, TITULO)
            } else {
                tickets.delete(`tickets.aparencia.title`)
            }

            if (DESC !== '') {
                tickets.set(`tickets.aparencia.description`, DESC)
            } else {
                tickets.delete(`tickets.aparencia.description`)
            }

            await painelTicket(interaction)


        }

  


        if (interaction.customId === 'aslfdjauydvaw769dg7waajnwndjo') {

            let VALOR = interaction.fields.getTextInputValue('tokenMP');
            let CARGO = interaction.fields.getTextInputValue('tokenMP2');


            if (CARGO !== '' && VALOR !== '') {
                const role = await interaction.guild.roles.fetch(CARGO);

                if (role === null) {
                    return interaction.reply({ content: `❌ |  Você escolheu incorretamente o ID do cargo!`, ephemeral: true });
                }

                if (isNaN(VALOR)) {
                    return interaction.reply({ content: `❌ |  Você escolheu incorretamente o valor!`, ephemeral: true });
                }

                configuracao.set(`posicoes.pos1.role`, CARGO);
                configuracao.set(`posicoes.pos1.valor`, VALOR);
            } else {
                configuracao.delete(`posicoes.pos1`);
            }

            await Posicao1(interaction, client)
            interaction.followUp({ content: `✅ |  Posição definida com sucesso!`, ephemeral: true });

        }

        if (interaction.customId === 'awiohdbawudwdwhduawdnuaw') {

            let VALOR = interaction.fields.getTextInputValue('tokenMP');
            let CARGO = interaction.fields.getTextInputValue('tokenMP2');


            if (CARGO !== '' && VALOR !== '') {
                const role = await interaction.guild.roles.fetch(CARGO);

                if (role === null) {
                    return interaction.reply({ content: `❌ |  Você escolheu incorretamente o ID do cargo!`, ephemeral: true });
                }

                if (isNaN(VALOR)) {
                    return interaction.reply({ content: `❌ |  Você escolheu incorretamente o valor!`, ephemeral: true });
                }

                configuracao.set(`posicoes.pos2.role`, CARGO);
                configuracao.set(`posicoes.pos2.valor`, VALOR);
            } else {
                configuracao.delete(`posicoes.pos2`);
            }

            await Posicao1(interaction, client)
            interaction.followUp({ content: `✅ |  Posição definida com sucesso!`, ephemeral: true });
        }

        if (interaction.customId === 'uy82819171h172') {

            let VALOR = interaction.fields.getTextInputValue('tokenMP');
            let CARGO = interaction.fields.getTextInputValue('tokenMP2');

            if (CARGO !== '' && VALOR !== '') {
                const role = await interaction.guild.roles.fetch(CARGO);

                if (role === null) {
                    return interaction.reply({ content: `❌ |  Você escolheu incorretamente o ID do cargo!`, ephemeral: true });
                }

                if (isNaN(VALOR)) {
                    return interaction.reply({ content: `❌ |  Você escolheu incorretamente o valor!`, ephemeral: true });
                }

                configuracao.set(`posicoes.pos3.role`, CARGO);
                configuracao.set(`posicoes.pos3.valor`, VALOR);
            } else {
                configuracao.delete(`posicoes.pos3`);
            }

            await Posicao1(interaction, client)
            interaction.followUp({ content: `✅ |  Posição definida com sucesso!`, ephemeral: true });
        }


    }

    if (interaction.isAutocomplete()) {
        if (interaction.commandName == 'manage_item') {
            const nomeDigitado = interaction.options.getFocused().toLowerCase();
            const produtosFiltrados = produtos.filter(x => x.ID.toLowerCase().includes(nomeDigitado));
            const produtosSelecionados = produtosFiltrados.slice(0, 25);

            const config = produtosSelecionados.flatMap(x => {
                const matchingFields = x.data.Campos.filter(iterator =>
                    iterator.Nome.toLowerCase().includes(nomeDigitado)
                );

                return matchingFields.map(iterator => ({
                    name: `🧵 ${x.data.Config.name} ➔ ${iterator.Nome}`,
                    value: `${x.ID}_${iterator.Nome}`,
                }));
            });

            const response = config.length > 0
                ? config
                : [{ name: 'Nenhum produto registrado foi encontrado', value: 'nada' }];

            interaction.respond(response);
        }

        if (interaction.commandName == 'manage_stock') {
            const nomeDigitado = interaction.options.getFocused().toLowerCase();
            const produtosFiltrados = produtos.filter(x => x.ID.toLowerCase().includes(nomeDigitado));
            const produtosSelecionados = produtosFiltrados.slice(0, 25);

            const config = produtosSelecionados.flatMap(x => {
                const matchingFields = x.data.Campos.filter(iterator =>
                    iterator.Nome.toLowerCase().includes(nomeDigitado)
                );

                return matchingFields.map(iterator => ({
                    name: `🧵 ${x.data.Config.name} ➔ ${iterator.Nome}`,
                    value: `${x.ID}_${iterator.Nome}`,
                }));
            });

            const response = config.length > 0
                ? config
                : [{ name: 'Nenhum produto registrado foi encontrado', value: 'nada' }];

            interaction.respond(response);
        }

        if (interaction.commandName == 'manage_product') {
            var nomeDigitado = interaction.options.getFocused().toLowerCase();
            var produtosFiltrados = produtos.filter(x => x.ID.toLowerCase().includes(nomeDigitado));
            var produtosSelecionados = produtosFiltrados.slice(0, 25);

            const config = produtosSelecionados.map(x => {
                return {
                    name: `🧵 ${x.data.Config.name}`,
                    value: `${x.ID}`
                }
            })

            interaction.respond(!config.length ? [{ name: `Nenhum produto registrado foi encontrado`, value: `nada` }] : config);

        }
    }

    let valorticket
    if (interaction.isButton() && interaction.customId.startsWith('AbrirTicket_')) {
        valorticket = interaction.customId.replace('AbrirTicket_', '');
        CreateTicket(interaction, valorticket)
    } else if (interaction.isStringSelectMenu() && interaction.customId === 'abrirticket') {
        valorticket = interaction.values[0]
        CreateTicket(interaction, valorticket)
    }

    if (interaction.isStringSelectMenu()) {

        if(interaction.customId == 'asdihadbhawhdwhdaw'){


            const campo = interaction.values[0].split('_')[0]
            const produto = interaction.values[0].split('_')[1]


            GerenciarCampos2(interaction, campo, produto, true)

        }

        if(interaction.customId == 'stockhasdhvsudasd'){

            const campo = interaction.values[0].split('_')[0]
            const produto = interaction.values[0].split('_')[1]

            MessageStock(interaction, 1, produto, campo, true)


        }

        if (interaction.customId == 'deletarticketsfunction') {
            const valordelete = interaction.values
            for (const iterator of valordelete) {
                tickets.delete(`tickets.funcoes.${iterator}`)
            }
            painelTicket(interaction)
        }

    }

    if (interaction.isStringSelectMenu() && interaction.customId == "selectMoedaC") {

        const option = interaction.values[0];

        if (option === "realBRL") {

        await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })
        
        Gerenciar2(interaction, client);

        }

    }

    if (interaction.isStringSelectMenu() && interaction.customId == "selectProtectBot") {

        const option = interaction.values[0];

        if (option == "permsConfig") {

            await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })

            gerenciarPerms(interaction, client);

        }

    }


    if (interaction.isChannelSelectMenu()) {

        if (interaction.customId == 'canalpostarticket') {
            await interaction.reply({ content: `🔁 | Aguarde estamos criando sua mensagem!`, ephemeral: true });
            await CreateMessageTicket(interaction, interaction.values[0], client)
            interaction.editReply({ content: `✅ |  Mensagem criada com sucesso!`, ephemeral: true });
        }

    }

    if (interaction.isButton()) {

        if (interaction.customId == 'sincronizarticket') {
            await interaction.reply({ content: `🔁 | Aguarde estamos atualizando suas mensagem!`, ephemeral: true });
            await Checkarmensagensticket(client)
            interaction.editReply({ content: `✅ |  Mensagens atualizada com sucesso!`, ephemeral: true });
        }

       

        if (interaction.customId == `postarticket`) {
            const ggg = tickets.get(`tickets.funcoes`)
            const ggg2 = tickets.get(`tickets.aparencia`)


            if (ggg == null || Object.keys(ggg).length == 0 || ggg2 == null || Object.keys(ggg2).length == 0) {
                return interaction.reply({ content: `❌ |  Adicione uma função antes de postar a mensagem.`, ephemeral: true });
            } else {
                const selectaaa = new Discord.ChannelSelectMenuBuilder()
                    .setCustomId('canalpostarticket')
                    .setPlaceholder('Clique aqui para selecionar')
                    .setChannelTypes(Discord.ChannelType.GuildText)

                const row1 = new ActionRowBuilder()
                    .addComponents(selectaaa);

                interaction.reply({ components: [row1], content: `Selecione o canal onde quer postar a mensagem.`, ephemeral: true, })

            }
        }

        if (interaction.customId == 'deletar') {
            if (!interaction.member.roles.cache.has(configuracao.get('ConfigRoles.cargoadm')) && !interaction.member.roles.cache.has(configuracao.get('ConfigRoles.cargosup'))) {
                return interaction.reply({ content: `❌ |  Você não tem permissão para fazer isso!`, ephemeral: true });
            }
            
            try {
                const transcript = await discordTranscripts.createTranscript(interaction.channel, {
                    limit: -1, 
                    fileName: `transcript-${interaction.channel.name}.html`,
                    saveImages: true,
                    poweredBy: false
                });
        
                const transcriptEmbed = new EmbedBuilder()
                    .setTitle(`📜 Transcript do Ticket: ${interaction.channel.name}`)
                    .setDescription(`O ticket foi encerrado e aqui está o registro completo da conversa.`)
                    .setColor('#FFD700')
                    .addFields(
                        { name: 'Ticket Criado Por', value: `<@${interaction.channel.name.split('・')[2]}>`, inline: true },
                        { name: 'Ticket Fechado Por', value: `${interaction.user}`, inline: true },
                        { name: 'Categoria', value: interaction.channel.name.split('・')[0], inline: true }
                    )
                    .setFooter({ text: `${interaction.guild.name} - Sistema de Tickets` })
                    .setTimestamp();
        
                const trafficChannel = interaction.guild.channels.cache.get(configuracao.get(`ConfigChannels.systemlogs`));
                if (trafficChannel) {
                    await trafficChannel.send({ 
                        //content: `🎭 Um capítulo se encerra, mas a história permanece preservada...`,
                        embeds: [transcriptEmbed],
                        files: [transcript]
                    });
                }
        
                await interaction.reply({ content: `✅ | O ticket será fechado e um transcript foi salvo.`, ephemeral: true });
        
                setTimeout(async () => {
                    await interaction.channel.delete();
                }, 5000);
        
            } catch (error) {
                console.error('Erro ao deletar ticket e enviar transcript:', error);
                await interaction.reply({ content: `❌ | Ocorreu um erro ao processar sua solicitação.`, ephemeral: true });
            }
        }

        if (interaction.customId == 'notifyuser') {
            if (!interaction.member.roles.cache.has(configuracao.get('ConfigRoles.cargoadm')) && !interaction.member.roles.cache.has(configuracao.get('ConfigRoles.cargosup'))) return interaction.reply({ content: `❌ |  Você não tem permissão para fazer isso!`, ephemeral: true });
            if (!interaction.channel.isThread()) {
                return interaction.reply({ content: "Este comando só pode ser usado em um tópico de ticket.", ephemeral: true });
            }
        
            const threadNameParts = interaction.channel.name.split('・');
            const userId = threadNameParts[threadNameParts.length - 1];
        
            try {
                const user = await interaction.client.users.fetch(userId);
        
                const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js");

async function enviarNotificacao(interaction) {
// Obter o membro que interagiu (o autor do ticket)
const member = interaction.member;

// Criar a mensagem em formato de texto simples
const mensagem = `
    🎫 **Atualização do seu Ticket**
    Olá! Temos novidades sobre o seu ticket. Estamos aguardando sua resposta!

    **Status:** 📝 Aguardando sua resposta
    **Ticket:** #${interaction.channel.name.split('・')[0]}
`;

// Lista de imagens
const images = [
    'https://cdn.discordapp.com/attachments/971504137629995078/1258927956567261204/0a7d48f744ba0f3606875ee928843fd7.webp?ex=6689d386&is=66888206&hm=0696c7ea2fe093a64f17acaa64086c406b87d8b6a0ff99e97f9092ea68f1b485&',
    'https://cdn.discordapp.com/attachments/971504137629995078/1258927956567261204/0a7d48f744ba0f3606875ee928843fd7.webp?ex=6689d386&is=66888206&hm=0696c7ea2fe093a64f17acaa64086c406b87d8b6a0ff99e97f9092ea68f1b485&',
    'https://cdn.discordapp.com/attachments/971504137629995078/1258927956567261204/0a7d48f744ba0f3606875ee928843fd7.webp?ex=6689d386&is=66888206&hm=0696c7ea2fe093a64f17acaa64086c406b87d8b6a0ff99e97f9092ea68f1b485&'
];

// Selecionar uma imagem aleatória
const imagemEscolhida = images[Math.floor(Math.random() * images.length)];

// Criar o botão que redireciona ao canal do ticket
const row = new ActionRowBuilder().addComponents(
    new ButtonBuilder()
        .setURL(`https://discord.com/channels/${interaction.guild.id}/${interaction.channel.id}`)
        .setLabel('Ir para o Ticket')
        .setStyle(ButtonStyle.Link)
);

// Enviar a mensagem com imagem e botão
try {
    await interaction.reply({ 
        content: mensagem,
        files: [imagemEscolhida],
        components: [row]
    });
} catch (error) {
    console.error("Erro ao enviar mensagem:", error);
    await interaction.reply("Ocorreu um erro ao enviar a mensagem. Verifique as permissões do bot e tente novamente.");
}

}

module.exports = {
enviarNotificacao
};

                await user.send({ embeds: [embed], components: [row] });
        
                await interaction.reply({ content: `✅ | Notificação enviada com sucesso para ${user.tag}!`, ephemeral: true });
        
            } catch (error) {
                console.error("Erro ao notificar o usuário:", error);
                await interaction.reply({ content: "❌ | Ocorreu um erro ao tentar notificar o usuário. Verifique se o usuário ainda está no servidor ou se permite mensagens diretas.", ephemeral: true });
            }
        }

        if (interaction.customId == 'renameTicket') {

            if (!interaction.member.roles.cache.has(configuracao.get('ConfigRoles.cargoadm')) && !interaction.member.roles.cache.has(configuracao.get('ConfigRoles.cargosup'))) return interaction.reply({ content: `❌ |  Você não tem permissão para fazer isso!`, ephemeral: true });
            if (!interaction.channel.isThread()) {
                return interaction.reply({ content: "❌ | Este comando só pode ser usado em um tópico de ticket.", ephemeral: true });
            }
        
            const modal = new Discord.ModalBuilder()
                .setCustomId('renameTicketModal')
                .setTitle('Renomear Ticket');
        
            const newNameInput = new Discord.TextInputBuilder()
                .setCustomId('newTicketName')
                .setLabel("Novo nome do ticket")
                .setStyle(Discord.TextInputStyle.Short)
                .setPlaceholder('Digite o novo nome aqui')
                .setRequired(true);
        
            const firstActionRow = new Discord.ActionRowBuilder().addComponents(newNameInput);
            modal.addComponents(firstActionRow);
        
            await interaction.showModal(modal);
        
            try {
                const submitted = await interaction.awaitModalSubmit({
                    time: 60000,
                    filter: i => i.customId === 'renameTicketModal'
                });
        
                if (submitted) {
                    const newName = submitted.fields.getTextInputValue('newTicketName');
                    const thread = interaction.channel;
        
                    const nameParts = thread.name.split('・');
        
                    if (nameParts.length !== 3) {
                        return submitted.reply({ content: " ❌ | O formato do nome do tópico não é válido.", ephemeral: true });
                    }
        
                    const updatedName = `${newName}・${nameParts[1]}・${nameParts[2]}`;
        
                    try {
                        await thread.setName(updatedName);
                        await submitted.reply({ content: `✅ | O ticket foi renomeado com sucesso!`, ephemeral: true });
                    } catch (error) {
                        console.error("Erro ao renomear o tópico:", error);
                        await submitted.reply({ content: "❌ | Ocorreu um erro ao renomear o tópico. Por favor, tente novamente.", ephemeral: true });
                    }
                }
            } catch (error) {
                console.error("Erro ao aguardar a submissão do modal:", error);
                await interaction.followUp({ content: "❌ | O tempo para renomear o ticket expirou. Por favor, tente novamente.", ephemeral: true });
            }
        }



        if (interaction.customId == 'remfuncaoticket') {


            const ggg = tickets.get(`tickets.funcoes`)

         
                
            if (ggg == null || Object.keys(ggg).length == 0) {
                return interaction.reply({ content: `❌ |  Não existe nenhuma função criada para remover.`, ephemeral: true });
            }
            
             else {

                const selectMenuBuilder = new Discord.StringSelectMenuBuilder()
                    .setCustomId('deletarticketsfunction')
                    .setPlaceholder('Clique aqui para selecionar')
                    .setMinValues(0)

                for (const chave in ggg) {
                    const item = ggg[chave];

                    const option = {
                        label: `${item.nome}`,
                        description: `${item.predescricao}`,
                        value: item.nome
                    };

                    selectMenuBuilder.addOptions(option);


                }

                selectMenuBuilder.setMaxValues(Object.keys(ggg).length)

                const style2row = new ActionRowBuilder().addComponents(selectMenuBuilder);
                try {
                    await interaction.update({ components: [style2row], content: `${interaction.user} Qual funções deseja remover?`, embeds: [] })
                } catch (error) {
                }
            }

        }


        if (interaction.customId == 'rendimento') { //aqui
            const row = new ActionRowBuilder()
                .addComponents(
                    new ButtonBuilder()
                        .setCustomId("todayyyy")
                        .setLabel('Hoje')
                        .setStyle(2)
                        .setDisabled(false),
                    new ButtonBuilder()
                        .setCustomId("7daysss")
                        .setLabel('Últimos 7 dias')
                        .setStyle(2)
                        .setDisabled(false),
                    new ButtonBuilder()
                        .setCustomId("30dayss")
                        .setLabel('Últimos 30 dias')
                        .setStyle(2)
                        .setDisabled(false),
                    // new ButtonBuilder()
                    //     .setCustomId("twoHours")
                    //     .setLabel('Últimas 2 horas')
                    //     .setStyle(2)
                    //     .setDisabled(false),   
                    // new ButtonBuilder()
                    //     .setCustomId("topProducts")
                    //     .setLabel('Top produtos')
                    //     .setStyle(2)
                    //     .setDisabled(true),   
                    new ButtonBuilder()
                        .setCustomId("totalrendimento")
                        .setLabel('Rendimento Total')
                        .setStyle(3)
                        .setDisabled(false),
                )
            interaction.reply({ content: `Olá senhor **${interaction.user.username}**, selecione algum filtro.`, components: [row], ephemeral: true })
        }

        if (interaction.customId == 'gerenciarposicao') {

            Posicao1(interaction, client)

        }



        if (interaction.customId == 'Editarprimeiraposição') {

            const aa = configuracao.get(`posicoes`)

            const modalaAA = new ModalBuilder()
                .setCustomId('aslfdjauydvaw769dg7waajnwndjo')
                .setTitle(`Definir primeira posição`);

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`VALOR`)
                .setPlaceholder(`Insira uma quantia, ex: 100`)
                .setValue(aa?.pos1?.valor == undefined ? '' : aa.pos1?.valor)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`CARGO`)
                .setPlaceholder(`Insira um id de algum cargo`)
                .setValue(aa?.pos1?.role == undefined ? '' : aa.pos1?.role)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);

            modalaAA.addComponents(firstActionRow3, firstActionRow4);

            await interaction.showModal(modalaAA);
        }

        if (interaction.customId == 'Editarsegundaposição') {
            const aa = configuracao.get(`posicoes`)

            const modalaAA = new ModalBuilder()
                .setCustomId('awiohdbawudwdwhduawdnuaw')
                .setTitle(`Definir segunda posição`);

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`VALOR`)
                .setPlaceholder(`Insira uma quantia, ex: 100`)
                .setValue(aa?.pos2?.valor == undefined ? '' : aa.pos2?.valor)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`CARGO`)
                .setPlaceholder(`Insira um id de algum cargo`)
                .setValue(aa?.pos2?.role == undefined ? '' : aa.pos2?.role)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);

            modalaAA.addComponents(firstActionRow3, firstActionRow4);

            await interaction.showModal(modalaAA);
        }

        if (interaction.customId == 'Editarterceiraposição') {
            const aa = configuracao.get(`posicoes`)
            const modalaAA = new ModalBuilder()
                .setCustomId('uy82819171h172')
                .setTitle(`Definir terceira posição`);

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`VALOR`)
                .setPlaceholder(`Insira uma quantia, ex: 100`)
                .setValue(aa?.pos3?.valor == undefined ? '' : aa.pos3?.valor)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`CARGO`)
                .setPlaceholder(`Insira um id de algum cargo`)
                .setValue(aa?.pos3?.role == undefined ? '' : aa.pos3?.role)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);

            modalaAA.addComponents(firstActionRow3, firstActionRow4);

            await interaction.showModal(modalaAA);
        }


        if (interaction.customId == 'todayyyy' || interaction.customId == '7daysss' || interaction.customId == '30dayss' || interaction.customId == 'totalrendimento' || interaction.customId == 'twoHours') {
let rendimento;
let name;
let embed;

if (interaction.customId == 'todayyyy') {
    rendimento = await EstatisticasKing.SalesToday();
    name = 'Resumo das vendas de hoje';
} else if (interaction.customId == '7daysss') {
    rendimento = await EstatisticasKing.SalesWeek();
    name = 'Resumo das vendas nos últimos 7 dias';
} else if (interaction.customId == '30dayss') {
    rendimento = await EstatisticasKing.SalesMonth();
    name = 'Resumo das vendas nos últimos 30 dias';
} else if (interaction.customId == 'totalrendimento') {
    rendimento = await EstatisticasKing.SalesTotal();
    name = 'Resumo geral de todas as vendas';
} else if (interaction.customId == 'twoHours') {
    rendimento = await EstatisticasKing.SalesLastTwoHours();
    name = 'Resumo das vendas das últimas 2 horas';
    // Criação de um Embed específico para "duas horas"
    embed = new EmbedBuilder()
        .setColor(`${configuracao.get(`Cores.Principal`) == null ? `#00FF00` : configuracao.get(`Cores.Principal`)}`)
        .setTitle(`${name}`)
        .addFields(
            { name: `**Rendimento**`, value: `\`R$ ${Number(rendimento.rendimentoTotal).toLocaleString('pt-BR', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}\``, inline: true },
            { name: `**Pedidos aprovados**`, value: `\`${rendimento.quantidadeTotal}\``, inline: true },
            { name: `**Produtos entregues**`, value: `\`${rendimento.produtosEntregue}\``, inline: true },
            { name: `**Usuários únicos**`, value: `\`${rendimento.usuarios.length}\``, inline: true } // Novo campo para usuários únicos
        )
        .setAuthor({ name: `${interaction.user.username}` })
        .setTimestamp()
        .setFooter({ text: `${interaction.user.username}` });

    interaction.update({ embeds: [embed] });
    return; // Retorna após atualizar para evitar sobrescrever o embed nas condições abaixo
}

// Embed para outros casos que não as últimas duas horas
embed = new EmbedBuilder()
    .setColor(`${configuracao.get(`Cores.Principal`) == null ? `#00FF00` : configuracao.get(`Cores.Principal`)}`)
    .setTitle(`${name}`)
    .addFields(
        { name: `**Rendimento**`, value: `\`R$ ${Number(rendimento.rendimentoTotal).toLocaleString('pt-BR', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}\``, inline: true },
        { name: `**Pedidos aprovados**`, value: `\`${rendimento.quantidadeTotal}\``, inline: true },
        { name: `**Produtos entregues**`, value: `\`${rendimento.produtosEntregue}\``, inline: true },
    )
    .setAuthor({ name: `${interaction.user.username}` })
    .setTimestamp()
    .setFooter({ text: `${interaction.user.username}` });

interaction.update({ embeds: [embed] });

}

        if (interaction.customId.startsWith('criarrrr')) {

            const modalaAA = new ModalBuilder()
                .setCustomId('sdaju11111idsjjsdua')
                .setTitle(`Criação`);

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`NOME`)
                .setPlaceholder(`Insira o nome do seu produto`)
                .setStyle(TextInputStyle.Short)
                .setRequired(true)

            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`DESCRIÇÃO`)
                .setPlaceholder(`Insira uma descrição para seu produto`)
                .setStyle(TextInputStyle.Paragraph)
                .setRequired(false)
                .setMaxLength(1024)

            const newnameboteN4 = new TextInputBuilder()
                .setCustomId('tokenMP3')
                .setLabel(`ENTREGA AUTOMÁTICA?`)
                .setPlaceholder(`Digite "sim" ou "não"`)
                .setStyle(TextInputStyle.Short)
                .setMaxLength(3)
                .setRequired(true)

            const newnameboteN5 = new TextInputBuilder()
                .setCustomId('tokenMP4')
                .setLabel(`ICONE (OPCIONAL)`)
                .setPlaceholder(`Insira uma URL de uma imagem ou gif`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN6 = new TextInputBuilder()
                .setCustomId('tokenMP5')
                .setLabel(`BANNER (OPCIONAL)`)
                .setPlaceholder(`Insira uma URL de uma imagem ou gif`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);
            const firstActionRow5 = new ActionRowBuilder().addComponents(newnameboteN4);
            const firstActionRow6 = new ActionRowBuilder().addComponents(newnameboteN5);
            const firstActionRow7 = new ActionRowBuilder().addComponents(newnameboteN6);



            modalaAA.addComponents(firstActionRow3, firstActionRow4, firstActionRow5, firstActionRow6, firstActionRow7);
            await interaction.showModal(modalaAA);

        }

        if (interaction.customId.startsWith('voltar1')) {

            await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })

            Painel(interaction, client)

        }

         if (interaction.customId.startsWith('voltarMsgsConfig')) { //exemplo

            AcoesAutomaticsConfigs(interaction, client)

        }


        if (interaction.customId.startsWith('addfuncaoticket')) {

            const dd = tickets.get('tickets.funcoes')
           
            
            if (dd && Object.keys(dd).length > 24) {
                return interaction.reply({ content: `❌ |  Você não pode criar mais de 24 funções em seu TICKET!` });
            }
              
            const modalaAA = new ModalBuilder()
                .setCustomId('sdaju11111231idsj1233js123dua123')
                .setTitle(`Adicionar função`);

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`NOME DA FUNÇÃO`)
                .setPlaceholder(`Insira aqui um nome, como: Suporte`)
                .setStyle(TextInputStyle.Short)

                .setRequired(true)

            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`PRÉ DESCRIÇÃO`)
                .setPlaceholder(`Insira aqui uma pré descrição, ex: "Preciso de suporte."`)
                .setStyle(TextInputStyle.Short)
                .setRequired(true)
                .setMaxLength(99)

            const newnameboteN4 = new TextInputBuilder()
                .setCustomId('tokenMP3')
                .setLabel(`DESCRIÇÃO`)
                .setPlaceholder(`Insira aqui a descrição da função.`)
                .setStyle(TextInputStyle.Paragraph)
                .setRequired(false)
                .setMaxLength(99)

            const newnameboteN5 = new TextInputBuilder()
                .setCustomId('tokenMP5')
                .setLabel(`BANNER (OPCIONAL)`)
                .setPlaceholder(`Insira aqui uma URL de uma imagem ou GIF`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN6 = new TextInputBuilder()
                .setCustomId('tokenMP6')
                .setLabel(`EMOJI DA FUNÇÃO`)
                .setPlaceholder(`Insira um nome ou id de um emoji do servidor.`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);
            const firstActionRow5 = new ActionRowBuilder().addComponents(newnameboteN4);
            const firstActionRow6 = new ActionRowBuilder().addComponents(newnameboteN5);
            const firstActionRow7 = new ActionRowBuilder().addComponents(newnameboteN6);


            modalaAA.addComponents(firstActionRow3, firstActionRow4, firstActionRow5, firstActionRow6, firstActionRow7);
            await interaction.showModal(modalaAA);

        }
        if (interaction.customId.startsWith('definiraparencia')) {



            const modalaAA = new ModalBuilder()
                .setCustomId('0-89du0awd8awdaw8daw')
                .setTitle(`Editar Ticket`);

            const dd = tickets.get(`tickets.aparencia`)

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`TITULO`)
                .setPlaceholder(`Insira aqui um nome, como: Entrar em contato`)
                .setStyle(TextInputStyle.Short)
                .setValue(dd?.title == undefined ? '' : dd.title)
                .setRequired(true)


            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`DESCRIÇÃO`)
                .setPlaceholder(`Insira aqui uma descrição.`)
                .setStyle(TextInputStyle.Paragraph)
                .setValue(dd?.description == undefined ? '' : dd.description)
                .setMaxLength(500)
                .setRequired(true)


            const newnameboteN4 = new TextInputBuilder()
                .setCustomId('tokenMP3')
                .setLabel(`BANNER (OPCIONAL)`)
                .setPlaceholder(`Insira aqui uma URL de uma imagem ou GIF`)
                .setStyle(TextInputStyle.Short)
                .setValue(dd?.banner == undefined ? '' : dd.banner)
                .setRequired(false)



            const newnameboteN5 = new TextInputBuilder()
                .setCustomId('tokenMP5')
                .setLabel(`COR DO EMBED (OPCIONAL)`)
                .setPlaceholder(`Insira aqui um código Hex Color, ex: FFFFFF`)
                .setStyle(TextInputStyle.Short)
                .setValue(dd?.color == undefined ? '' : dd.color)
                .setRequired(false)


            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);
            const firstActionRow5 = new ActionRowBuilder().addComponents(newnameboteN4);
            const firstActionRow6 = new ActionRowBuilder().addComponents(newnameboteN5);

            modalaAA.addComponents(firstActionRow3, firstActionRow4, firstActionRow5, firstActionRow6);
            await interaction.showModal(modalaAA);



        }

        if (interaction.customId.startsWith('painelconfigticket')) {


            painelTicket(interaction)


        }



        if (interaction.customId.startsWith('personalizarbot')) {

            const modalaAA = new ModalBuilder()
                .setCustomId('sdaju11111231idsjjs123dua123')
                .setTitle(`Editar perfil do bot`);

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`NOME DE USUÁRIO`)
                .setValue(`${client.user.username}`)
                .setPlaceholder(`Insira um nome de usuário (só pode mudar 3x por hora)`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`AVATAR`)
                .setPlaceholder(`Insira uma URL de um ícone`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN4 = new TextInputBuilder()
                .setCustomId('tokenMP3')
                .setLabel(`STATUS 1`)
                .setPlaceholder(`Insira aqui um status personalizado`)
                .setValue(`COLOCA AQUI O STATUS 1`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN5 = new TextInputBuilder()
                .setCustomId('tokenMP5')
                .setLabel(`STATUS 2`)
                .setValue(`COLOCA AQUI O STATUS 2`)
                .setPlaceholder(`Insira aqui um status personalizado`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);
            const firstActionRow5 = new ActionRowBuilder().addComponents(newnameboteN4);
            const firstActionRow6 = new ActionRowBuilder().addComponents(newnameboteN5);

            modalaAA.addComponents(firstActionRow3, firstActionRow4, firstActionRow5, firstActionRow6);
            await interaction.showModal(modalaAA);

        }


        if (interaction.customId.startsWith('coresembeds')) {

            const modalaAA = new ModalBuilder()
                .setCustomId('sdaju11111idsjjs123dua123')
                .setTitle(`Editar cores dos embeds`);

            const newnameboteN = new TextInputBuilder()
                .setCustomId('tokenMP')
                .setLabel(`COR PRINCIPAL`)
                .setPlaceholder(`Insira aqui um código Hex Color, ex: #Obd4cd`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN2 = new TextInputBuilder()
                .setCustomId('tokenMP2')
                .setLabel(`COR DE PROCESSAMENTO`)
                .setPlaceholder(`Insira aqui um código Hex Color, ex: #fcba03`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN4 = new TextInputBuilder()
                .setCustomId('tokenMP3')
                .setLabel(`COR DE SUCESSO`)
                .setPlaceholder(`Insira aqui um código Hex Color, ex: #39fc03`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN5 = new TextInputBuilder()
                .setCustomId('tokenMP5')
                .setLabel(`COR DE FALHA`)
                .setPlaceholder(`Insira aqui um código Hex Color, ex: #ff0000`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const newnameboteN6 = new TextInputBuilder()
                .setCustomId('tokenMP6')
                .setLabel(`COR DE FINALIZADO`)
                .setPlaceholder(`Insira aqui um código Hex Color, ex: #7363ff`)
                .setStyle(TextInputStyle.Short)
                .setRequired(false)

            const firstActionRow3 = new ActionRowBuilder().addComponents(newnameboteN);
            const firstActionRow4 = new ActionRowBuilder().addComponents(newnameboteN2);
            const firstActionRow5 = new ActionRowBuilder().addComponents(newnameboteN4);
            const firstActionRow6 = new ActionRowBuilder().addComponents(newnameboteN5);
            const firstActionRow7 = new ActionRowBuilder().addComponents(newnameboteN6);



            modalaAA.addComponents(firstActionRow3, firstActionRow4, firstActionRow5, firstActionRow6, firstActionRow7);
            await interaction.showModal(modalaAA);

        }



        if (interaction.customId.startsWith('voltar2')) {

            Gerenciar(interaction, client)

        }

        if (interaction.customId == "altMoeda") {

            await interaction.update({ content: `🔁 Carregando...`, embeds: [], components: [] });

            moedaConfig(interaction, client);

        }

        if (interaction.customId == "protecaoBot") {

            await interaction.update({ content: `🔁 Carregando...`, embeds: [], components: [] });

            const owners = owner.map(rs => `<@${rs}>`).join(', ')

            if (!owner.includes(interaction.user.id)) {
                interaction.editReply({
                    content: `❌ Faltam permissões.\n❓ Apenas os titulares da compra (${owners}) pode alterar as configurações de proteção do servidor.`
                });
                return;
            }

            protectConfig(interaction, client);

        }

        if (interaction.customId.startsWith('gerenciarconfigs')) {
            Gerenciar(interaction, client)
        }

        if (interaction.customId.startsWith('configcargos')) {
            ConfigRoles(interaction, client)
        }
        if (interaction.customId.startsWith('painelpersonalizar')) {


            const row2 = new ActionRowBuilder()
                .addComponents(
                    new ButtonBuilder()
                        .setCustomId("coresembeds")
                        .setLabel('Editar cores dos embeds')
                        .setEmoji(`1178080366871973958`)
                        .setStyle(1),

                    new ButtonBuilder()
                        .setCustomId("personalizarbot")
                        .setLabel('Personalizar Bot')
                        .setEmoji(`1178080828933283960`)
                        .setStyle(1),

                    new ButtonBuilder()
                        .setCustomId("definirtema")
                        .setLabel('Definir tema')
                        .setEmoji(`1178066208835252266`)
                        .setDisabled(true)
                        .setStyle(1)
                )

            const row3 = new ActionRowBuilder()
                .addComponents(
                    new ButtonBuilder()
                        .setCustomId("voltar1")
                        .setLabel('Voltar')
                        .setEmoji(`1178068047202893869`)
                        .setStyle(2)
                )

            interaction.update({ embeds: [], components: [row2, row3], content: `Escolha uma opção e use sua criatividade e profissionalismo ;) ` })


        }
        if (interaction.customId.startsWith('painelconfigbv')) {

            msgbemvindo(interaction, client)

        }

        if (interaction.customId.startsWith('marca-qrcode')) {

            configqrcode(interaction, client)

        }

        if (interaction.customId.startsWith('actionsautomations')) { //exemplo

            AcoesAutomaticsConfigs(interaction, client)

        }

        // if (interaction.customId.startsWith('voltarMsgsConfig')) { //exemplo

        //     AcoesAutomaticsConfigs(interaction, client)

        // }

        if (interaction.customId.startsWith('MsgsAutoConfig')) { //exemplo

            AcoesMsgsAutomatics(interaction, client)

        }

        if (interaction.customId.startsWith('automaticRepostar')) { //exemplo

            AcoesRepostAutomatics(interaction, client)

        }

        if (interaction.customId.startsWith('voltar3')) {

            await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })

            Gerenciar2(interaction, client)

        }

        if (interaction.customId.startsWith('voltar00')) {

            await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })

            Painel(interaction, client)

        }


        if (interaction.customId.startsWith('painelconfigvendas')) {

            await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })

            Gerenciar2(interaction, client)

        }

        if (interaction.customId.startsWith('voltarsendlogo')) {

            await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })

            Gerenciar2(interaction, client)
            
        }

        if (interaction.customId == "voltarProtect") {

            await interaction.update({ content: `🔄️ Carregando...`, embeds: [], components: [] })

            protectConfig(interaction, client);

        }


    }
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment