Jump to content

  • 42 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[1.1] Macro / Keybind mod v0.8.5 - 35,000 downloads and counting Simple yet powerful key binding tool

#1 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-July 11
  • Location: Birmingham, UK
  • Minecraft: Mumfrey

Posted 11 July 2011 - 08:15 PM

*
POPULAR


Posted Image

This is my first mod, I created this because I couldn't find any other mods which make binding keys easy. But this isn't just for binding keys...

Posted Image

  • Ridiculously easy to use! Just activate the mod then just press the key you want to bind. No memorizing key codes or names!
  • Bind keys which are already used for something else! Want to put a macro on the number keys or WASD? Using the override function you can use these keys for both their normal function or as macros when you need them.
  • Edit keybinds quickly. Change your binds whenever you want. You can even copy and move macros from key to key with drag 'n drop.
  • Multiple configurations. Different binds in different servers? No problem! It even switches automatically.
  • In-game text editor. Want to make a complex macro? No need to alt-tab to notepad, create and edit text files inside minecraft.
  • Lots of easy-to-use parameters. Lists of friends, automatic responses, warp points, towns, you name it.
  • Scripting! Build custom auto-announcers, time-delay messages, or create your own auto-walk, toggleable-sneak or sprint keys.


This mod is compatible with most other mods and works well with Single Player Commands. It uses ModLoader for compatibility and does not edit any Notch classes at all.

In essence, this mod modifies the minecraft client to allow you to bind any keyboard key you like to chat commands or simple script functions (like sprinting or opening a gui). Most importantly, it lets you do this without knowing any key codes and has a full, easy-to-use GUI! No more typing obscure commands in order to bind keys. Plus you can edit your binds any time you like and even move and copy them to other keys with just drag-n-drop!

There are also some advanced features like including files and parameters in your macros including a nifty item selection screen, customisable friends list, and lots more. You can also have multiple different configurations and quickly switch between them (for example so that you can have different binds for single player or online).

This mod requires Risugami's ModLoader so make sure you install that first!

Posted Image

  • Install ModLoader
  • Download the .zip file here (direct link) and save it into your "mods" folder (create the "mods" folder if it does not already exist)
  • Run the Minecraft client
  • Check the Controls screen in the Minecraft configuration to make sure there are no conflicts with other keys you use. This mod adds pages to the Controls screen for enhanced configuration of any mods which use ModLoader

Posted Image

Posted Image

Posted Image

Expand for more images:
Spoiler


Posted Image

