Pretty sure this isnt realistic but I always figure its best to ask the community before I just give up on something. Essentially what i want to know is if theres anyway to create a peripheral which can record/"play" clicks within a GUI of (most) blocks which open a GUI on right click. So far the only ways I have thought I could even begin to implement something like this are all way beyond any reasonable time I would like to focus on any game let alone a mod to a game.
2
Interacting with GUIs
Started by HDeffo, Aug 11 2016 02:01 PM
7 replies to this topic
#1
Posted 11 August 2016 - 02:01 PM
#2
Posted 19 August 2016 - 05:22 AM
HDeffo, on 11 August 2016 - 02:01 PM, said:
-snip-
(Totally not suggesting to someone for it to be made)
#3
Posted 19 August 2016 - 04:39 PM
That's already been well and made. I am not aiming to make a massive mod that I have to manage a bunch of individual things for various types of blocks. No point in reinventing the wheel right?
#4
Posted 22 August 2016 - 05:33 PM
HDeffo, on 19 August 2016 - 04:39 PM, said:
That's already been well and made. I am not aiming to make a massive mod that I have to manage a bunch of individual things for various types of blocks. No point in reinventing the wheel right?
But I'm not really sure if you can implement a click recorder in Java, let alone minecraft.
#5
Posted 22 August 2016 - 09:58 PM
Recording from a client perspective isn't the issue of this at all. That honestly would be very easy to implement. My issue here is how to how to simulate the GUI and "replay" clicks without a player there.
#7
Posted 23 August 2016 - 06:37 AM
The issue is that the server doesn't really know about GUIs: it deals with containers (the GUI classes don't exist server side).
When you press a button in a GUI the mouse click isn't sent: you send a packet saying "move this item" or "reconfigure this side". This might be possible to emulate but could be quite buggy.
When you press a button in a GUI the mouse click isn't sent: you send a packet saying "move this item" or "reconfigure this side". This might be possible to emulate but could be quite buggy.
#8
Posted 23 August 2016 - 09:52 AM
use os.queueEvent("mouse_click",button,xcoord,ycoord)?
Edit: Yeah quite infeasible to interact with GUIs from other mods.
Edit: Yeah quite infeasible to interact with GUIs from other mods.
Edited by Jarle212, 23 August 2016 - 11:03 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users