-- script --
setMousePos(100,100) --move to notepad input
print(getMousePos())
mouse_event(MOUSEEVENTF_LEFTDOWN)
sleep(500)
mouse_event(MOUSEEVENTF_LEFTUP)
doKeyPress(VK_X)
doKeyPress(VK_Y)
doKeyPress(VK_Z)
--- this one clicks on a button 3 times unless you press ESC ---
for i = 1,3,1
do
if isKeyPressed(VK_ESCAPE) then
break
end
setMousePos(1135,426) -- move to the location of the button to click
print(getMousePos())
mouse_event(MOUSEEVENTF_LEFTDOWN)
sleep(2000)
mouse_event(MOUSEEVENTF_LEFTUP)
end
On this page of the site you can watch the video online Mouse and Keypress simulation using Cheat Engine Lua Scripting with a duration of hours minute second in good quality, which was uploaded by the user HackingTips 20 January 2021, share the link with friends and acquaintances, this video has already been watched 4,505 times on youtube and it was liked by 34 viewers. Enjoy your viewing!