To bind keys:
  • In-game, simply press <SNEAK KEY> + APOSTROPHE (change the key in the options if this doesn't work for you) and you will be prompted to press a key.
  • Press the key you would like to bind or click it on the on-screen keyboard
  • Enter the chat command (including the / at the start), separate multiple commands with pipe "|"
  • Press ENTER to save the keybind, press ESC to cancel it. To edit a keybind repeat the same process.

Posted Image

  • Include the code $$? anywhere in your macro as many times as you like to be prompted for a parameter when you run the macro, the parameter will be inserted wherever you enter $$?
  • Include the code $$f anywhere in your macro to be prompted for a friend name (works the same as a parameter)
  • Include the code $$u to prompt for an online user (New in 0.5!)
  • Include the code $$[name] to prompt for a named variable! Unlimited variables! (New in 0.5!)
  • Include the code $$i to prompt for an item with a scrollable list, or $$i:d to include the damage value for the item (to get coloured wool or different steps)
  • Include the code $$<filename.txt> to insert a file (the file must end with .txt and be enclosed in < > as shown. You can include, $$?, $$i, $$f and even other $$<file.txt> in your file.
  • Include the code $$! to halt processing of the macro and leave the last command in the chat buffer.
  • Include the code $$h to prompt for a "home", this option supports automatically fetching homes from the server
  • Include the code $$t to prompt for a "town", this option also supports auto-population
  • Include the code $$m to prompt for a text file to include, similar to $$<file.txt> but allows you to choose the file on-the-fly
  • Include the code $$0 through $$9 to prompt for a text list, supports unlimited text entries of unlimited length
  • Include the code $$w to prompt for a "warp point". This works the same as homes and towns and supports automatic retrieval from the server (New in 0.6!)
  • Include the code $$p to prompt for a "place" (a set of coordinates). You can also include $$px, $$py, $$pz and $$pn to insert only the X, Y, Z or NAME parts of the place respectively. (New in 0.6!)

Posted Image

  • If the key doesn't have any other function (eg. it is not bound to any other built-in command or function) then just press the key
  • If the key is bound to another function (such as the WASD keys or T,I etc) press your <MACRO ACTIVATE> key (as you set in the options) followed by the key.
  • Alternatively if the key is bound to a minecraft function press <MACRO OVERRIDE>+<key> (again, you can set this in the Controls screen) however this will execute the macro and the key's normal function (sorry no way around this without breaking other mods) now fixed.

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

As of version 0.8.5 language packs are no longer required as the supported languages are directly integrated into the main download and will automatically switch based on the chosen Minecraft language. If you would like to provide a language pack for your language please contact me via PM.

Current language packs in the mod:


For historic language pack information expand the spoiler:
Spoiler


Posted Image

Here's a short video showing the basics of using this mod:



Posted Image

New features in version 0.8.5:
  • Automatic language selection for supported languages: english, french, german, polish
  • Fixed some crashes caused by forge and a few other mods
  • Added event support, only limited selection of events for now, this is mainly adding scaffholding for features planned for 0.9
  • New loop constructs: DO...WHILE and DO...UNTIL
  • New script commands VOLUME and MUSIC
  • New script action EXEC allows scripts to be spun off, very useful with events: EXEC("script.txt","task_name")
  • New player variables: XPOS, ZPOS, ARMOUR, INVSLOT
  • "Always override" function now checks for an open GUI screen (oops!)
  • DISCONNECT function shouldn't crash game when using other mods
  • Refactored script extensions API to be considerably simpler
  • It's now possible to use variables inside DO() declarations and SET statements, eg. DO(%#counter%)
  • Added LOOK script action to set player's orientation with LOOKS (look smooth) variant for smooth interpolation
  • Improved interpolation for FOV, GAMMA, LOOK and LOOKS so that transitions are smoother
  • Added the ability to delete configurations
  • Added global counters using prefix @#
  • Thumbnail manager now has a scroll bar so that all thumbnails can be accessed even at low resolution
  • Added RAIN, OXYGEN, ITEM, DURABILITY, SERVER variables
  • Fixed macro edit box cursor positioning when using narrow (kerned) fonts
  • Added button to access macro config in Controls... screen
  • Added new conditional script actions: IFCONTAINS, IFBEGINSWITH, IFENDSWITH, IFMATCHES which can be used in place of the normal IF
  • Added "all" option for STOP script action. Specify "all" or "*" to stop all active macros.

New features in version 0.8.2:
  • Updated to support Minecraft 1.1
  • Items in the items selection list now rendered with shading rather than fullbright
  • Fixed a bug with pipe characters inside scripts which cause IF statements with the OR operator "||" to not work properly, fixing this also means you can use | inside ECHO commands to output multiple lines of text with a single ECHO command
  • Fixed a small bug when adding new entries to a preset text listbox which meant that the selected item wasn't always remembered
  • Added the item-with-damage param $$i:d to the in-game help

New features in version 0.8.1:
  • Fixed a bug with parsing script actions which contain parentheses!

New features in version 0.8:
  • New JInput subsystem to provide MOUSE3 and MOUSE4 (side buttons) support under Windows
  • "Always override" option per-macro
  • Improved the "Items" listbox, now icons instead of a long list
  • Support for supplying damage values with $$i use $$i:d to insert an item/damagevalue pair
  • New quick-access buttons for "Edit File" and "Settings" and also to access the "Bindings" screen from playback mode
  • Configuration overlay support, merge configurations for even more advanced config setups. Use the new IMPORT and UNIMPORT script functions
  • Improved macro text editor fields, full cursor movement and mouse support
  • User Face images in the online user ($$u) list
  • Icon manager, take your own custom screenshots in-game for use in the homes, towns and warps lists
  • Global flags in scripts. Prefix a flag name with @ to make it accessible to multiple macros.
  • Counter variables in scripts. Prefix counter variables with # and use the new INC and DEC script commands to increment and decrement them
  • Improved Text Editor GUI: Delete and rename text files in the text editor screen
  • IIF conditional echo script command to make toggles and conditional echo commands much more compact
  • ELSEIF conditional script construct
  • GAMMA and SENSITIVITY script commands to alter brightness and mouse sensitivity respectively
  • Ability to include variable values in ECHO and LOG commands, simply surround the variable name with %, for example $${ECHO("Current health = %HEALTH%")}$$
  • Added new global variables LIGHT, TEXTUREPACK, SEED, DIMENSION, YPOS
  • Added macro invoke-time input variables, retains the state of all keyboard keys at the point the macro is invoked. For example ~CTRL for the state of the Ctrl key when invoking the macro
  • Added popup display when switching configs to show the currently selected config and overlay

New features in version 0.7.2:
  • Fixed a bug with uppercase conditional statements
  • Fixed a bug with having to press a macro twice if it included a parameter

New features in version 0.7:
  • Updated for Minecraft 1.0
  • Improved override support! Improved compatibility with zombes and other mods which ignore the old override method.
  • Support for binding mouse buttons as well as keys
  • Alternate display names for warps, homes and towns
  • Conditionals in scripts: IF, ELSE, ENDIF as well as flag commands
  • New script actions:
      TexturePack - Switch texture packs on-the-fly
      Type - Pump keys into the keyboard buffer as if you typed them
      Press - Pump a single (non-alphanumeric) key into the keyboard buffer: eg. PRESS(ESCAPE)
      PlaceSign - Place a sign from your inventory and automatically set the text!
  • Invert SNEAK key function for macros: <ACTIVATE> to bind, <SNEAK><ACTIVATE> to play back
  • On-screen debug display
  • Additional options: compatible mode (disables new keybind engine)
  • Fixed a bug which meant that attack and use key commands wouldn't work as expected
  • Fixed a bug with named parameter values not saving correctly

New in version 0.6
  • Key-State Macros: Bind different commands to the key down, key held, and key up events
  • Loops! Both infinite and finite loops now supported within scripts
  • List and include files now stored in a separate directory /mods/macros/ - Note to previous users, you will need to move your old scripts!!
  • New script actions: InventoryDown, InventoryUp, Pick, Slot, Sprint, Unsprint, Log, Stop see readme.txt for details
  • Improved existing script actions, see the readme.txt
  • Selectively terminate macros - bind to a key or access via GUI
  • Lots more options! "Simple" GUI mode and a lot of others
  • Per-config home/friend/town/preset lists - have your lists track your server
  • Added $$w parameter for warps - with auto-discovery support!
  • Added $$p "place" parameter, save your locations for use with /tppos and others
  • Configurable "reserved keys", to provide better compatibility with other mods
  • Configurable (via config file) options for Online User list - trim characters, include self
  • User list ($$u) now sorted alphabetically
  • For avanced users, compiler directives to alter macro compilation
  • Defaults to enabled in single player
  • Improved singleplayer/multiplayer detection code
  • Made the Colour Code Helper key configurable
  • Fixed a bug with the disconnect script action causing OpenGL weirdness
  • Fixed a bug with listboxes activating entries when scrolling with the mouse

New in version 0.5
  • Modified controls screen with pages to make binding keys easier
  • Added $$u parameter to select from online users
  • Added named parameters $[name]
  • Added basic scripting support (see the readme.txt for more details)
  • Added multiple configurations functionality with per-server auto-switch
  • Added global keys which are the same for all configurations
  • Text editor now correctly renders more characters and invalid code points are highlighted
  • Can now create new text files in the "edit file" window
  • Added localisation file macros.lang to support different languages
  • Added colour-code helper when editing macros (use the OVERRIDE key to activate)
  • Key display glyphs now stored in the config file

New in version 0.4
  • On-screen keyboard when binding keys: quickly see which keys are bound as well as being able to move, copy, delete macros quickly and easily.
  • Configure the macro activate and macro override keys in the normal Minecraft "Controls" GUI
  • Set modifiers on your key binds, require CTRL, ALT and SHIFT or any combination to prevent accidental usage
  • Extra parameters: $$h for homes, $$t for towns, $$m for text file list, plus ten configurable parameter lists $$0 through $$9
  • Auto-discover functionality for friends, towns and homes (may require some settings tweaking for best results)
  • Drag and drop to rearrange friends, towns and homes
  • Edit text files within minecraft
  • Recursive parsing of files and parameters, put parameters in your parameters!
  • Increased macro edit length in the GUI (can now edit macros longer than the screen width)
  • Prevent macros from remembering previous parameter values
  • Much better 'override' function
  • Complete re-vamp and improvement of settings file, format is now much clearer.

New in version 0.3
  • Added support for single player

New in version 0.2
  • Include files within macros
  • Friends list
  • Items list
  • On-screen help
  • $$! terminate macro modifier


Posted Image

  • To uninstall the mod, just delete the .zip file from your "mods" folder
  • Key binds are saved in a file macros.txt in your minecraft folder, you can save and restore this file if you want to copy your macros to another computer
  • This mod shouldn't create conflicts with other mods using modloader, but to be certain it is worth avoiding binding keys used by other mods. If in doubt delete the macros.txt file and ensure other mods run as normal. Also ensure that you install modLoader before installing Improved Chat, as mentioned in the Improved Chat thread.


Posted Image

If you would like to show your support for the mod by including a clickable banner in your sig, click the spoiler next to one of the banners below and copy the code into your forum signature:

Posted Image
Spoiler

Posted Image
Spoiler

Posted Image
Spoiler

Posted Image
Spoiler


Posted Image

Thanks to the MCP team and everyone who's given suggestions and feedback. Special thanks to AJFire for making the original mod logo and providing the german translation. Thanks also to Chokapix for the french translation and kamild1996 for the Polish translation.

Enjoy! Please post feedback, comments, abuse here. :)
Posted Image
61

Register or log in to remove.

#2 User is offline

  • Group: Members
  • Posts: 12
  • Joined: 10-July 11

Posted 18 July 2011 - 05:30 AM

Improved chat by wd1966 have this function :)
http://www.minecraft...sneak-and-chat/
I don't think many people will install your mod because the most of functions are included in Improved chat. But CTRL+<key> is an interesting idea. :rolleyes:
->Add more functions!
1

