Jump to content
UBot Underground

iamddr

Fellow UBotter
  • Content Count

    90
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by iamddr

  1. Hi Nick,

    By run this code, I got five columns, how to clear columns before reinit datagrid? thanks

    plugin command("UltimateUI.dll", "UI Initialize DataGrid", #dataGrid1, "{$plugin function("UltimateUI.dll", "$UI Add DataGrid Text Column", "Keyword")}{$plugin function("UltimateUI.dll", "$UI Add DataGrid Text Column", "Description")}", 16, "Arial", "", "D8F7FC")
    plugin command("UltimateUI.dll", "UI Initialize DataGrid", #dataGrid1, "{$plugin function("UltimateUI.dll", "$UI Add DataGrid Text Column", "Keyword")}{$plugin function("UltimateUI.dll", "$UI Add DataGrid Text Column", "Description")}{$plugin function("UltimateUI.dll", "$UI Add DataGrid Text Column", "NewColumn")}", 16, "Arial", "", "D8F7FC")
    
    
  2. plugin command("LocalDictionary.dll", "clear global dictionary")
    thread {
        plugin command("LocalDictionary.dll", "init local dictionary")
        plugin command("LocalDictionary.dll", "local dictionary add", "a", 1)
        alert("t1:{$plugin function("LocalDictionary.dll", "$local dictionary get", "a")}")
        plugin command("LocalDictionary.dll", "clear local dictionary")
    }
    thread {
        plugin command("LocalDictionary.dll", "init local dictionary")
        plugin command("LocalDictionary.dll", "local dictionary add", "a", 2)
        alert("t2:{$plugin function("LocalDictionary.dll", "$local dictionary get", "a")}")
        plugin command("LocalDictionary.dll", "clear local dictionary")
    }
    thread {
        plugin command("LocalDictionary.dll", "init local dictionary")
        alert("t3:{$plugin function("LocalDictionary.dll", "$local dictionary get", "a")}")
    }
    
    

    if thread3 failed on "local dictionary add", the thread3's "local dictionary get" will get thread2's value

  3.  clear all data
    plugin command("LocalDictionary.dll", "clear global dictionary")
    thread {
        plugin command("LocalDictionary.dll", "init local dictionary")
        plugin command("LocalDictionary.dll", "local dictionary add", "a", 1)
        alert($plugin function("LocalDictionary.dll", "$local dictionary get", "a"))
        plugin command("LocalDictionary.dll", "clear local dictionary")
    }
    thread {
        plugin command("LocalDictionary.dll", "init local dictionary")
        plugin command("LocalDictionary.dll", "local dictionary add", "b", 2)
        alert($plugin function("LocalDictionary.dll", "$local dictionary get", "b"))
        plugin command("LocalDictionary.dll", "clear local dictionary")
    }
    thread {
        plugin command("LocalDictionary.dll", "init local dictionary")
        alert($plugin function("LocalDictionary.dll", "$local dictionary get", "c"))
    }
    

    I always got the value of key 'c' is 2, in this code is the last value of key 'b'

×
×
  • Create New...