ScriptAddin: Confirm - Requester-Erweiterungen bzw. @confirm-Ersatz
Verfasst: 6. Feb 2024 14:08
Confirm ist ein ScriptAddin welches ein "Confirm" ScriptCommand zur Verfügung stellt. Es ist als Ersatz zum "@confirm" Modifier gedacht, welcher nur sehr begrenzte Möglichkeiten bietet. Das neue "Confirm" kann in alten und neuen Buttons (ScriptButtons) verwendet werden. Der beigefügte Button zeigt die Verwendung in allen Facetten für alte und neue Buttons.
Confirm unterstützt:
- Info/Warn/Error Icons
- Platzhalter für Source/Dest und andere Variablen
- Platzhalter für die Anzahl selektierter Items/Files/Dirs
- beliebig viele Buttons und freie Texte
- Passwort oder String-Eingabe zur Bestätigung
- Listendarstellung für Items (autom. Kürzung falls zu lang etc.)
- Zeilenumbruch einfügen mit "\n".
Basic Usage:
Demo-Dialogs:
Demo-MenuButton:
Download:
//v0.2.4 (2024-02-06)
//- update date strings in history, no functional change
//v0.2.3 (2024-02-06)
//- update url to new forum thread
//- upsidedown history in script
//v0.2.2 (2016-05-29)
//- Password or confirm by "entering a string" added
(12.65 KiB) 428-mal heruntergeladen
//v0.2.1 (2016-05-28)
//- some fixes I don't remember
(12.25 KiB) 337-mal heruntergeladen
//v0.2 (2016-01-29)
//- parameter ITEMS added (allows to list affected files/directories easily with {allfiles} placeholder)
//- returning result in variable named "Script.Confirm.Result" (scoped to sourcetab if present, else global)
(12.07 KiB) 388-mal heruntergeladen
//v0.1 (2015-12-01)
//- supports custom title, message, buttons and icon (all parameters optional)
//- supports placeholders for the number of selected items/files/dirs {#selitems$}, {#seldirs$}, {#selfiles$}
//- supports resolving of all DO variables (global, tab or lister-scoped)
Confirm unterstützt:
- Info/Warn/Error Icons
- Platzhalter für Source/Dest und andere Variablen
- Platzhalter für die Anzahl selektierter Items/Files/Dirs
- beliebig viele Buttons und freie Texte
- Passwort oder String-Eingabe zur Bestätigung
- Listendarstellung für Items (autom. Kürzung falls zu lang etc.)
- Zeilenumbruch einfügen mit "\n".
Basic Usage:
Code: Alles auswählen
Confirm MSG="This is a warning." ICON=warning BUTTONS="Oh sh..!" ITEMS={allfile$}
Code: Alles auswählen
Confirm MSG="Really copy from..\n\n[{sourcepath$|noterm}]\n\nto..\n\n[{destpath$|noterm}] ?\n\nSelected items: {#selitems$}\nSelected files:{#selfiles$}\nSelected dirs: {#seldirs$}"
Code: Alles auswählen
Confirm MSG="Enter 'go' to continue!" PW=go
Code: Alles auswählen
Confirm MSG="This is a warning.\n\nReally delete?\n" ICON=warning BUTTONS="Button1|Button2|Button3|Cancel" ITEMS={allfile$}
Demo-MenuButton:
Download:
//v0.2.4 (2024-02-06)
//- update date strings in history, no functional change
//v0.2.3 (2024-02-06)
//- update url to new forum thread
//- upsidedown history in script
//v0.2.2 (2016-05-29)
//- Password or confirm by "entering a string" added
(12.65 KiB) 428-mal heruntergeladen
//v0.2.1 (2016-05-28)
//- some fixes I don't remember
(12.25 KiB) 337-mal heruntergeladen
//v0.2 (2016-01-29)
//- parameter ITEMS added (allows to list affected files/directories easily with {allfiles} placeholder)
//- returning result in variable named "Script.Confirm.Result" (scoped to sourcetab if present, else global)
(12.07 KiB) 388-mal heruntergeladen
//v0.1 (2015-12-01)
//- supports custom title, message, buttons and icon (all parameters optional)
//- supports placeholders for the number of selected items/files/dirs {#selitems$}, {#seldirs$}, {#selfiles$}
//- supports resolving of all DO variables (global, tab or lister-scoped)