Advertisement
Guest User

text

a guest
May 5th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GetText 18.99 KB | None | 0 0
  1. ----------------------------------------- VARIABLES -----------------------------------------
  2. title="8 Ball Pool"
  3. credits="                created by Manuel Abreu                06/18/2018"
  4. blue="0x00F21200"
  5. red1="0x00F21200"
  6. red2="0x00F212000"
  7. white="0x00F21200"
  8.  
  9. function setHack_Information()
  10.   t =
  11.   {
  12. {'Long Line',
  13. [[LuaCall(Aobswap("d0 66 ?? ?? 01 60 ?? ?? 24 01","d0 66 ?? ?? 01 60 ?? ?? 24 2c"))]],
  14. [[Long Line Anti Banned]]},
  15.  
  16. {'All Room Guidelines',
  17. [[LuaCall(Aobswap("27 61 e5 6d 47 47","26"))]],
  18. [[All Room Guidelines]]}
  19. }
  20. end
  21.  
  22. ----------------------------------------- MAIN GUI -----------------------------------------
  23. MainGUI     = {}
  24. MainGUI[1]  = createForm(false)
  25. MainGUI[2]  = createPanel(MainGUI[1])
  26. MainGUI[4]  = createLabel(MainGUI[2])
  27. MainGUI[5]  = createGroupBox(MainGUI[2])
  28. MainGUI[6]  = createLabel(MainGUI[5])
  29. MainGUI[7]  = createLabel(MainGUI[5])
  30. MainGUI[8]  = createLabel(MainGUI[2])
  31. MainGUI[9]  = createLabel(MainGUI[5])
  32. MainGUI[10] = createComboBox(MainGUI[5])
  33. MainGUI[11]  = createGroupBox(MainGUI[2])
  34. MainGUI[12] = createButton(MainGUI[5])
  35. MainGUI[13] = createLabel(MainGUI[2])
  36. MainGUI[14]  = createLabel(MainGUI[11])
  37. MainGUI[15] = createListBox(MainGUI[11])
  38. MainGUI[16] = createButton(MainGUI[11])
  39. MainGUI[17] = createButton(MainGUI[11])
  40. MainGUI[18]  = createLabel(MainGUI[11])
  41. MainGUI[19]  = createLabel(MainGUI[11])
  42. MainGUI[23]  = createButton(MainGUI[11])
  43.  
  44. ----------------------------------------- PROPERTIES -----------------------------------------
  45. setProperty(MainGUI[1] , "color", red2)
  46. setProperty(MainGUI[1] , "ShowInTaskBar", 'stAlways')
  47. setProperty(MainGUI[1] , "Position", "poScreenCenter")
  48. setProperty(MainGUI[1] , "BiDiMode", "bdLeftToRight")
  49. setProperty(MainGUI[2] , "BiDiMode", "bdLeftToRight")
  50. setProperty(MainGUI[2] , "BiDiMode", "bdLeftToRight")
  51. setProperty(MainGUI[10] , "ReadOnly", "True")
  52. FontHeight = getProperty(MainGUI[4] , "Font")
  53. setProperty(FontHeight , "Style", "[fsBold, fsitalic]")
  54. setProperty(FontHeight , "Height", "26")
  55. setProperty(FontHeight , "Color", white)
  56. FontHeight = getProperty(MainGUI[5] , "Font")
  57. setProperty(FontHeight , "Height", "18")
  58. setProperty(FontHeight , "Color", white)
  59. FontHeight = getProperty(MainGUI[8] , "Font")
  60. setProperty(FontHeight , "Style", "[fsBold, fsitalic]")
  61. setProperty(FontHeight , "Height", "26")
  62. setProperty(FontHeight , "Color", white)
  63. FontHeight = getProperty(MainGUI[9] , "Font")
  64. setProperty(FontHeight , "Style", "[fsBold]")
  65. setProperty(FontHeight , "Height", "16")
  66. setProperty(FontHeight , "Color", white)
  67. FontHeight = getProperty(MainGUI[10] , "Font")
  68. setProperty(FontHeight , "Height", "18")
  69. FontHeight = getProperty(MainGUI[12] , "Font")
  70. setProperty(FontHeight , "Height", "13")
  71. FontHeight = getProperty(MainGUI[13] , "Font")
  72. setProperty(FontHeight , "Style", "[fsBold, fsitalic]")
  73. setProperty(FontHeight , "Height", "16")
  74. setProperty(FontHeight , "Color", white)
  75. setProperty(MainGUI[13], "Cursor", "-21")
  76. FontHeight = getProperty(MainGUI[14] , "Font")
  77. setProperty(FontHeight , "Height", "18")
  78. setProperty(FontHeight , "Color", white)
  79. FontHeight = getProperty(MainGUI[15] , "Font")
  80. setProperty(FontHeight , "Height", "18")
  81. FontHeight = getProperty(MainGUI[18] , "Font")
  82. setProperty(FontHeight , "Style", "[fsBold]")
  83. setProperty(FontHeight , "Height", "18")
  84. setProperty(FontHeight , "Color", white)
  85. FontHeight = getProperty(MainGUI[19] , "Font")
  86. setProperty(FontHeight , "Height", "18")
  87. setProperty(FontHeight , "Color", white)
  88.  
  89. -----------------------------------------SIZE + POS -----------------------------------------
  90. control_setSize(MainGUI[1], 425, 512)
  91. x,y = control_getSize(MainGUI[1])
  92. control_setSize(MainGUI[2], x,y)
  93. control_setSize(MainGUI[5], 404, 129)
  94. control_setSize(MainGUI[10], 255, 21)
  95. control_setSize(MainGUI[11], 404, 279)
  96. control_setSize(MainGUI[12], 107, 28)
  97. control_setSize(MainGUI[15], 255, 106)
  98. control_setSize(MainGUI[16], 107, 26)
  99. control_setSize(MainGUI[17], 107, 26)
  100. control_setSize(MainGUI[23], 107, 26)
  101. control_setPosition(MainGUI[4], 15, 10)
  102. control_setPosition(MainGUI[5], 10, 35)
  103. control_setPosition(MainGUI[6], 10, 5)
  104. control_setPosition(MainGUI[8], 15, 175)
  105. control_setPosition(MainGUI[9], 10, 75)
  106. control_setPosition(MainGUI[10], 10, 35)
  107. control_setPosition(MainGUI[11], 10, 205)
  108. control_setPosition(MainGUI[12], 280, 35)
  109. control_setPosition(MainGUI[13], 12, 490)
  110. control_setPosition(MainGUI[14], 10, 5)
  111. control_setPosition(MainGUI[15], 10, 35)
  112. control_setPosition(MainGUI[16], 280, 35)
  113. control_setPosition(MainGUI[17], 280, 76)
  114. control_setPosition(MainGUI[18], 10, 155)
  115. control_setPosition(MainGUI[19], 11, 180)
  116. control_setPosition(MainGUI[23], 280, 116)
  117.  
  118. ----------------------------------------- CAPTION -----------------------------------------
  119. control_setCaption(MainGUI[1], title.." Trainer")
  120. control_setCaption(MainGUI[4], title.." Trainer")
  121. control_setCaption(MainGUI[6], "Select your browser. Make sure the game is loaded.")
  122. control_setCaption(MainGUI[8],  "Available hacks for this game")
  123. control_setCaption(MainGUI[9], "Attached to PID: waiting...")
  124. control_setCaption(MainGUI[12], "Select")
  125. control_setCaption(MainGUI[13], " KongHack.com " ..credits)
  126. control_setCaption(MainGUI[14],  "Enable hacks before starting a new game.")
  127. control_setCaption(MainGUI[16], 'Enable selected')
  128. control_setCaption(MainGUI[17], 'Enable all')
  129. control_setCaption(MainGUI[18],"Description:")
  130. control_setCaption(MainGUI[19],"no hack selected")
  131. control_setCaption(MainGUI[23], 'Reset all')
  132. control_setEnabled(MainGUI[16], false)
  133. control_setEnabled(MainGUI[17], false)
  134. control_setEnabled(MainGUI[23], false)
  135.  
  136. ----------------------------------------- PROGRESSBAR  -----------------------------------------
  137. MainGUI[20] = createProgressBar(MainGUI[11])
  138. control_setPosition(MainGUI[20], 11, 180)
  139. control_setSize(MainGUI[20], 255, 14)
  140. control_setVisible(MainGUI[20], false)
  141. MainGUI[21]  = createLabel(MainGUI[11])
  142. FontHeight = getProperty(MainGUI[21] , "Font")
  143. setProperty(FontHeight , "Style", "[fsBold]")
  144. setProperty(FontHeight , "Height", "18")
  145. setProperty(FontHeight , "Color", white)
  146. control_setPosition(MainGUI[21], 10, 155)
  147. control_setVisible(MainGUI[21], false)
  148. MainGUI[22]  = createLabel(MainGUI[11])
  149. FontHeight = getProperty(MainGUI[22] , "Font")
  150. setProperty(FontHeight , "Style", "[fsBold]")
  151. setProperty(FontHeight , "Height", "18")
  152. control_setPosition(MainGUI[22], 10, 205)
  153. control_setVisible(MainGUI[22], false)
  154.  
  155. ----------------------------------------- COMBOBOX CONTENT -----------------------------------------
  156. setHack_Information()
  157. al = combobox_getItems(MainGUI[10])
  158. strings_clear(al)
  159. strings_add(al, 'Browser list...')
  160. strings_add(al, 'Firefox')
  161. strings_add(al, 'Google Chrome')
  162. strings_add(al, 'Internex Explorer')
  163. setProperty(MainGUI[10] , "ItemIndex", "0")
  164. all_enabled = 0
  165. success = 1
  166. TeL = listbox_getItems(MainGUI[15])
  167. TempSave = {}
  168. strings_clear(TeL)
  169. check = 0
  170. i = 0
  171. repeat
  172. if t[i+1]==nil then
  173.     check = 1
  174. else
  175.     i = i+1
  176.     strings_add(TeL, t[i][1])
  177.     TempSave[i] = {}
  178.     TempSave[i][1] = t[i][1]
  179.     TempSave[i][2] = t[i][2]
  180.     TempSave[i][3] = t[i][3]
  181.     TempSave[i][4] = 2
  182.     TempSave[i][5] = 0
  183.     check = 0
  184. end
  185. until check == 1
  186.  
  187. errorOnLookupFailure(false)
  188. alreadycheckedPIDS={}
  189. openNextProcTimer = createTimer(nil,false)
  190. timer_setInterval(openNextProcTimer, 1000)
  191. timer_onTimer(openNextProcTimer,
  192. function(sender)
  193.     local tempPIDtable = getPids()
  194.     if #tempPIDtable == 0 then return end
  195.     timer_setEnabled(sender,false)
  196.     openProcess(tempPIDtable[1])
  197. end)
  198.  
  199. ----------------------------------------- CHECKPROCESS / PIDS -----------------------------------------
  200.  
  201. function checkProcessMajor()
  202.     reinitializeSymbolhandler()
  203.     if getAddress("pepflashplayer.dll")~=0 or getAddress("AdobeCPGetAPI") ~=0 then
  204.         return true
  205.     end
  206.     return false
  207. end
  208.  
  209. function getPids()
  210.     local SL=createStringlist()
  211.     getProcesslist(SL)
  212.     local tempPIDtable={}
  213.     for i=0,strings_getCount(SL)-1 do
  214.         local entry = strings_getString(SL,i)
  215.         local processname = entry:sub(10,255)
  216.         local PID = tonumber('0x'..entry:sub(1,8))
  217.         if processname == "chrome.exe" then
  218.             if alreadycheckedPIDS[PID]~=true then
  219.                 table.insert(tempPIDtable,PID)
  220.             end
  221.         end
  222.     end
  223.     object_destroy(SL)
  224.     return tempPIDtable
  225. end
  226.  
  227. function checkProcess(sender)
  228.     timer_setEnabled(sender,false)
  229.     alreadycheckedPIDS[getOpenedProcessID()]=true
  230.     if checkProcessMajor() then
  231.         timer_setEnabled(openNextProcTimer,false)
  232.         alreadycheckedPIDS={}
  233.         enableHacks()
  234.     else
  235.         timer_setEnabled(openNextProcTimer,true)
  236.     end
  237. end
  238.  
  239. checkProcessTimer = createTimer(nil,false)
  240. timer_setInterval(checkProcessTimer, 100)
  241. timer_onTimer(checkProcessTimer, checkProcess)
  242.  
  243. function onOpenProcess()
  244.    if success == 1 then return end
  245.    timer_setEnabled(checkProcessTimer,true)
  246. end
  247.  
  248. ----------------------------------------- BROWSER SELECT -----------------------------------------
  249.  
  250. function scanBrowser()
  251.     AttachItems = combobox_getItems(MainGUI[10])
  252.     AttachIndex = combobox_getItemIndex(MainGUI[10])
  253.     control_setEnabled(MainGUI[16], false)
  254.     control_setEnabled(MainGUI[17], false)
  255.     control_setEnabled(MainGUI[23], false)
  256.     local font = getProperty(MainGUI[9] , "Font")
  257.     setProperty(font, "Color", white)
  258.     control_setCaption(MainGUI[9], "Attached to PID: " .. "Scanning Process...")
  259.     processMessages()
  260.     if AttachIndex == -1 then return end
  261.     if AttachIndex == 0 then
  262.         control_setCaption(MainGUI[9], "Attached to PID: " .. "no Browser selected.")
  263.         return
  264.     end
  265.     local check = strings_getString(AttachItems,AttachIndex)
  266.     if check == 'Google Chrome' then
  267.         success = 0
  268.         local test = openProcess("chrome.exe")
  269.         if test == nil then
  270.             setProperty(font , "Color", red1)
  271.             control_setCaption(MainGUI[9], "Attached to PID: " .. "Chrome not found.")
  272.             timer_setEnabled(openNextProcTimer,false)
  273.             return
  274.         end
  275.         strings_add(getAutoAttachList(),"chrome.exe")
  276.         timer_setEnabled(openNextProcTimer,true)
  277.         return
  278.     end
  279.     if check == 'Firefox' or check == 'Internet Explorer' then openProcess("FlashPlayerPlugin") end
  280.         errorOnLookupFailure(false)
  281.         reinitializeSymbolhandler()
  282.         err=getAddress("kernel32.dll")==0
  283.     if err==true then
  284.         setProperty(font , "Color", red1)
  285.         control_setCaption(MainGUI[9], "Attached to PID: " .. "Flash player plugin not found")
  286.     else
  287.         local PID=getOpenedProcessID()
  288.         setProperty(font, "Color", white)
  289.         control_setCaption(MainGUI[9], "Attached to PID: " .. PID .. " - flash player plugin")
  290.         control_setEnabled(MainGUI[16], true)
  291.         control_setEnabled(MainGUI[17], true)
  292.         control_setEnabled(MainGUI[23], true)
  293.     end
  294. end
  295.  
  296. ----------------------------------------- ENABLE HACKS -----------------------------------------
  297. function enableHacks()
  298.     setProperty(getProperty(MainGUI[9] , "Font"), "Color", Red)
  299.     local PID=getOpenedProcessID()
  300.     local check = strings_getString(AttachItems,AttachIndex)
  301.     if check == 'Firefox' or check == 'Internet Explorer' then
  302.         control_setCaption(MainGUI[9], "Attached to PID: " .. PID .. " - flash player plugin")
  303.     elseif check == 'Google Chrome' then
  304.         control_setCaption(MainGUI[9], "Attached to PID: " .. PID .. " - chrome.exe")
  305.     end
  306.     success = 1
  307.     control_setEnabled(MainGUI[16], true)
  308.     control_setEnabled(MainGUI[17], true)
  309.     control_setEnabled(MainGUI[23], true)
  310. end
  311.  
  312. ----------------------------------------- PROGRESS BAR -----------------------------------------
  313. function show_progressbar()
  314.      control_setPosition(MainGUI[22], 10, 205)
  315.      control_setCaption(MainGUI[22], '')
  316.      control_setVisible(MainGUI[18], false)
  317.      control_setVisible(MainGUI[19], false)
  318.      control_setVisible(MainGUI[20], true)
  319.      control_setVisible(MainGUI[21], true)
  320.      control_setVisible(MainGUI[22], true)
  321.      progressbar_setPosition(MainGUI[20], 0)
  322. end
  323.  
  324. function hide_progressbar()
  325.      control_setVisible(MainGUI[20], false)
  326.      control_setVisible(MainGUI[21], false)
  327.      control_setVisible(MainGUI[22], false)
  328.      control_setVisible(MainGUI[18], true)
  329.      control_setVisible(MainGUI[19], true)
  330. end
  331.  
  332. ----------------------------------------- EXECUTE HACKS -----------------------------------------
  333. function ExecuteHacks()
  334.     HLS = listbox_getItemIndex(MainGUI[15])
  335.     LIST = listbox_getItems(MainGUI[15])
  336.     if HLS == -1 then return end
  337.     i = HLS+1
  338.     font=getProperty(MainGUI[21], 'Font')
  339.     control_setVisible(MainGUI[18], false)
  340.     control_setVisible(MainGUI[19], false)
  341.     control_setVisible(MainGUI[20], false)
  342.     control_setVisible(MainGUI[21], true)
  343.     control_setVisible(MainGUI[22], false)
  344.     if t[i][2]==nil then
  345.          setProperty(font, 'Color', white)
  346.          control_setCaption(MainGUI[21], "You allready enabled this hack !")
  347.          return
  348.     end
  349.     control_setEnabled(MainGUI[16], false)
  350.     control_setEnabled(MainGUI[17], false)
  351.     control_setEnabled(MainGUI[23], false)
  352.     control_setCaption(MainGUI[21], "Executing hack...")
  353.     control_setVisible(MainGUI[22], true)
  354.     control_setCaption(MainGUI[22], '')
  355.     control_setPosition(MainGUI[22], 10, 185)
  356.     strings_setString(LIST, HLS, t[i][1])
  357.     processMessages()
  358.     if TempSave[i][4] == 2 then
  359.       Asm = autoAssemble(t[i][2])
  360.       font=getProperty(MainGUI[22], 'Font')
  361.       control_setCaption(MainGUI[21], "Executing hack. Finished.")
  362.       if AobSwapCheck~=true then
  363.         TempText = t[i][1]..' - Failed'
  364.         TempSave[i][5] = t[i][1]..' - Failed'
  365.         strings_setString(LIST, HLS, TempText)
  366.         setProperty(font, 'Color', red1)
  367.         control_setCaption(MainGUI[22], 'Failed to enable !\nHack allready enabled or game was updated.')
  368.       else
  369.         TempText = t[i][1]..' - Enabled'
  370.         TempSave[i][5] = t[i][1]..' - Enabled'
  371.         strings_setString(LIST, HLS, TempText)
  372.         setProperty(font, 'Color', white)
  373.         control_setCaption(MainGUI[22], 'Hack enabled. Enjoy it !')
  374.         t[i][2] = nil
  375.         TempSave[i][4] = 1
  376.       end
  377.     end
  378.     if TempSave[i][4] == 0 then TempSave[i][4] = 2 end
  379.     control_setEnabled(MainGUI[16], true)
  380.     control_setEnabled(MainGUI[17], true)
  381.     control_setEnabled(MainGUI[23], true)
  382. end
  383.  
  384. ----------------------------------------- EXECUTE ALL HACKS  -----------------------------------------
  385. function ExecuteAllHacks()
  386.      font=getProperty(MainGUI[21], 'Font')
  387.      if all_enabled == 1 then
  388.         control_setVisible(MainGUI[18], false)
  389.         control_setVisible(MainGUI[19], false)
  390.         control_setVisible(MainGUI[20], false)
  391.         control_setVisible(MainGUI[21], true)
  392.         control_setVisible(MainGUI[22], false)
  393.         setProperty(font, 'Color', white)
  394.         control_setCaption(MainGUI[21], "You allready enabled all hacks !")
  395.         return
  396.      end
  397.      lb = listbox_getItems(MainGUI[15])
  398.      LIST = listbox_getItems(MainGUI[15])
  399.      control_setEnabled(MainGUI[16], false)
  400.      control_setEnabled(MainGUI[17], false)
  401.      control_setEnabled(MainGUI[23], false)
  402.      show_progressbar()
  403.      progressbar_setMax(MainGUI[20], strings_getCount(lb))
  404.      for i = 1, strings_getCount(lb) do
  405.          strings_setString(LIST, i-1, t[i][1])
  406.      end
  407.      count = 0
  408.      for i = 1, strings_getCount(lb) do
  409.           control_setCaption(MainGUI[21], "Executing hack: "..t[i][1])
  410.           progressbar_setPosition(MainGUI[20], i)
  411.           processMessages()
  412.           if TempSave[i][4] == 2 then
  413.                 Asm = autoAssemble(t[i][2])
  414.                 if AobSwapCheck~=true then
  415.                     TempSave[i][5] = t[i][1]..' - Failed'
  416.                     strings_setString(LIST, i-1, TempSave[i][5])
  417.                 else
  418.                     TempSave[i][5] = t[i][1]..' - Enabled'
  419.                     strings_setString(LIST, i-1, TempSave[i][5])
  420.                     t[i][2] = nil
  421.                     TempSave[i][4] = 1
  422.                     count = count + 1
  423.                  end
  424.            else
  425.                 count = count + 1
  426.                  TempSave[i][5] = t[i][1]..' - Enabled'
  427.                  strings_setString(LIST, i-1, TempSave[i][5])
  428.            end
  429.         if TempSave[i][4] == 0 then TempSave[i][4] = 2 end
  430.     end
  431.     control_setEnabled(MainGUI[16], true)
  432.     control_setEnabled(MainGUI[17], true)
  433.     control_setEnabled(MainGUI[23], true)
  434.     control_setCaption(MainGUI[21], "Executing hack. Finished ! ")
  435.     font=getProperty(MainGUI[22], 'Font')
  436.     if count == strings_getCount(lb) then
  437.         setProperty(font, 'Color', white)
  438.         control_setCaption(MainGUI[22], 'All hacks enabled. Enjoy it !')
  439.         all_enabled = 1
  440.     else
  441.         diff = strings_getCount(lb) - count
  442.         if diff == 1 then
  443.            text = "hack"
  444.         else
  445.            text = "hacks"
  446.         end
  447.         setProperty(font, 'Color', red1)
  448.         control_setCaption(MainGUI[22], 'Failed to enable ' .. diff .. ' ' .. text .. ' !')
  449.     end
  450. end
  451.  
  452. ----------------------------------------- RESET HACKS  -----------------------------------------
  453. function ResetAllHacks()
  454.      lb = listbox_getItems(MainGUI[15])
  455.      ct = strings_getCount(lb)
  456.      for i = 1, ct do
  457.          strings_setString(lb, i-1, t[i][1])
  458.          TempSave[i][4] = 2
  459.          t[i][2]= TempSave[i][2]
  460.      end
  461.      all_enabled = 0
  462.      hide_progressbar()
  463.      control_setVisible(MainGUI[19], false)
  464.      control_setCaption(MainGUI[18], 'All hacks reseted.')
  465. end
  466.  
  467. ----------------------------------------- AOB SWAP -----------------------------------------
  468. function DEC_HEX(IN)
  469.     local B,K,OUT,I,D=16,"0123456789ABCDEF","",0
  470.      if IN<1 then
  471.         OUT=0
  472.         return OUT
  473.     end
  474.     while IN>0 do
  475.         I=I+1
  476.         IN,D=math.floor(IN/B),math.mod(IN,B)+1
  477.         OUT=string.sub(K,D,D)..OUT
  478.     end
  479.     return OUT
  480. end
  481.  
  482. function Aobswap(search, change)
  483.      aobs = AOBScan(search, "+W")
  484.      if(aobs == nil) then
  485.         AobSwapCheck=false
  486.      else
  487.          j = stringlist_getCount(aobs)
  488.         for i = 1, j do
  489.              address=stringlist_getString(aobs,i-1)
  490.              for i = 1, string.len(change), 3 do
  491.                  z = string.sub(change, i, i+2)
  492.                  x, y = string.find(z, "%?+")
  493.                   if (x == nil) then
  494.                      script=[[
  495.                      ]]..address.."+"..(DEC_HEX((i-1)/3))..[[:
  496.                      db ]]..z..[[
  497.                      ]]
  498.                      autoAssemble(script)
  499.                  end
  500.              end
  501.          end
  502.         object_destroy(aobs);
  503.         aobs=nil
  504.         AobSwapCheck=true
  505.     end
  506. end
  507.  
  508. ----------------------------------------- HACK DESCRIPTION -----------------------------------------
  509. function HackDescriptionsChange()
  510.     hide_progressbar()
  511.     control_setCaption(MainGUI[18], 'Description:')
  512.     HLS = listbox_getItemIndex(MainGUI[15])
  513.     if HLS == -1 then return end
  514.     i = HLS+1
  515.     if t[i][3]~='' and t[i][3]~=nil then
  516.         control_setCaption(MainGUI[19] ,t[i][3])
  517.     else
  518.         control_setCaption(MainGUI[19], "no description available.")
  519.     end
  520. end
  521.  
  522. ---------------------------------------- facebook / EXIT -----------------------------------------
  523. function Openfacebook()
  524.     shellExecute("https://www.facebook.com/Nobato0/")
  525. end
  526.  
  527. function CloseTrainer()
  528.     form_hide(MainGUI[1])
  529.     closeCE()
  530. end
  531.  
  532. ----------------------------------------- ONCLICK EVENTS  -----------------------------------------
  533. control_onClick(MainGUI[12], scanBrowser)
  534. control_onClick(MainGUI[13], OpenFacebook)
  535. control_onClick(MainGUI[16], ExecuteHacks)
  536. control_onClick(MainGUI[17], ExecuteAllHacks)
  537. control_onClick(MainGUI[23], ResetAllHacks)
  538. setMethodProperty(MainGUI[15], 'OnSelectionChange', HackDescriptionsChange)
  539. form_onClose(MainGUI[1], CloseTrainer)
  540. form_show(MainGUI[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement