Jump to content
UBot Underground

jimbourekas@yahoo.gr

Fellow UBotter
  • Content Count

    31
  • Joined

  • Last visited

Posts posted by jimbourekas@yahoo.gr

  1. I know it's an old thread but I thought that this may help someone. I have converted my images to Base64 (there are many free online tools) and then used the Base64 encoding of the picture instead of the actual file. I did this also for some background images at my UI Panels.

  2. Hello,

     

    I have the following UI Panel code:

    ui html panel("<!DOCTYPE html>
    <html>
      <body>
        <div>
          <select  variable=\"#myvar2\" fillwith=\"value\" id=\"icd10\" onchange=\"doIt();\">
            <option value=\"United States\">United States</option>
            <option value=\"United Kingdom\">United Kingdom</option>
            <option value=\"Afghanistan\">Afghanistan</option>
          </select>
          <div id=\"hiddenIcd10\" variable=\"#myvar\" fillwith=\"innertext\"></div>
        </div>
        
      </body>
    <script>
     
        function doIt()\{
            document.getElementById(\"hiddenIcd10\").innerText=document.getElementById(\"icd10\").value;
        \}
            
        </script>
    </html>
    ", 135)

    There is one select and one div, both with assigned variables.

     

    The special thing here is that I have an event on the select that changes the innertext of the div. 

     

    The result is that when the select changes, the div changes but only for a moment. Then ubot overwrites the value of the div blank.

     

    Any ideas to overcome this would be very welcome.

     

    Regards,

     

    Jim

  3. Hello,

     

    I know it's over 2 years later that I'm waking this thread up. I am wondering, is it possible with version 4 to display a pdf in the browser area just like your screenshot?

     

    jim

     

    Ok, I got support to answer this. Version 3 was based on Internet Explorer core while version 4 is not. So, the answer is that it cannot display a pdf...

  4. Follow these instructions for a completely silent solution:

     

    1. Create a file del_file.vbs using your notepad
    2. Put these contents inside:
      set fso = CreateObject("Scripting.FileSystemObject")
      
      If fso.FileExists(WScript.Arguments(0)) Then
            fso.DeleteFile(WScript.Arguments(0))
      End If
    3. Create a ubot command using the following code:
      define delete_vbs(#filepath) {
          shell("wscript.exe \"{$special folder("Application")}\\del_file.vbs\" \"{#filepath}\"")
      }
    4. Put the .vbs file in the same folder as your ubot script
    5. To delete a file, just call the command:
      delete_vbs("c:\\myfile.txt")
    6. The file gets deleted silently. If it does not exist then nothing happens.

    Enjoy

  5. Accordingly, in the UI panel you would then have something like this:

     

    ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
    <title>your title</title>
    </head>
    <body>
        <div variable=\"#stat_thread1\" fillwith=\"innerhtml\"> </div>
      </body>
    </html>", 40)

     

    You have to understand that the UI Html panel is not updated automatically, you have to set the values of #stat_thread1 yourself when you want.

     

    Hope that this adds something to Abbas' help. (notice that #checking and #stat_thread1 are used the same)

     

    jimb

×
×
  • Create New...