ID:1087862
 
(See the best response by Jemai1.)
Code:
    Enter()
if(input=="input1")
input="input2"
(Doesn't work, but it explains what I'm trying to do)


Problem description:
I have a map with multiple inputs for a good reason, they are all on the same map and are in a row. How do I make it so Enter goes to the next input?
Best response
It is clear from the code snippet that you have no idea on what you are doing. The Enter proc is associated on movement.

I recommend the following:

Once you are well versed with DM, you can start working on Skins
Skin Reference

What you need to do is set the focus parameter of your input control to true.
winset(player_here,"your_input_control_id_here","focus=true")
Yes, it's pretty obvious I don't know what I'm doing because I'm doing this on DreamMaker.

The code I posted was what I did for changing icons. I have it as MouseDown() instead of Enter() because I couldn't find out what the Enter() key is named in the language (return doesn't help because it's already in the language)

What you posted literally has nothing to do with what I'm doing. I simply asked how to macro enter to go to the next input (input1, input2, input3, input4 etc)
Those are done with skins. You can assign a command for your input control. The command will be triggered when you enter the text. To learn more about it, read Making skins in BYOND 4.0.

Lesson 4 tackles input control commands.

Another way is using the obsolete .dms file to assign macros.
So are these inputs that you created using the interface editor?

If so, all you need to do is include the winset code in your input command. When you edit the input properties there is a field for the default command. Commonly this would just be "say". That means whatever is typed in will have the command "say" stuck in before it, and the text will be passed as an argument:

mob/verb/say(msg as text)    //the msg argument will be whatever the player types in
world << "[usr]: [msg]"
winset(usr,"input2","focus=true")


This will output the message and then move the cursor to input2, which would be the default ID for the second input you place on the interface.