Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nilesoft won't let me create any menus #635

Open
Eta-Beta opened this issue Feb 20, 2025 · 4 comments
Open

Nilesoft won't let me create any menus #635

Eta-Beta opened this issue Feb 20, 2025 · 4 comments

Comments

@Eta-Beta
Copy link

Good morning, I'm opening a new discussion here because from a question I wrote here, > #628 (comment) it has turned into a problem.
I can't create any menus anymore, the code is correct, Nilesoft reads it (if there are errors it doesn't start), but it doesn't display the menus. However, if I create an entry, to start a program it displays it correctly. Examples.

menu(mode="multiple" title="Compattatori" image=\uE1E8)
{ 

modify(mode="multiple" type='file|dir|drive' find='"7-zip"' menu="Compattatori" image=path.combine(sys.prog,'7-Zip','7zFM.exe'))
modify(mode="multiple" type='file|dir|drive' find='"WinRAR"' menu="Compattatori" image=path.combine(sys.prog,'WinRAR','WinRAR.exe'))
modify(mode="multiple" type='file|dir|drive' find='"Estrai Tutto"' menu="Compattatori")
modify(mode="multiple" type='file|dir|drive' find='"PowerISO"' menu="Compattatori")

}



// Esclusione dal Menu 

remove(type='*' find='Aggiungi alla coda di riproduzione del lettore multimediale' vis=0)
remove(type='*' find='Aggiungi alla scaletta del lettore multimediale VLC' vis=0)
remove(type='*' find='Riproduci con il lettore multimediale' vis=0)
remove(type='*' find='Add to MPC-HC playlist' vis=0)
remove(type='*' find='Play with MPC-HC' vis=0)
remove(type='*' find='Apri nel Terminale' vis=0)
remove(type='*' find='Attiva BitLocker' vis=0)
remove(type='*' find="Crea un'immagine di backup della partizione" vis=0)
remove(type='*' find='Cancella senza tracce' vis=0)
remove(type='*' find='Scansione in profondità' vis=0)
remove(type='*' find='Crea backup rapido per il/i file selezionati' vis=0)
remove(type='*' find='Converti a Adobe pdf' vis=0)
remove(type='*' find='Combina file in Acrobat' vis=0)

//Menu ALtre Opzioni

modify(mode="multiple" type='*' find='Analizza con Microsoft Defender' menu=title.more_options)

//Menu Gestione File

modify(mode="multiple" type='*' find='File Converter' menu='Gestione File')
modify(mode="multiple" type='*' find='Modifica con Notepad++' menu='Gestione File')
modify(mode="multiple" type='*' find='Modifica' menu='Gestione File')
modify(mode="multiple" type='*' find='Unlocker' menu='Gestione File')
modify(mode="multiple" type='*' find='LockHunter' menu='Gestione File')
//   modify(mode="multiple" type='*' find='What's locking this file?' menu='Gestione File')





menu(mode="multiple" title="Prova1" image=\uE1E8) {}

menu(mode="multiple" title="Prova2" image=\uE1E8) {}

menu(mode="multiple" title="Prova3" image=\uE1E8) {}

The last 3 menus, even though they are written correctly, do not appear

Image

This bug appeared just a few days ago, the version of Nilesoft is 1.9.18 which had no problems. In addition to my PC, with Windows 11 24h2 I also tried on a PC with just installed Windows 11 24h2, a PC with Windows 11 23h2 and a virtual machine with Windows 11 22h2, but the problem is always the same. I really don't know what to do, is it a virus? 😒😒, it only attacks Nilesoft🤣🤣.

@RubicBG
Copy link
Collaborator

RubicBG commented Feb 20, 2025

empty menu cannot be displayed:

  • if you move an element (modify(find='....' menu='Prova1') the menu will appear
  • you can add an "invisible" element to display the "menu"
menu(mode="multiple" title="Prova1" image=\uE1E8) { tem(vis=0) }

ps:

  • remove() does not need vis=0 (it's not wrong but NS omits it when reading the command)
    remove( ... ) is equivalent to modify( ... vis=0)
  • 99% of the time you don't need type='*' (it's not wrong but it checks menus that don't have these commands - for example taskbar menu, edit menu ...)

@Eta-Beta
Copy link
Author

Hello, and thank you very much as always for your help. I tried the code you posted, it doesn't work. I tried as you wrote to put an element inside the menu and magically it appeared (now I understand how it works). I used a program to remove more quickly the elements that were not useful to me inserted during installation, I thought that it was this program that caused the problem. I have not yet performed the corrections you suggested, but if it leads to an improvement of the script I will certainly do them. I use type='*' when I remove an element, because it has happened many times that the removed element reappears in another tab.

@RubicBG
Copy link
Collaborator

RubicBG commented Feb 20, 2025

type mistake:

menu(mode="multiple" title="Prova1" image=\uE1E8) { item(vis=0) }

If the code isn't working, check the shell.log file by opening it in a text editor like Notepad. This file will show you which file has the issue, along with the exact line and character position of the error. If you delete shell.log, it will be recreated with the latest error message the next time an issue occurs.

@Eta-Beta
Copy link
Author

Thank you very much, I found more errors, but they are from other tests and I don't understand which one to use. Tomorrow I'll insert it again and then post the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants