Jump to content
UBot Underground

LordFrz

Members
  • Content Count

    12
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by LordFrz

  1. Probably but, when I needed a save to clipboard function I was never able to download that plugin. I was always added to a mailing list and never received the plugin.

    I wound up using Aymens' C# compiler to use the clipboard function. So I just made my own, that can be obtained without any mailing list op in. Nothing against the

    maker of that plugin, im sure its not something that was done intentionally. 

    • Like 2
  2. A simple plugin that lets you easily use your clipboard.

     

    Contains a Copy Command, and a Paste Function.

     

    Copy Command located under (“Data Commands”)
    Paste Function Located under (“Data Functions”)

     

    Example Code:

    ui text box("Enter Text Here: ",#UIText)
    ui stat monitor("Text Entered",#UIText)
    ui button("Copy Text") {
        plugin command("UbotClipboardPlugin.dll", "copy", #UIText)
    }
    ui button("Paste") {
        set(#PasteVar,$plugin function("UbotClipboardPlugin.dll", "$paste"),"Global")
    }

    Download

  3. Thanks guys, I decided to try Aymens CSharp Compiler plugin, which is awesome by the way. Here is how I decided to do it. Works flawlessly.

    define copy_link {
        plugin command("CsharpCompiler.dll", "csharp container") {
            plugin command("CsharpCompiler.dll", "csharp add .net assembly", "System.Windows.Forms.dll", "System.Windows.Forms")
            plugin command("CsharpCompiler.dll", "csharp add namespace", "System.Windows.Forms")
            set(#copyfunction,$plugin function("CsharpCompiler.dll", "$csharp compiler", "String cpy =\"\";
    Clipboard.SetText(\"{#variableToBeCopied}\");
    return cpy;"),"Global")
        }
    }
    
  4. I am needing to copy the text from a stat monitor, and can not find anything to fit my need. My bot outputs a url to the screen, and I need to copy it. The only UI elements that I can even highlight text from are the text boxes, but I am not able to change there value from the code. And the stat monitor text in not copyable.

     

    I have tried making a copy button, by loading my url variable to browser and using keyboard commands to ctrl+A and ctrl+C but it did not work.

     

    I even tried to download the plugin that said it had a copy to clipboard function, but I never got the download link from the site.

     

    Anyway to copy a variable to the clipboard? I tries both python and javascript to no avail.

     

    Thanks

  5. OK got it workin, here is how I did it is anyone is interested.

    on load("Tab Loaded") {
        clear list(%CampaignList)
        clear table(&ListOfCampaigns)
        add list to list(%CampaignList, $get files("{$special folder("Application")}/Campaigns", "No"), "Delete", "Global")
        set list position(%CampaignList, 0)
        loop($list total(%CampaignList)) {
            set table cell(&ListOfCampaigns, $list position(%CampaignList), 0, "<option value=\"{$list item(%CampaignList, $list position(%CampaignList))}\">{$list item(%CampaignList, $list position(%CampaignList))}</option>")
            set list position(%CampaignList, $eval($add($list position(%CampaignList), 1)))
        }
    }
    ui html panel("<div class=\"SelectCampaign\" id=\"wrapper\">
    	<select class=\"dropdown MyVariable MyVariableselect\" id=\"MyVariable\" variable=\"{#campaign}\">
    		{&ListOfCampaigns}
    	</select>
    </div>", "")
    
    
    • Like 1
  6. I am making my user interface and have run into a problem. The following code works perfect, but I am not entirely sure how to utilize a similar function with the html panel ui component. Is there a way to use both the html panel and a ui component? Problem is when I use html panel for my ui the non html panel ui components disappear.

    on load("Tab Loaded") {
        clear list(%CampaignList)
        clear table(&ListOfCampaigns)
        add list to list(%CampaignList, $get files("{$special folder("Application")}/Campaigns", "No"), "Delete", "Global")
        add list to table as row(&ListOfCampaigns, 0, 0, %CampaignList)
    }
    
    ui drop down("Choose A Campaign", &ListOfCampaigns, #campaign)
    

    This will get all my campaign files in a folder, and display them in a dropdown menu. 

×
×
  • Create New...