#3 User is offline

  • Group: Members
  • Posts: 195
  • Joined: 01-October 10

Posted 18 July 2011 - 05:34 AM

VA, Improved chat hasnt been updated too 1.7.3...
0

#4 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-September 10
  • Location: Canada
  • Minecraft: Ju0z45

Posted 18 July 2011 - 06:35 AM

Really like this mod, very useful for my sever, recommended it to our regulars, thanks so much!
1

#5 User is offline

  • Group: Members
  • Posts: 12
  • Joined: 10-July 11

Posted 18 July 2011 - 08:31 AM

View PostSarkos, on 18 July 2011 - 05:34 AM, said:

VA, Improved chat hasnt been updated too 1.7.3...

I got version that works with 1.7.3. Maybe third party update but it works! Try to search the 1.7.3 compatible version with Google.
0

#6 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-July 11
  • Location: Birmingham, UK
  • Minecraft: Mumfrey

Posted 18 July 2011 - 09:02 AM

Indeed, thanks for your comments! Improved Chat does look amazing, maybe he will add the quick-bind function used here to that mod? On my travels I did find Improved Chat but it seems very heavyweight if you just want simple keybind functions. I've tried to keep this as tiny as possible (and use modloader for compatibility) as I think it may still appeal to people who like to keep things minimalist.

