View Full Version : Keypress Simulation
gledsonrt
01-26-2016, 07:39 PM
Hey guys!
Is there a way to simulate a key press in lua scripting?
IE if I wanted to change character, I'd send a Ctrl+g, then arrow down, then ENTER.
Thanks!
Jontor
01-26-2016, 07:49 PM
Not really, you could try using AutoIt
Fatality
01-26-2016, 08:04 PM
Back when you could use os.execute, i used to have an AutoHotkey script that when it reached X label it would execute an AHK file and that would focus the tibia window, Ctrl + G Down Arrow Enter, So i used this with a custom rook script, with 10 characters per account etc, Since os.execute was removed, idk what you can do, but you can just go to the lib and remove the part that says os.execute = nil but you wont be able to distribute.
playmate
01-26-2016, 08:51 PM
Is it specifically changing character after a script finishes that you wanna do? If so, this could be set up with an advanced Macro Recorder (such as JitBit Macro Recorder).
gledsonrt
01-27-2016, 07:14 PM
guess I'll just have to be creative :)
thanks for the tips!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.