Jump to content




Edit programs in Notepad in Multiplayer?


20 replies to this topic

#1 poohshoes

  • New Members
  • 2 posts

Posted 26 July 2012 - 10:13 PM

I know that in single player you can edit your programs outside of minecraft (eg, notepad).

Is it possible to edit programs in Notepad when I am playing Multiplayer?

Thanks,
poohshoes

#2 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 26 July 2012 - 10:22 PM

If you own the server, you can import them yourself, otherwise I believe you have to do it in-game unless you upload it and the server own is kind enough to import it. Although, copy/paste the text might work, but I think I tried that and it sorta failed.

#3 Lasere123456

  • Members
  • 30 posts

Posted 26 July 2012 - 10:34 PM

copy and pasting uses the control key, which is used by the save and exit.
so if you try to paste u will end up on the save or exit menu

#4 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 26 July 2012 - 10:54 PM

 Lasere123456, on 26 July 2012 - 10:34 PM, said:

copy and pasting uses the control key, which is used by the save and exit.
so if you try to paste u will end up on the save or exit menu
Yeah, sorry, I don't know how you could do it then. Maybe someone else knows.

EDIT: Oops, thought you were the OP, you two need avatars...

#5 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 26 July 2012 - 11:12 PM

Pastebin program.
Write in notepad, upload to pastebin, retrieve it in minecraft.

#6 inventor2514

  • Members
  • 63 posts

Posted 27 July 2012 - 02:10 AM

If you press control-v while in the save/exit menu, it will exit the menu and paste a line of code. Of course, pastebin is the better solution if the server has the http api enabled.

#7 RefinedCode

  • New Members
  • 11 posts

Posted 27 July 2012 - 01:43 PM

Well I had the same problem. There is no way the admin will enable HTTP, which is understandable :)/> . So I found a program called http://www.autohotkey.com/ and I created a script to copy and paste a file into a computer terminal:
SetTitleMatchMode 2
InputBox, UserInput, Num, Enter the number of lines., , 640, 480
if ErrorLevel
    MsgBox, CANCEL was pressed.
else
Loop %UserInput%
{
  WinWait, Notepad,
  IfWinNotActive, Notepad, , WinActivate, Notepad,
  WinWaitActive, Notepad,
  MouseClick, left,  67,  15
  Sleep, 1
  Send, {HOME}{SHIFTDOWN}{END}{SHIFTUP}{CTRLDOWN}c{CTRLUP}{DOWN}
  MouseClick, left,  1069,  110
  Sleep, 1
  WinWait, Tekkit,
  IfWinNotActive, Tekkit, , WinActivate, Tekkit,
  WinWaitActive, Tekkit,
  Send, {ENTER}
  Sleep, 1
  Send, {CTRLDOWN}
  Sleep, 1
  Send, {CTRLUP}
  Sleep, 1
  Send, {CTRLDOWN} v
  Sleep, 1
  Send, {CTRLUP}
  Sleep, 1
else{
	 Send, {DOWN}
}
}

If you were to use it you would probably have to edit it a bit to get it to work, but if you have no other option like me its worth learning how to use the program. Saved me so much time.

#8 Bonum

  • New Members
  • 9 posts

Posted 27 July 2012 - 01:53 PM

edit: wow, I guess I was a few minutes too late :)/>

I've been using an autohotkey script to "type" a file into the minecraft window by simulating key presses. Autohotkey is a macro/scripting program for windows.

It's still pretty rough, but you can try it if you want: http://pastebin.com/UKgCaXNM
(If you don't use Tekkit, you should edit GameWinTitle to... "Minecraft" probably)

#9 RefinedCode

  • New Members
  • 11 posts

Posted 27 July 2012 - 02:59 PM

 Bonum, on 27 July 2012 - 01:53 PM, said:

edit: wow, I guess I was a few minutes too late :)/>

I've been using an autohotkey script to "type" a file into the minecraft window by simulating key presses. Autohotkey is a macro/scripting program for windows.

It's still pretty rough, but you can try it if you want: http://pastebin.com/UKgCaXNM
(If you don't use Tekkit, you should edit GameWinTitle to... "Minecraft" probably)

Oh wow what are the chances!!! Thanks for sharing your version too! It is SO much better than mine!

#10 Bonum

  • New Members
  • 9 posts

Posted 27 July 2012 - 04:45 PM

 RefinedCode, on 27 July 2012 - 02:59 PM, said:

Oh wow what are the chances!!! Thanks for sharing your version too! It is SO much better than mine!
Well, programs have a tendency to grow over time, right? :)/>
Yours is probably much faster though, pasting full lines instead of characters.

#11 poohshoes

  • New Members
  • 2 posts

Posted 27 July 2012 - 07:19 PM

Thanks!

#12 RefinedCode

  • New Members
  • 11 posts

Posted 27 July 2012 - 08:36 PM

I discovered you can use {RControl} instead of {Ctrl} which wont bring up the save menu, so you can just {RControl}V and it will work without asking to save.

#13 Emilgardis

  • New Members
  • 15 posts