The two features which may appeal to users are the ability to quickly edit macros/binds in-game, and the fact that you needn't memorise either the LWJGL key codes nor the key names to bind unusual keys: simply press the key you want to bind.

I'll add a link to Improved Chat to the OP though :)
Posted Image
0

#7 User is offline

  • Group: Members
  • Posts: 40
  • Joined: 07-March 11

Posted 21 July 2011 - 12:05 AM

i really would like to use your mod but it conflicts with improved chat mod (i dont like the binding-system in icm)
When i press tab, it tells me that i should press a button, but nothing happen after that.
0

#8 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-July 11
  • Location: Birmingham, UK
  • Minecraft: Mumfrey

Posted 27 July 2011 - 11:04 AM

Hmm, sorry you're having trouble. It shouldn't conflict with Improved Chat, I have just installed Improved Chat and tested it and I've been unable to replicate the behaviour you describe. Did you install ModLoader before installing Improved Chat (as mentioned in the Improved Chat forum post)?

I tried with a clean install of 1.7.3, installed Modloader and my own mod, then installed Improved Chat and everything worked as expected, so I don't know what else to try.

Sorry I can't help any more but if you're still having trouble it may be worth checking that there aren't other conflicts - are you running any other ModLoader mods?
Posted Image
0

#9 User is offline

  • Group: Members
  • Posts: 9
  • Joined: 28-July 11
  • Minecraft: Proskillgod

