-
@skiddermaster412 Removed it but it's still not showing up. ;(
-
-
import InputEvent, Robot
-
@auto-reply-bot Ty but idk what to do with that, maybe more thorough like actually putting it in the code and sending me it
-
var Mouse = Java.type('org.lwjgl.input.Mouse'); var Robot = Java.type('java.awt.Robot'); var InputEvent = Java.type('java.awt.event.InputEvent'); var script = registerScript({ name: 'DoubleClick', version: '1.0', authors: ['Gridzz'] }); script.registerModule({ name: 'DoubleClick', description: 'Click Twice!', category: 'Fun' }, function (module) { module.on('update', function () { if (mc.gameSettings.keyBindAttack.isKeyDown() || Mouse.isButtonDown(0)) { var bot = new Robot(); bot.mousePress(InputEvent.BUTTON2_DOWN_MASK); bot.mouseRelease(InputEvent.BUTTON2_DOWN_MASK); } }); });
-
@auto-reply-bot said in Script support.:
var Mouse = Java.type('org.lwjgl.input.Mouse'); var Robot = Java.type('java.awt.Robot'); var InputEvent = Java.type('java.awt.event.InputEvent'); var script = registerScript({ name: 'DoubleClick', version: '1.0', authors: ['Gridzz'] }); script.registerModule({ name: 'DoubleClick', description: 'Click Twice!', category: 'Fun' }, function (module) { module.on('update', function () { if (mc.gameSettings.keyBindAttack.isKeyDown() || Mouse.isButtonDown(0)) { var bot = new Robot(); bot.mousePress(InputEvent.BUTTON2_DOWN_MASK); bot.mouseRelease(InputEvent.BUTTON2_DOWN_MASK); } }); });
Thanks! Definitely owe you a favour that I'm going to regret ±
-
@auto-reply-bot Hey it still doesn't detect the 'DoubleClick' script in the combat GUI, how can I make it detectable?
Edit 1: Never-mind. LOL
Edit 2: It works but it doesn't show up in any of the arrow-gui lists, such as combat. I can bind it but I cant find it.
Edit 3: It doesn't work scam -
@czechhek said in Script support.:
@gridzz there should be
///api_version=2
as the first lineedit: you had it there before ah
Yeah, still doesn't work. What can I do, as I think it's the codes fault. I want to place blocks twice (aka the double clicking) and also set an option to double click on LMB later.