Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Minecraft, hold left mouse button


  • Please log in to reply
6 replies to this topic
Elemental91
  • Members
  • 3 posts
  • Last active: Jul 05 2013 11:24 AM
  • Joined: 04 Jul 2013

Hey guys,

 

Playing Sky Islands on minecraft dont know if any of you know it. Anyway Cobble mining is extremely boring in this game (holding the left mouse button until my pick breaks, switching to a new pick and holding down the left mouse button again)

 

So basically what I was wondering if anyone has any script that can hold the left mouse button for me, whilst only having to press 1 button?

I've looked around on the forums and tried some stuff myself, but unfortunately I'm not very good at scripting so I didn't really get any of it..

 

Thanks in advance,

Elemental



Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012
z::Send % "{Click " . ( GetKeyState("LButton") ? "Up}" : "Down}" )

Press z once to hold down mouse and z next time to lift it up.


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


Elemental91
  • Members
  • 3 posts
  • Last active: Jul 05 2013 11:24 AM
  • Joined: 04 Jul 2013

Works perfectly, thank you very much :)

 

Is it also possible to add it scrolling down once every minute?



Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012
  • Installing the mouse hook will cause problems.
  • Clicking while the action is active is not recommended.
  • Read through the tutorial.
z::
Toggle:=GetKeyState("LButton")
Send % "{Click " . ( Toggle ? "Up}" : "Down}" )
SetTimer, ScrollLabel, % (Toggle ? "Off" : 60*1000 )
return

ScrollLabel:
Send {Wheeldown}
return

Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


Elemental91
  • Members
  • 3 posts
  • Last active: Jul 05 2013 11:24 AM
  • Joined: 04 Jul 2013

Cant seem to turn this one off, also it scrolls down like every milisecond, but it needs to scroll down just once every minute or so



Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

It turns off just fine.

I have fixed the millisecond part. Had you read through the tutorial you could have fixed it yourself.


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


Redstoned
  • Members
  • 1 posts
  • Last active: Feb 28 2015 08:20 PM
  • Joined: 28 Feb 2015

I'm trying to do what the first guy is doing, expect with right click. My script is this: z::Send % "{Click " . ( GetKeyState("RButton") ? "Up}" : "Down}" )

but it left clicks instead of right clicking. Help?