Posted 30 July 2012 - 11:51 AM

 Bonum, on 27 July 2012 - 01:53 PM, said:

edit: wow, I guess I was a few minutes too late :)/>

I've been using an autohotkey script to "type" a file into the minecraft window by simulating key presses. Autohotkey is a macro/scripting program for windows.

It's still pretty rough, but you can try it if you want: http://pastebin.com/UKgCaXNM
(If you don't use Tekkit, you should edit GameWinTitle to... "Minecraft" probably)

 RefinedCode, on 27 July 2012 - 01:43 PM, said:

Well I had the same problem. There is no way the admin will enable HTTP, which is understandable :ph34r:/> . So I found a program called http://www.autohotkey.com/ and I created a script to copy and paste a file into a computer terminal:
SetTitleMatchMode 2
InputBox, UserInput, Num, Enter the number of lines., , 640, 480
if ErrorLevel
	MsgBox, CANCEL was pressed.
else
Loop %UserInput%
{
  WinWait, Notepad,
  IfWinNotActive, Notepad, , WinActivate, Notepad,
  WinWaitActive, Notepad,
  MouseClick, left,  67,  15
  Sleep, 1
  Send, {HOME}{SHIFTDOWN}{END}{SHIFTUP}{CTRLDOWN}c{CTRLUP}{DOWN}
  MouseClick, left,  1069,  110
  Sleep, 1
  WinWait, Tekkit,
  IfWinNotActive, Tekkit, , WinActivate, Tekkit,
  WinWaitActive, Tekkit,
  Send, {ENTER}
  Sleep, 1
  Send, {CTRLDOWN}
  Sleep, 1
  Send, {CTRLUP}
  Sleep, 1
  Send, {CTRLDOWN} v
  Sleep, 1
  Send, {CTRLUP}
  Sleep, 1
else{
	 Send, {DOWN}
}
}

If you were to use it you would probably have to edit it a bit to get it to work, but if you have no other option like me its worth learning how to use the program. Saved me so much time.
Is it just me, or doesn't these two scripts work.
I always get an error.

#14 Bonum

  • New Members
  • 9 posts

Posted 30 July 2012 - 12:17 PM

 Emilgardis, on 30 July 2012 - 11:51 AM, said:

Is it just me, or doesn't these two scripts work.
I always get an error.
The actual error would be useful... Did you install autohotkey?

#15 Emilgardis

  • New Members
  • 15 posts

Posted 30 July 2012 - 01:56 PM

 Bonum, on 30 July 2012 - 12:17 PM, said:

 Emilgardis, on 30 July 2012 - 11:51 AM, said:

Is it just me, or doesn't these two scripts work.
I always get an error.
The actual error would be useful... Did you install autohotkey?

No why would I do that!
The error is for RefinedCode
Error: ELSE with no matching IF
the error apears at line# 029 (I sudoed this.)
And for bonum
Error at line 2.
Line Text: Warn
Error: This line does not contain a recognized action.


#16 tfoote

  • New Members
  • 134 posts
  • LocationSalt Lake, UT

Posted 30 July 2012 - 05:14 PM

If you look at my post a while back. there is a program where you can have file control of a floppy folder. You would have to talk to you server person to have it installed though...

And the post is a different thread
EDIT: http://www.computerc...__fromsearch__1

#17 KingMachine

  • Members
  • 122 posts

Posted 30 July 2012 - 05:15 PM

 Noodle, on 26 July 2012 - 11:12 PM, said:

Pastebin program.
Write in notepad, upload to pastebin, retrieve it in minecraft.
Not every server has http enabled.

#18 Bonum

  • New Members
  • 9 posts

Posted 01 August 2012 - 12:40 PM

 Emilgardis, on 30 July 2012 - 01:56 PM, said:

 Bonum, on 30 July 2012 - 12:17 PM, said:

The actual error would be useful... Did you install autohotkey?
No why would I do that!
You need autohotkey to interpret the autohotkey scripts. They can be compiled to binaries, but I hope people are smart enough not to run random little .exes they find in forums.

#19 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 01 August 2012 - 03:12 PM

 KingMachine, on 30 July 2012 - 05:15 PM, said:

 Noodle, on 26 July 2012 - 11:12 PM, said:

Pastebin program.
Write in notepad, upload to pastebin, retrieve it in minecraft.
Not every server has http enabled.
I'm saying that most servers have it, and it is the easiest. You could use a script.. or just code it inside your computer. Not to put negativity on anything I'm just saying that it's best if you just code it on your computer inside the server.. One small problem is that you wouldn't be able to retrieve the files from inside the game.

#20 KingMachine

  • Members
  • 122 posts

Posted 01 August 2012 - 04:35 PM

 Noodle, on 01 August 2012 - 03:12 PM, said:

I'm saying that most servers have it, and it is the easiest. You could use a script.. or just code it inside your computer. Not to put negativity on anything I'm just saying that it's best if you just code it on your computer inside the server.. One small problem is that you wouldn't be able to retrieve the files from inside the game.

I know that a lot of servers have it. My reference is to the fact that your idea will not work 100% of the time.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users