Now I'm playing for a while on Mackans server and Mack and I created to Companys. Both of them has a hosting service. I wan't that every user whobis using my service is able to upload and remove files and start,stop the firewolf server when he is on his plot. Now I need a program which runs parallel (my first question) to firewolf so I can simulate user input (my second question).
Here are the questions:
1.How can I run a program parallel to firewolf which can handle rednet messages and simulate user input
2.How can I simulate userinput like keypresses and mouse clicks?
Thx
Freack100
Simulating User Input
Started by H4X0RZ, Aug 20 2013 05:52 PM
2 replies to this topic
#1
Posted 20 August 2013 - 05:52 PM
#2
Posted 20 August 2013 - 06:58 PM
If you have your rednet handling in a function and load firewolf as a function, you can distribute events to either function when loaded as coroutines. (You could also use the parallel API, although I'm less familiar with that).
Example:
You can simulate events by using os.queueEvent.
Example for an enter key press:
Example:
Spoiler
You can simulate events by using os.queueEvent.
Example for an enter key press:
os.queueEvent ("key", keys.return)
local event, key = os.pullEvent() -- Will catch the enter key press.
#3
Posted 20 August 2013 - 07:02 PM
Thank you very much Grim!
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











