Polymorphism 48 Share Posted June 1, 2017 It possible to add this using the api? onMouse is deprecated and doesn't quite satisfy. This will be for dimming/hiding paint on click and move edit: maybe i couldve defined this a little better. I can implement MouseListener and MouseMotionListener just fine, however its all in my script class AND only works with input enabled. I like another route if possible Link to comment Share on other sites More sharing options...
juuuuugg 0 Share Posted June 1, 2017 random question but do you have any idea how to use vpn on here? it says cannot connect to server everytime i log on using vpn, so the only way i can bot rn is on my actual ip Link to comment Share on other sites More sharing options...
Im A Baller 348 Share Posted June 1, 2017 It possible to add this using the api? onMouse is deprecated and doesn't quite satisfy. This will be for dimming/hiding paint on click and move edit: maybe i couldve defined this a little better. I can implement MouseListener and MouseMotionListener just fine, however its all in my script class AND only works with input enabled. I like another route if possible If you don't mind my asking, what are you trying to do that requires tracking the movements of the script's mouse? random question but do you have any idea how to use vpn on here? it says cannot connect to server everytime i log on using vpn, so the only way i can bot rn is on my actual ip Make a separate thread for that question. Link to comment Share on other sites More sharing options...
Nima 92 Share Posted June 1, 2017 random question but do you have any idea how to use vpn on here? it says cannot connect to server everytime i log on using vpn, so the only way i can bot rn is on my actual ip lmao Link to comment Share on other sites More sharing options...
juuuuugg 0 Share Posted June 1, 2017 smh can't nobody say nothing? k Link to comment Share on other sites More sharing options...
Abstinence 15 Share Posted June 1, 2017 You can add your own eventListeners to the client by calling.... getClient().getInstance().addEventListener(EventListener listener); Tl;dr: make your own class that implements the MouseListener class, pass along anything you need (your painting class to determine clicking zones?) and you should be good to go! I have a MoveablePaint class somewhere for a different client I was a part of, I will try to grab it real quick and get back to you. Edit: in terms of input enabled/disabled, you would need to dig deeper in the Instance class I imagine. Perhaps it isn't accessible through means of API. However, I think if you add your own EventListener this problem won't apply anymore considering it doesn't take input enabling/disabling in consideration because it will be a listener for the ACTUAL mouse, not the Robot mouse. Link to comment Share on other sites More sharing options...
Polymorphism 48 Author Share Posted June 1, 2017 If you don't mind my asking, what are you trying to do that requires tracking the movements of the script's mouse? Make a separate thread for that question. Not so much tracking as...interactive paints You can add your own eventListeners to the client by calling.... getClient().getInstance().addEventListener(EventListener listener); Tl;dr: make your own class that implements the MouseListener class, pass along anything you need (your painting class to determine clicking zones?) and you should be good to go! I have a MoveablePaint class somewhere for a different client I was a part of, I will try to grab it real quick and get back to you. Edit: in terms of input enabled/disabled, you would need to dig deeper in the Instance class I imagine. Perhaps it isn't accessible through means of API. However, I think if you add your own EventListener this problem won't apply anymore considering it doesn't take input enabling/disabling in consideration because it will be a listener for the ACTUAL mouse, not the Robot mouse. THIS is what i'm looking for!! Was trying to find a way to pass my ScriptMouseListener into the client! Thank you Link to comment Share on other sites More sharing options...
Im A Baller 348 Share Posted June 1, 2017 Not so much tracking as...interactive paints THIS is what i'm looking for!! Was trying to find a way to pass my ScriptMouseListener into the client! Thank you If you'd like, I could give you a trial of my horn grinder for a couple of hours, because I implemented a button pretty much exactly like what you're talking about in my script just by implementing MouseListener, and it works flawlessly. I've done it on many scripts, actually. Link to comment Share on other sites More sharing options...
Polymorphism 48 Author Share Posted June 1, 2017 If you'd like, I could give you a trial of my horn grinder for a couple of hours, because I implemented a button pretty much exactly like what you're talking about in my script just by implementing MouseListener, and it works flawlessly. I've done it on many scripts, actually. I appreciate the offer but I wont need it...actually what i need right now is dreambot to quit bugging out. It's back to not loading game or a black screen everytime --after it worked just fine for 1 day. I do it in many scripts myself, but am new to this api Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.