Posted 28 July 2011 - 03:00 AM

I love this mod! I like the idea overall. But is ther way to only issue part of the command so you can enter the last part of the command? If your wondering why it is because i do not like typeing the same command over and over with a diffrence of 1thing.
Epic faction server. Fullforcegames.com:25565
join pro8bits =D
1

#10 User is offline

  • Group: Members
  • Posts: 40
  • Joined: 07-March 11

Posted 28 July 2011 - 09:05 PM

Ok, works now for me. Fresh minecraft, with Inventory Tweaks, HDPatch, an your mod.
I really love your mod because it's easier to bind keys than in Improved Chat.
I hope you are still in the mood for developing this mod, 'cause i have some requests :D

1. Bind Scripts to a key like "> script(welcome.txt)"

inside welcome.txt:

Quote

/give AJFire 278 1
Hi Everybody
/msg MarinaX \


Where "\" just writes "/msg MarinaX" in the chat without pressing enter.

:D
0

#11 User is offline

  • Group: Members
  • Posts: 9
  • Joined: 25-April 11

Posted 29 July 2011 - 11:36 AM

Great Mod! Its awesome! You should be proud! :Diamond: :Diamond: :Diamond:
0

#12 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-July 11
  • Location: Birmingham, UK
  • Minecraft: Mumfrey

Posted 29 July 2011 - 08:18 PM

View Postpsgts, on 28 July 2011 - 03:00 AM, said:

...is ther way to only issue part of the command so you can enter the last part of the command?

View PostAJFire, on 28 July 2011 - 09:05 PM, said:

...I hope you are still in the mood for developing this mod, 'cause i have some requests :D

1. Bind Scripts to a key like "> script(welcome.txt)"...


I really like both of these ideas! I'll release an update as soon as I can which supports this, I've coded most of it already but I need to properly test it all to make sure there's nothing I've missed, and make it a little prettier too.

To address the first idea, I've made it so that adding $$? anywhere in a macro will bring up a prompt when the macro is executed and will replace the $$? with whatever is entered. It also remembers what was entered, so entering repeat commands is easy, even across sessions (it stores the params in macros.txt).

For the second point I've added the ability to enter $$<filename.txt> to substitute the contents of the file into the macro at that point, which adds a lot of flexibility. You can even put these macro file includes inside a macro file, just be sure not to include the same file inside itself!

Finally, entering $$! in a macro will stop the macro at that point and put the last command into the chat buffer. This works either in an included file or in a simple macro, so the example above could be written as:
/give AJFire 278 1|Hi Everybody|/msg MarinaX $$!
Obviously anything after $$! is ignored.

