JDownloader Community - Appwork GmbH

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02.03.2020, 08:25
mgpai mgpai is offline
Script Master
Join Date: Sep 2013
Posts: 1,508

Originally Posted by zreenmkr View Post
... can't seem to find a function that get package name on selected package.
// Get Selected packageName
// Trigger : "DownloadList Contextmenu Button Pressed"

if (name == "Get Selected packageName") {
    try {
        var myDownloadlistSelection = dlSelection;
        var selectionIsPackage = myDownloadlistSelection.isPackageContext();

        if (selectionIsPackage) {
            var myFilePackage = myDownloadlistSelection.getContextPackage();
            var myFilePackageName = myFilePackage.getName();

            alert("Selected Package: " + myFilePackageName);
        } else {
            alert('Select a package');
    } catch (e) {
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 15:22.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.