-
/// api_version=2 var script = registerScript({ name: "Double Click", version: "1.0", authors: ["Gridzz"] }); script.registerModule({ name: "Double Click", category: "Combat", description: "Click Twice!", tag: "Hm."}), function (DoubleClick) { DoubleClick.on("enable", function() { if (mc.gameSettings.keyBindAttack.isKeyDown() || Mouse.isKeyDown(0)) { Robot bot = new Robot(); bot.mousePress(InputEvent.BUTTON2_DOWN_MASK); bot.mouseRelease(InputEvent.BUTTON2_DOWN_MASK); }It's not showing up in the GUI in-game, I think I butchered the code any help?
-
/// api_version=2 var script = registerScript({ name: "Double Click", version: "1.0", authors: ["Gridzz"] }); script.registerModule({ name: "Double Click", category: "Combat", description: "Click Twice!", tag: "Hm."}), function (DoubleClick) { DoubleClick.on("enable", function() { if (mc.gameSettings.keyBindAttack.isKeyDown() || Mouse.isKeyDown(0)) { Robot bot = new Robot(); bot.mousePress(InputEvent.BUTTON2_DOWN_MASK); bot.mouseRelease(InputEvent.BUTTON2_DOWN_MASK); }It's not showing up in the GUI in-game, I think I butchered the code any help?

-
@skiddermaster412 Removed it but it's still not showing up. ;(
-
-
import InputEvent, Robot
-
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); } }); }); -
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 ±
-
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 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 -
@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 -
@gridzz there should be
///api_version=2
as the first lineedit: you had it there before ah
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login