You could also use
/give AJFire $$? 1|Hi Everybody|/msg MarinaX $$!
to provide a prompt for what item to give :)

Once I've ironed out the bugs and fully tested it I'll put it up here, the last part may need some fixing to work with Improved Chat or it might not even be possible to coexist, I'll have to do some testing of that too.

Thanks for your suggestions and feedback!
Posted Image
0

#13 User is offline

  • Group: Members
  • Posts: 77
  • Joined: 27-September 10
  • Location: Portland, Oregon, United States of America
  • Minecraft: Natethegreat832

Posted 06 August 2011 - 12:58 AM

Are you in any relation to Jesus? I LOVE THIS MOD!
"Nothing to Fear but Fear itself... and Herobrine"
Need a nice friendly Harccore Faction PvP server to play on? LegendsCraft is probably one of the best choices. Easy to join, tons of fun, and friendly staff... What if I said Chuck Testa played on here?
1

#14 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-July 11
  • Location: Birmingham, UK
  • Minecraft: Mumfrey

Posted 10 August 2011 - 12:04 AM

Well having tested all the new features I've now uploaded a new version 0.2 (see links in the original post) which supports the parameter codes I mentioned above plus new codes $$i and $$f which prompt for an item or friend respectively (check out the video for a full demo of the new stuff). Half the coding time on this was actually making a ListBox and ScrollBar control to support the new interface features, as I felt it was important to try and keep everything feeling very simple and easy to use!

Posted Image

The testing resulted in the following restrictions on including files: You can include a maximum of 10 files per macro (this includes files included by other files) which stops the processing getting too ludicrous and mitigates accidental recursion! Also, filenames can only include letters, numbers, space, underscore, dash and dot and must end in .txt

Hope you like the new stuff, please feel free to post any other ideas, suggestions or comments and I'll try to implement them if I can.
Posted Image
0

#15 User is offline

  • Group: Members
  • Posts: 9
  • Joined: 28-July 11
  • Minecraft: Proskillgod

Posted 11 August 2011 - 08:07 AM

im confused what are the friend/item thingys for i dnt quite get it
Epic faction server. Fullforcegames.com:25565
join pro8bits =D
0

#16 User is offline

  • Group: Members
  • Posts: 102
  • Joined: 16-January 11

Posted 11 August 2011 - 08:35 AM

Will this also work with single player commands?
As that would be the greatest and awesome thing :D


EDIT:
This unfortunately doesn't work with singleplayer commands :(
Please make this work with singleplayer commands.
Please
Posted Image
0

#17 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-July 11
  • Location: Birmingham, UK
  • Minecraft: Mumfrey

Posted 11 August 2011 - 10:35 AM

View Postpsgts, on 11 August 2011 - 08:07 AM, said:

im confused what are the friend/item thingys for i dnt quite get it

Sorry I didn't explain very well, basically they're just specialised parameters which give you a list of stuff rather than just typing things in.

You mentioned above that you'd like to be able to enter "part" of a command when you execute it - with the new version there are two possible ways of doing this:

1) You can use AJFire's method, which basically will pump a macro into the chat buffer allowing you to complete it, so for example making the macro
/give psgts 4 $$!
will put /give psgts 4 into chat and allow you to type the amount on the end then press enter. However this isn't very useful if you want to enter something in the middle of your command, so on to option...

2) You can use the new method, which allows you to put $$? anywhere in the macro and be prompted for it when you execute the macro. For example
/give psgts $$? 64
will prompt you for the item number. However in this scenario you have to remember the item number, or have a cheat sheet handy with the item numbers on it. The "item" option allows you to instead enter $$i and as well as being prompted you now get an on-screen list of items (as pictured). $$f does exactly the same thing but allows you to maintain a list of "friends", essentially for private messaging or other admin functions.

I should mention that you can also combine paramters in a single macro, so you could actually write:

/give $$f $$i $$?

and it will work perfectly fine, prompting for all 3 parameters in turn.

