මට Html ෆයිල් එකක් රයිට් ක්ලික් කලාම එන මෙනුවට “අමතර..“ නමින් මෙනු අයිතමයක් හදල
එය තුල උප අයිතම දෙකක් හදාගන්න අවශ්යයි ඒක කරන්නේ කොහොමද?
එය තුල උප අයිතම දෙකක් හදාගන්න අවශ්යයි ඒක කරන්නේ කොහොමද?
නෑ බං වින්ඩෝස් රෙජිස්ට්රිය සැකසීමෙන් කලයුතු දෙයක් ගැන මම කියන්නේ.javascript ona wei, google "javascript custom context menu"
මම දැන් කොහොමද ඕක කියන්න ඕනේA/l වලට සිංහලෙන් it කරන එකෙක් වගේ
නෑ බං වින්ඩෝස් රෙජිස්ට්රිය සැකසීමෙන් කලයුතු දෙයක් ගැන මම කියන්නේ.
මම දැන් කොහොමද ඕක කියන්න ඕනේ
------ Post added on Sep 4, 2023 at 10:58 PM

අයිකන්එක රයිට් ක්ලික් කලාම. එන මෙනුවට අයිටම් එකක් එකතු කරලා ඒකට සබ් අයිටම් දෙකක් එකතු කරලා ඒවා හරහා මම හදපු ප්රෝග්රෑම් 2ක් හරහා පිටුව විවෘත කරගන්න අවශ්යයි.හරියට අහපන් අහන උත්තක්. File icon එක right click කලාමද අහන්නේ, නැතනම් browser එකේ open කරලා browser එකේ right click කලාමද?
උඹට බෑ නේද?
stack overflow eke balapan nattan superuser forum eke
මම දැන් කොහොමද ඕක කියන්න ඕනේ
අයිකන්එක රයිට් ක්ලික් කලාම. එන මෙනුවට අයිටම් එකක් එකතු කරලා ඒකට සබ් අයිටම් දෙකක් එකතු කරලා ඒවා හරහා මම හදපු ප්රෝග්රෑම් 2ක් හරහා පිටුව විවෘත කරගන්න අවශ්යයි.
ඔය ක්රෙම්ට උපමෙනු හදන්න බෑනේProgram හදන්න තේරෙනවා. ප්රශ්නයක් පැහැදිලිව අහන්න තේරෙන්නේ නෑ. දෙයක් serach කරන්න තේරෙන්නෙ නෑ. බබා වරෙන් වැඩේ ඉවර කරන් තනේ දෙන්න.
මේවා අපිට පුකේ අමාරුවට search කරන දේවල්
https://stackoverflow.com/questions...ndows-context-menu-only-for-specific-filetype
https://stackoverflow.com/questions...ndows-context-menu-only-for-specific-filetype
අනේ එහෙනම් හුකහන්ඔය ක්රෙම්ට උපමෙනු හදන්න බෑනේ
වැරදියිhttps://bard.google.com/ කියපු විස්තර
How to add a context menu for the specific file types in windows file explorer
Sure, you can add a context menu for a specific file type in Windows File Explorer by editing the Windows Registry.
Here are the steps:
HKEY_CURRENT_USER\Software\Classes\<file extension>\shell
- Open the Registry Editor by pressing Windows+R and typing regedit.
- Navigate to the following key:
Replace <file extension> with the file extension of the file type you want to add a context menu for. For example, to add a context menu for .txt files, you would replace <file extension> with .txt.
"C:\Program Files\Notepad++\notepad++.exe" "%1"
- Right-click on the shell key and select New > Key.
- Name the new key the name of the context menu item you want to add. For example, to add a context menu item called "Open with Notepad", you would name the new key open_with_notepad.
- Right-click on the new key and select New > String Value.
- Name the new string value command.
- Double-click on the command string value and enter the command that you want to run when the context menu item is clicked. For example, to open the file with Notepad, you would enter the following command:
Replace C:\Program Files\Notepad++\notepad++.exe with the path to the Notepad++ executable file on your computer. 8. Click the OK button.
The new context menu item will now be added to the right-click menu for files with the specified file extension.
Here are some additional things to keep in mind:
I hope this helps! Let me know if you have any other questions.
- The command that you enter in the command string value must be the full path to the executable file.
- You can also specify additional parameters for the command by adding them after the file path. For example, to open the file in read-only mode, you would add the /r parameter to the command.
- You can also specify a hotkey for the context menu item by adding a Default value to the key. The value of the Default value should be the hotkey that you want to use.
How can I add multiple submenu items for that context menu?
Yes, you can add multiple submenu items for a context menu in Windows File Explorer. To do this, you need to create a submenu key under the main context menu key.
For example, to add a submenu called "My Submenu" to the "Open with" context menu, you would create a submenu key called open_with\my_submenu.
You can then add context menu items to the submenu key in the same way that you added them to the main context menu key.
Here are the steps to add a submenu item to a context menu in Windows File Explorer:
HKEY_CURRENT_USER\Software\Classes\<file extension>\shell\<context menu item name>
- Open the Registry Editor by pressing Windows+R and typing regedit.
- Navigate to the following key:
Replace <file extension> with the file extension of the file type you want to add a context menu for. Replace <context menu item name> with the name of the context menu item you want to add.
"C:\Program Files\Notepad++\notepad++.exe" "%1"
- Right-click on the shell key and select New > Key.
- Name the new key the name of the submenu item you want to add. For example, to add a submenu item called "My Submenu", you would name the new key my_submenu.
- Right-click on the new key and select New > String Value.
- Name the new string value command.
- Double-click on the command string value and enter the command that you want to run when the context menu item is clicked. For example, to open the file with Notepad, you would enter the following command:
Replace C:\Program Files\Notepad++\notepad++.exe with the path to the Notepad++ executable file on your computer. 8. Click the OK button.
The new submenu item will now be added to the context menu.
I hope this helps! Let me know if you have any other questions.
ප්රෝග්රමර් කෙනෙක් හැමවෙලාවෙම තනියෙම තම ගැටලුව විසදන්න පුළුවන් විය යුතුයි. ඒ සඳහා යා යුතු පාර අඳුනා ගත යුතුයි. බොහෝ දෙනා පුරුදු වෙලා තියෙන්නේ stuckoverflow හෝ වෙනත් සයිට් සහ AI වලින් පිළිතුර සොයන්න. නමුත් සමහර ගැටළු වලට විසදුම් එතන නැහැ නමුත් යා යුතු පාර එතනින් පෙන්වනවා.වැරදියි
like this?මට Html ෆයිල් එකක් රයිට් ක්ලික් කලාම එන මෙනුවට “අමතර..“ නමින් මෙනු අයිතමයක් හදල
එය තුල උප අයිතම දෙකක් හදාගන්න අවශ්යයි ඒක කරන්නේ කොහොමද?
ඔයු හැබැයි windows explorer right click context menuවට