Thank you again. Can you explain to me that why using 2 D3D LUA scripts makes the virtual keys keydown function not working? on script A i haveShyTwig16 wrote: ↑Fri Jan 03, 2020 11:03 amYeah, sometimes it's best to look in the "celua.txt" file in the CE folder, it has a list of functions and classes. Then I hit ctrl-f and enter what I'm looking for. The return from "createD3DHook" has a "OnKeyDown" property as well. And see if toggling the fontmap's "Visible" property works, you could create the fontmap then set visible to false and only show the text after the key is pressed. And in the code above you'll be creating a new fontmap every time a key is pressed except when it's the up key, so you'll want to move where you create the fontmap, or at least check for nil and create a font map only if it hasn't been created yet.Hereisme wrote: ↑Fri Jan 03, 2020 8:18 amThank you so much for helping me with everything so far, i triedShyTwig16 wrote: ↑Fri Jan 03, 2020 12:06 amYou can use a script with a hotkey that toggles the script then in that script set the fonmap's "Visible" property to false if true and true if false (or a simple "fm.Visible = not fm.Visible") in the main section of the script so it runs when enabled and disabled. Not really sure thought, never messed with the D3D mutch.as i can't find fontmap function in any cheat engine wiki page and even this sadly doesn't work..Code: Select all
function keydown(virtualkey,char) if (virtualkey==VK_UP) then fontmap.destroy=true else fontmap=d3dhook_createFontmap(font) end end
Code: Select all
function keydown(virtualkey,char)
if (virtualkey==49) then
hiddenbyusera=not hiddenbyusera
ShowMenu1()
return true
end
end
d3dhook_onKey(keydown)
Code: Select all
function keydown1(virtualkey,char)
if (virtualkey==200) then
hiddenbyuser=not hiddenbyuser
ShowMenu()
return true
end
setHighlighterToSelectedOption()
return true
end
d3dhook_onKey(keydown1)