Hopefully that now makes sense, if it's still not clear take a look at the video which shows the stuff in action.

View PostAwesomer6, on 11 August 2011 - 08:35 AM, said:

Will this also work with single player commands?
As that would be the greatest and awesome thing :D


EDIT:
This unfortunately doesn't work with singleplayer commands :(
Please make this work with singleplayer commands.
Please

I'll take a look, I've not used Single Player Commands myself so I'll have a look at the code and check. The mod itself definitely works in single player as that's where I test the stuff, I just manually disable it before release. If I can make it work then I'll certainly release an updated version which supports that.
Posted Image
0

#18 User is offline

  • Group: Members
  • Posts: 102
  • Joined: 16-January 11

Posted 11 August 2011 - 10:55 AM

View PostMumfrey, on 11 August 2011 - 10:35 AM, said:

Sorry I didn't explain very well, basically they're just specialised parameters which give you a list of stuff rather than just typing things in.

You mentioned above that you'd like to be able to enter "part" of a command when you execute it - with the new version there are two possible ways of doing this:

1) You can use AJFire's method, which basically will pump a macro into the chat buffer allowing you to complete it, so for example making the macro
/give psgts 4 $!
will put /give psgts 4 into chat and allow you to type the amount on the end then press enter. However this isn't very useful if you want to enter something in the middle of your command, so on to option...

2) You can use the new method, which allows you to put $? anywhere in the macro and be prompted for it when you execute the macro. For example
/give psgts $? 64
will prompt you for the item number. However in this scenario you have to remember the item number, or have a cheat sheet handy with the item numbers on it. The "item" option allows you to instead enter $i and as well as being prompted you now get an on-screen list of items (as pictured). $f does exactly the same thing but allows you to maintain a list of "friends", essentially for private messaging or other admin functions.

I should mention that you can also combine paramters in a single macro, so you could actually write:

/give $f $i $?

and it will work perfectly fine, prompting for all 3 parameters in turn.

Hopefully that now makes sense, if it's still not clear take a look at the video which shows the stuff in action.


I'll take a look, I've not used Single Player Commands myself so I'll have a look at the code and check. The mod itself definitely works in single player as that's where I test the stuff, I just manually disable it before release. If I can make it work then I'll certainly release an updated version which supports that.



Thank you very much and thank you for replying so quickly


Posted Image
0

#19 User is offline

  • Group: Members
  • Posts: 14
  • Joined: 08-July 11

Posted 11 August 2011 - 01:32 PM

this sounds to be an amazing plugin but ...
if you test the stuff on ssp, why do you disable this fonction when you release your mod ?
I'm french so please be indulgent with my english
Posted Image
0

#20 User is offline

  • Group: Members
  • Posts: 287
  • Joined: 11-July 11
  • Location: Birmingham, UK
  • Minecraft: Mumfrey

Posted 11 August 2011 - 03:44 PM

View Poststan-fear, on 11 August 2011 - 01:32 PM, said:

this sounds to be an amazing plugin but ...
if you test the stuff on ssp, why do you disable this fonction when you release your mod ?

I test on SSP for simplicity using a test harness which pipes all of the output to the console so that I can test that macros are outputting what they should. The test harness also checks the issued commands to make sure they don't contain illegal characters and aren't longer than 100 characters in length. Taking the server out of the picture is just easier and quicker for testing purposes basically.

Since you can't issue chat commands in single player I just thought it sensible to disable it because it could cause confusion having the macro capability but not actually sending the messages anywhere!

I didn't realise that Single Player Commands existed, now that I'm aware of it I can look into how it handles commands and adjust my mod so that if Single Player Commands mod is detected it will enable itself in SSP. It would be naïve to just assume that it masquerades as a server, but if that is indeed what it does (specifically, if it hooks into EntityPlayerSP.sendChatMessage()) then making this work in SSP is trivial - if not then I'll engineer it so that it does work :)
Posted Image
0

Share this topic:


  • 42 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

15 User(s) are reading this topic
0 members, 15 guests, 0 anonymous users