Создание SpeedHack
В этом уроке я вам покажу как делать свой SpeedHack
1.Кидаем на форму CEComboBox1 и вставляем этот код в таблицу Lua скриптов:
function CEComboBox1Change(sender)
ChangeClient = component_findComponentByName(CETrainer,'CEComboBox1')
Vibor = getProperty(ChangeClient,'ItemIndex')
if Vibor == '0' then
showMessage('Выберите Браузер!')
return
else
if Vibor == '1' then
Client = 'opera.exe'
openProcess(Client)
end
if Vibor == '2' then
Client = 'plugin-container.exe'
openProcess(Client)
end
end
end
2.В настройках CEComboBox1 — Properties ищем — Items и добавляем туда (Выберите браузер,Опера,Мазила) в столбик
3.В настройках CEComboBox1 — Properties ищем — ItemIndex ставим — 0
4.Кидаем на форму 10 кнопок и вставляем этот код в таблицу Lua скриптов:
function CEButton1Click(sender) speedhack_setSpeed(0) end function CEButton2Click(sender) speedhack_setSpeed(1) end function CEButton3Click(sender) speedhack_setSpeed(2) end function CEButton4Click(sender) speedhack_setSpeed(3) end function CEButton5Click(sender) speedhack_setSpeed(4) end function CEButton6Click(sender) speedhack_setSpeed(5) end function CEButton7Click(sender) speedhack_setSpeed(6) end function CEButton8Click(sender) speedhack_setSpeed(7) end function CEButton9Click(sender) speedhack_setSpeed(8) end function CEButton10Click(sender) speedhack_setSpeed(9) end
5.В таблице Lua скриптов в самом низу жмем кнопку (Выполнить)
6.Подключаем CEComboBox1 к функции:
7.Подключаем каждую кнопку к функции:
8.При сохранение программы ставим галочку на SpeedHack
До скачивания осталось | сек. |