This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
poohshoes's profile picture

Edit programs in Notepad in Multiplayer?

Started by poohshoes, 26 July 2012 - 09:13 PM
poohshoes #1
Posted 26 July 2012 - 11: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
brett122798 #2
Posted 26 July 2012 - 11: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.
Lasere123456 #3
Posted 26 July 2012 - 11: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
brett122798 #4
Posted 26 July 2012 - 11:54 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
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…
Noodle #5
Posted 27 July 2012 - 12:12 AM
Pastebin program.
Write in notepad, upload to pastebin, retrieve it in minecraft.
inventor2514 #6
Posted 27 July 2012 - 03: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.
RefinedCode #7
Posted 27 July 2012 - 02: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.
Bonum #8
Posted 27 July 2012 - 02: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)
RefinedCode #9
Posted 27 July 2012 - 03:59 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)

Oh wow what are the chances!!! Thanks for sharing your version too! It is SO much better than mine!
Bonum #10
Posted 27 July 2012 - 05:45 PM
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.
poohshoes #11
Posted 27 July 2012 - 08:19 PM
Thanks!
RefinedCode #12
Posted 27 July 2012 - 09: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.
Emilgardis #13
Posted 30 July 2012 - 12:51 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)
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.
Bonum #14
Posted 30 July 2012 - 01:17 PM
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?
Emilgardis #15
Posted 30 July 2012 - 02:56 PM
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.
tfoote #16
Posted 30 July 2012 - 06: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.computercraft.info/forums2/index.php?/topic/2878-if-you-have-a-server-click-on-this-post-it-will-solve-many-problems/page__fromsearch__1
KingMachine #17
Posted 30 July 2012 - 06:15 PM
Pastebin program.
Write in notepad, upload to pastebin, retrieve it in minecraft.
Not every server has http enabled.
Bonum #18
Posted 01 August 2012 - 01:40 PM
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.
Noodle #19
Posted 01 August 2012 - 04:12 PM
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.
KingMachine #20
Posted 01 August 2012 - 05:35 PM
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.
Emilgardis #21
Posted 19 August 2012 - 02:40 PM
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.
Yes, everyone on the internet is stupid…
God, I was joking, ofc I installed autohotkey.