I was searching for any tutorials or info about "How to add a drop-down list with hotkeys to choose in trainer" but I didn't find anything related or helpful.
I need something like that to add to my trainer:
That it will give the opportunity to choose the right key for people using my trainer. And then after choosing the key, this key will be used for activating or deactivating script with a visible change of the HOTKEY sign (just like we create a trainer from the Cheat Engine automation and when we press the key responsible for switching on the script, the hotkey and script is highlighted. When we turn off the script, the text becomes normal).
I am waiting for your answers guys, please write me here any example or maybe send me links to tutorials if you know any.
Anything Cheat Engine related, bugs, suggestions, helping others, etc..
2 posts • Page 1 of 1
Not sure I am understood, but maybe try this sample to get improvisation :
Code: Select all
f = createForm() cb = createComboBox(f) cb.top = 10 cb.left = 50 cbitem = cb.getItems cb.style = 'csDropDownList' cb.items.add("One") cb.items.add("Two") cb.items.add("Three with longer width") cb.items.add("Four") cb.items.add("Five") setProperty(cb, "ItemIndex", "0") function hack_script() print('hack will activating with numpad '..x) --- yor hack code here end function cbHacks () index = cb.ItemIndex if index == -1 then return end if index == 0 then x = 1 createHotkey(hack_script, VK_1) --- key value = 49 showMessage('Hotkey : Numpad '..x..' to activating hack') elseif index == 1 then x = 2 createHotkey(hack_script, VK_2) --- key value = 50 showMessage('Hotkey : Numpad '..x..' to activating hack') elseif index == 2 then x = 3 createHotkey(hack_script, VK_3) --- key value = 51 showMessage('Hotkey : Numpad '..x..' to activating hack') elseif index == 3 then x = 4 createHotkey(hack_script, VK_4) --- key value = 52 showMessage('Hotkey : Numpad '..x..' to activating hack') elseif index == 4 then x = 5 createHotkey(hack_script, VK_5) --- key value = 53 showMessage('Hotkey : Numpad '..x..' to activating hack') end end cb.onChange = cbHacks