Jump to content

tananiki

Members
  • Content Count

    1
  • Donations

    $0.00 
  • Joined

  • Last visited

Community Reputation

0 n00b

About tananiki

  • Rank
    Newbie

Additional Information

  • Android
    4.0.x (Ice Cream Sandwich)
  • Device
    HTC One X

Recent Profile Visitors

112 profile views
  1. tananiki

    LUA scripting

    anyone know how to correct this script? i keep getting error on choice number 2... the function is to search a number when press Search, then refine search and freeze the first 4 address to 10. after done unfreeze and clear the list. function doAction() local menu = gg.choice({'Search','Change','Clear','exit'}) if menu==1 then gg.clearResults() gg.searchNumber('1.23',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0,-1) end if menu==2 then gg.refineNumber('4.56',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0,-1) local t = gg.getResults(4) t[1].value = '10' t[1].freeze = true t[1].freezeType = FREEZE_NORMAL t[2].value = '10' t[2].freeze = true t[2].freezeType = FREEZE_NORMAL t[3].value = '10' t[3].freeze = true t[3].freezeType = FREEZE_NORMAL t[4].value = '10' t[4].freeze = true t[4].freezeType = FREEZE_NORMAL gg.addListItems(t) end if menu==3 then local r = gg.getListItems() r[1].freeze = false r[2].freeze = false r[3].freeze = false r[4].freeze = false gg.clearList() end if menu==4 then os.exit() end end gg.setVisible(false) while true do if gg.isVisible() then gg.setVisible(false) doAction() end gg.sleep(100) end
×
×
  • Create New...