It works fine, except it doesn't switch back to my original slot.
I wasn't very specific when I said "it doesn't work", I was meaning: it doesn't switch back
Sorry!
Hopefully this can be fixed
Like i said, it does work
The only thing i see that could be different for you is #wait (not defined in the script but used anyway), and the fact that the wait is 7 seconds which can make it LOOK like it doesn't switch back but really it does switch back after you've already done it yourself
Perhaps try a binary search?, remove half of the script that you think works correctly, see if still broken, repeat until script is as small as possible
Make sure #wait is some reasonable number (probably 0 for me since i've never set it to anything)
If a previous script on the same key also used the #wait variable then the value will carry over and and possibly do stuff.
But yes, all i can say is do a binary search.., get the code as small as possible while still being faulty (ideally you would reduce it to just
#slot = %INVSLOT%; Pick("stone"); Wait(1); Slot(%#slot%)
but in practice you'll probably accidentally remove the mistake before you get to that point, and then you'll know the mistake is somewhere in the last piece of code you removed)
I'd appreciate if you could help me out with a little issue I'm having, I've watched the tut videos and read up on it but haven't got a solution for what Im trying to do
I'm trying to figure out a way to press 1 key and have it replicate me pressing two keys (SmartMoving Crouch requires two buttons)
I looked up the LWGJL values for the keys, and got 56 for LALT and 98 for Middle Mouse click
So I tried this:
KeyDown: $${KEYDOWN(56)}$$|$${wait(1)}$$|$${KEY(98)}$$
Key Held:
Key Up: $${KEYUP(56)}$$
When I press the assigned macro key I want it to hold down LALT, and tap Middle Mouse Click
then keep LALT held down until I release the assigned macro key
Also I was wondering is there any way to remove delay (if not it's not a huge issue, just curious)?
What I mean is if I binded a button to do an action like sneak, and when i rapidly tap the button it doesn't quite do it at the same speed as the default sneak button
I'd appreciate if you could help me out with a little issue I'm having, I've watched the tut videos and read up on it but haven't got a solution for what Im trying to do
I'm trying to figure out a way to press 1 key and have it replicate me pressing two keys (SmartMoving Crouch requires two buttons)
I looked up the LWGJL values for the keys, and got 56 for LALT and 98 for Middle Mouse click
So I tried this:
KeyDown: $${KEYDOWN(56)}$$|$${wait(1)}$$|$${KEY(98)}$$
Key Held:
Key Up: $${KEYUP(56)}$$
When I press the assigned macro key I want it to hold down LALT, and tap Middle Mouse Click
then keep LALT held down until I release the assigned macro key
Also I was wondering is there any way to remove delay (if not it's not a huge issue, just curious)?
What I mean is if I binded a button to do an action like sneak, and when i rapidly tap the button it doesn't quite do it at the same speed as the default sneak button
Key(), and KeyDown()/KeyUp() expect control names, not key codes
The only command that takes an actual key code is PRESS(<lwjgl_name>), although it should be used as a last resort (sounds like it is though, i don't recall anyone getting mod controls to work with Key() or Keydown()
Key(), and KeyDown()/KeyUp() expect control names, not key codes
The only command that takes an actual key code is PRESS(<lwjgl_name>), although it should be used as a last resort (sounds like it is though, i don't recall anyone getting mod controls to work with Key() or Keydown()
Thanks for the clarification
I can't seem to get LWJGL ids to work in my macros though
For example I have a macro on a key that looks like this (just to test it)
$${PRESS(17)}$$
Yet when i press the assigned macro key nothing happens (17 = W = forward, if im not mistaken)
Im also wondering how I can have a macro simulate two button presses with one
I would imagine it would be the following, but like the above it doesnt work for me
Thanks! I'll try this.
EDIT: Seems to have worked. Thanks!
Thanks!
I was thinking the same thing about the weird "$${" and "}$$" parts.
I'm gonna try your tips and try to completely recode it.
I'll get back to you if I have any errors or issues
EDIT: Completely works! I'll post the finished code/script if you want
*Magikal Coconess*
It didn't work for me:
Code:
Thanks a bunch!
*Magikal Coconess*
You'll have to be more specific, what about it didn't work?
I just tried it with some cooked porkchop and it worked fine
Do note that 150 is 7.5 seconds.., any chance you assumed it didn't work and switched back manually before it was done?
'Cause tomorrow spring is here
It works fine, except it doesn't switch back to my original slot.
I wasn't very specific when I said "it doesn't work", I was meaning: it doesn't switch back
Sorry!
Hopefully this can be fixed
*Magikal Coconess*
Like i said, it does work
The only thing i see that could be different for you is #wait (not defined in the script but used anyway), and the fact that the wait is 7 seconds which can make it LOOK like it doesn't switch back but really it does switch back after you've already done it yourself
Perhaps try a binary search?, remove half of the script that you think works correctly, see if still broken, repeat until script is as small as possible
'Cause tomorrow spring is here
I've tried waiting, it didn't switch back :/
Here is the original code I got from the scripts list:
http://mkb-wiki.herokuapp.com/scripts/541f00ec8b8f8
*Magikal Coconess*
Make sure #wait is some reasonable number (probably 0 for me since i've never set it to anything)
If a previous script on the same key also used the #wait variable then the value will carry over and and possibly do stuff.
But yes, all i can say is do a binary search.., get the code as small as possible while still being faulty (ideally you would reduce it to just
#slot = %INVSLOT%; Pick("stone"); Wait(1); Slot(%#slot%)
but in practice you'll probably accidentally remove the mistake before you get to that point, and then you'll know the mistake is somewhere in the last piece of code you removed)
'Cause tomorrow spring is here
...what beta3? o.O
'Cause tomorrow spring is here
I'll be doing an update to 1.8.9 once the liteloader migration to gradle is completed.
When the durability of current weapon I am using gets below a certain point, how can I switch to a new weapon that is in my inventory?
Here's what I got so far:
Except it doesn't go into the inventory to pick another weapon once the hotbar runs out.
It worked for me when I added a wait for 1 second (don't forget to check if the health is at 0)
*Magikal Coconess*
could I please have the link to your Beta version for Minecraft 1.8?
nvm I found the link to your server
*If you want me to see your post please quote me, thx* I decided to add this in too because (overloaded Mail box lol)
UPDATE *-*
I'd appreciate if you could help me out with a little issue I'm having, I've watched the tut videos and read up on it but haven't got a solution for what Im trying to do
I'm trying to figure out a way to press 1 key and have it replicate me pressing two keys (SmartMoving Crouch requires two buttons)
I looked up the LWGJL values for the keys, and got 56 for LALT and 98 for Middle Mouse click
So I tried this:
KeyDown: $${KEYDOWN(56)}$$|$${wait(1)}$$|$${KEY(98)}$$
Key Held:
Key Up: $${KEYUP(56)}$$
When I press the assigned macro key I want it to hold down LALT, and tap Middle Mouse Click
then keep LALT held down until I release the assigned macro key
Also I was wondering is there any way to remove delay (if not it's not a huge issue, just curious)?
What I mean is if I binded a button to do an action like sneak, and when i rapidly tap the button it doesn't quite do it at the same speed as the default sneak button
Key(), and KeyDown()/KeyUp() expect control names, not key codes
The only command that takes an actual key code is PRESS(<lwjgl_name>), although it should be used as a last resort (sounds like it is though, i don't recall anyone getting mod controls to work with Key() or Keydown()
'Cause tomorrow spring is here
HITX, HITY, HITZ
http://mkb.gorlem.ml/wiki/variables
'Cause tomorrow spring is here
HITX
HITY
HITZ
Macro/Keybind mod Wiki
Thanks for the clarification
I can't seem to get LWJGL ids to work in my macros though
For example I have a macro on a key that looks like this (just to test it)
$${PRESS(17)}$$
Yet when i press the assigned macro key nothing happens (17 = W = forward, if im not mistaken)
Im also wondering how I can have a macro simulate two button presses with one
I would imagine it would be the following, but like the above it doesnt work for me
$${PRESS(56)}$$|$${PRESS(98)}$$