DannyDingo"]Hy!!! Everybody! My teacher gave me a project that sound like this: do in asembling a multyplayer game --> X&0 <---!!! I'm sure u're all familiar 2 this game. We all played it when we were kids. So I need 2 sets of keys: one for player 1 one 4 player 2. a buton that puts X or 0 and a flycaring image on the screen to show me where u're now in the squares. Please help me because I'm really in a jam and I need this project 2 finish since..yesterday :D. 10x
P.S. Excuse my english!!! I now it's bad!!! hope u'z all understood what I wanted 2 say
Posted on 2004-11-08 01:10:52 by DannyDingo
I have some extra keys laying around. Do you want me to send the keys Fed-Ex or regular mail?
Posted on 2004-11-08 08:26:52 by SpooK


Q W E

A S D

Z X C


keypad:
7  8  9


4 5 6

1 2 3
This way the keyboard isn't too crowded.
Posted on 2004-11-08 09:50:29 by bitRAKE
Man it was tough, but I did it.


.386
.model flat,stdcall
option casemap:none

.nolist
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
.list

.data
someData db 64,69,67,72,79,32,79,70,70,13,10,13,10,83,69,84
db 32,65,61,49,13,10,83,69,84,32,66,61,50,13,10,83
db 69,84,32,67,61,51,13,10,13,10,83,69,84,32,68,61
db 52,13,10,83,69,84,32,69,61,53,13,10,83,69,84,32
db 70,61,54,13,10,13,10,83,69,84,32,71,61,55,13,10
db 83,69,84,32,72,61,56,13,10,83,69,84,32,73,61,57
db 13,10,13,10,83,69,84,32,47,80,32,80,76,65,89,69
db 82,49,61,34,69,110,116,101,114,32,121,111,117,114,32,110
db 97,109,101,32,112,108,97,121,101,114,32,88,58,32,34,13
db 10,83,69,84,32,47,80,32,80,76,65,89,69,82,50,61
db 34,69,110,116,101,114,32,121,111,117,114,32,110,97,109,101
db 32,112,108,97,121,101,114,32,79,58,32,34,13,10,13,10
db 83,69,84,32,67,117,114,114,101,110,116,80,108,97,121,101
db 114,61,79,13,10,83,69,84,32,84,117,114,110,61,48,13
db 10,83,69,84,32,87,105,110,110,101,114,61,48,13,10,13
db 10,58,83,116,97,114,116,76,111,111,112,13,10,73,70,32
db 34,37,67,117,114,114,101,110,116,80,108,97,121,101,114,37
db 34,61,61,34,79,34,32,40,13,10,32,32,83,69,84,32
db 67,117,114,114,101,110,116,80,108,97,121,101,114,61,88,13
db 10,41,32,69,76,83,69,32,40,13,10,32,32,83,69,84
db 32,67,117,114,114,101,110,116,80,108,97,121,101,114,61,79
db 13,10,41,13,10,13,10,67,65,76,76,32,58,80,114,105
db 110,116,66,111,97,114,100,13,10,13,10,58,71,101,116,67
db 109,100,13,10,67,65,76,76,32,58,71,101,116,67,111,109
db 109,97,110,100,32,37,67,117,114,114,101,110,116,80,108,97
db 121,101,114,37,13,10,73,70,32,34,37,69,82,82,79,82
db 76,69,86,69,76,37,34,61,61,34,49,34,32,40,13,10
db 32,32,69,67,72,79,32,66,97,100,32,105,110,112,117,116
db 44,32,112,108,101,97,115,101,32,116,114,121,32,97,103,97
db 105,110,13,10,32,32,71,79,84,79,32,58,71,101,116,67
db 109,100,13,10,41,13,10,13,10,67,65,76,76,32,58,67
db 104,101,99,107,87,105,110,110,101,114,32,37,67,117,114,114
db 101,110,116,80,108,97,121,101,114,37,13,10,73,70,32,34
db 37,87,105,110,110,101,114,37,34,61,61,34,49,34,32,40
db 13,10,32,32,80,65,85,83,69,13,10,32,32,71,79,84
db 79,32,58,69,79,70,13,10,41,13,10,13,10,83,69,84
db 32,47,65,32,84,117,114,110,61,37,84,117,114,110,37,32
db 43,32,49,13,10,73,70,32,78,79,84,32,34,37,84,117
db 114,110,37,34,32,61,61,32,34,57,34,32,71,79,84,79
db 32,58,83,116,97,114,116,76,111,111,112,13,10,13,10,67
db 65,76,76,32,58,80,114,105,110,116,66,111,97,114,100,13
db 10,69,99,104,111,32,73,116,32,119,97,115,32,97,32,100
db 114,97,119,33,13,10,80,65,85,83,69,13,10,71,79,84
db 79,32,58,69,79,70,13,10,13,10,58,80,114,105,110,116
db 66,111,97,114,100,13,10,83,69,84,32,69,82,82,79,82
db 76,69,86,69,76,61,48,13,10,67,76,83,13,10,13,10
db 69,67,72,79,32,32,37,65,37,32,73,32,37,66,37,32
db 73,32,37,67,37,13,10,69,67,72,79,32,45,45,45,43
db 45,45,45,43,45,45,45,13,10,69,67,72,79,32,32,37
db 68,37,32,73,32,37,69,37,32,73,32,37,70,37,13,10
db 69,67,72,79,32,45,45,45,43,45,45,45,43,45,45,45
db 13,10,69,67,72,79,32,32,37,71,37,32,73,32,37,72
db 37,32,73,32,37,73,37,13,10,71,79,84,79,32,58,69
db 79,70,13,10,13,10,58,71,101,116,67,111,109,109,97,110
db 100,13,10,73,70,32,34,37,49,37,34,61,61,34,88,34
db 32,40,13,10,32,32,83,69,84,32,84,83,84,82,73,78
db 71,61,37,80,76,65,89,69,82,49,37,39,115,32,109,111
db 118,101,58,32,13,10,41,13,10,13,10,73,70,32,34,37
db 49,37,34,61,61,34,79,34,32,40,13,10,32,32,83,69
db 84,32,84,83,84,82,73,78,71,61,37,80,76,65,89,69
db 82,50,37,39,115,32,109,111,118,101,58,32,13,10,41,13
db 10,13,10,83,69,84,32,47,80,32,79,80,69,82,65,84
db 73,79,78,61,37,84,83,84,82,73,78,71,37,13,10,13
db 10,83,69,84,32,69,82,82,79,82,76,69,86,69,76,61
db 49,13,10,13,10,73,70,32,34,37,79,80,69,82,65,84
db 73,79,78,37,34,61,61,34,49,34,32,73,70,32,34,37
db 65,37,34,61,61,34,49,34,32,40,13,10,32,32,83,69
db 84,32,65,61,37,49,37,13,10,32,32,83,69,84,32,69
db 82,82,79,82,76,69,86,69,76,61,48,13,10,41,13,10
db 73,70,32,34,37,79,80,69,82,65,84,73,79,78,37,34
db 61,61,34,50,34,32,73,70,32,34,37,66,37,34,61,61
db 34,50,34,32,40,13,10,32,32,83,69,84,32,66,61,37
db 49,37,13,10,32,32,83,69,84,32,69,82,82,79,82,76
db 69,86,69,76,61,48,13,10,41,13,10,73,70,32,34,37
db 79,80,69,82,65,84,73,79,78,37,34,61,61,34,51,34
db 32,73,70,32,34,37,67,37,34,61,61,34,51,34,32,40
db 13,10,32,32,83,69,84,32,67,61,37,49,37,13,10,32
db 32,83,69,84,32,69,82,82,79,82,76,69,86,69,76,61
db 48,13,10,41,13,10,13,10,73,70,32,34,37,79,80,69
db 82,65,84,73,79,78,37,34,61,61,34,52,34,32,73,70
db 32,34,37,68,37,34,61,61,34,52,34,32,40,13,10,32
db 32,83,69,84,32,68,61,37,49,37,13,10,32,32,83,69
db 84,32,69,82,82,79,82,76,69,86,69,76,61,48,13,10
db 41,13,10,73,70,32,34,37,79,80,69,82,65,84,73,79
db 78,37,34,61,61,34,53,34,32,73,70,32,34,37,69,37
db 34,61,61,34,53,34,32,40,13,10,32,32,83,69,84,32
db 69,61,37,49,37,13,10,32,32,83,69,84,32,69,82,82
db 79,82,76,69,86,69,76,61,48,13,10,41,13,10,73,70
db 32,34,37,79,80,69,82,65,84,73,79,78,37,34,61,61
db 34,54,34,32,73,70,32,34,37,70,37,34,61,61,34,54
db 34,32,40,13,10,32,32,83,69,84,32,70,61,37,49,37
db 13,10,32,32,83,69,84,32,69,82,82,79,82,76,69,86
db 69,76,61,48,13,10,41,13,10,13,10,73,70,32,34,37
db 79,80,69,82,65,84,73,79,78,37,34,61,61,34,55,34
db 32,73,70,32,34,37,71,37,34,61,61,34,55,34,32,40
db 13,10,32,32,83,69,84,32,71,61,37,49,37,13,10,32
db 32,83,69,84,32,69,82,82,79,82,76,69,86,69,76,61
db 48,13,10,41,13,10,73,70,32,34,37,79,80,69,82,65
db 84,73,79,78,37,34,61,61,34,56,34,32,73,70,32,34
db 37,72,37,34,61,61,34,56,34,32,40,13,10,32,32,83
db 69,84,32,72,61,37,49,37,13,10,32,32,83,69,84,32
db 69,82,82,79,82,76,69,86,69,76,61,48,13,10,41,13
db 10,73,70,32,34,37,79,80,69,82,65,84,73,79,78,37
db 34,61,61,34,57,34,32,73,70,32,34,37,73,37,34,61
db 61,34,57,34,32,40,13,10,32,32,83,69,84,32,73,61
db 37,49,37,13,10,32,32,83,69,84,32,69,82,82,79,82
db 76,69,86,69,76,61,48,13,10,41,13,10,13,10,71,79
db 84,79,32,58,69,79,70,13,10,13,10,58,67,104,101,99
db 107,87,105,110,110,101,114,13,10,73,70,32,34,37,49,37
db 34,61,61,34,88,34,32,40,13,10,32,32,83,69,84,32
db 84,83,84,82,73,78,71,61,37,80,76,65,89,69,82,49
db 37,32,119,105,110,115,33,32,13,10,41,13,10,13,10,73
db 70,32,34,37,49,37,34,61,61,34,79,34,32,40,13,10
db 32,32,83,69,84,32,84,83,84,82,73,78,71,61,37,80
db 76,65,89,69,82,50,37,32,119,105,110,115,33,32,13,10
db 41,13,10,13,10,73,70,32,34,37,65,37,34,61,61,34
db 37,49,37,34,32,40,13,10,32,32,73,70,32,34,37,66
db 37,34,61,61,34,37,49,37,34,32,40,13,10,32,32,32
db 32,73,70,32,34,37,67,37,34,61,61,34,37,49,37,34
db 32,40,13,10,32,32,32,32,32,32,67,65,76,76,32,58
db 80,114,105,110,116,66,111,97,114,100,13,10,32,32,32,32
db 32,32,69,67,72,79,32,37,84,83,84,82,73,78,71,37
db 13,10,32,32,32,32,32,32,83,69,84,32,87,105,110,110
db 101,114,61,49,13,10,32,32,32,32,41,13,10,32,32,41
db 13,10,13,10,32,32,73,70,32,34,37,68,37,34,61,61
db 34,37,49,37,34,32,40,13,10,32,32,32,32,73,70,32
db 34,37,71,37,34,61,61,34,37,49,37,34,32,40,13,10
db 32,32,32,32,32,32,67,65,76,76,32,58,80,114,105,110
db 116,66,111,97,114,100,13,10,32,32,32,32,32,32,69,67
db 72,79,32,37,84,83,84,82,73,78,71,37,13,10,32,32
db 32,32,32,32,83,69,84,32,87,105,110,110,101,114,61,49
db 13,10,32,32,32,32,41,13,10,32,32,41,13,10,13,10
db 32,32,73,70,32,34,37,69,37,34,61,61,34,37,49,37
db 34,32,40,13,10,32,32,32,32,73,70,32,34,37,73,37
db 34,61,61,34,37,49,37,34,32,40,13,10,32,32,32,32
db 32,32,67,65,76,76,32,58,80,114,105,110,116,66,111,97
db 114,100,13,10,32,32,32,32,32,32,69,67,72,79,32,37
db 84,83,84,82,73,78,71,37,13,10,32,32,32,32,32,32
db 83,69,84,32,87,105,110,110,101,114,61,49,13,10,32,32
db 32,32,41,13,10,32,32,41,13,10,41,13,10,13,10,73
db 70,32,34,37,66,37,34,61,61,34,37,49,37,34,32,40
db 13,10,32,32,73,70,32,34,37,69,37,34,61,61,34,37
db 49,37,34,32,40,13,10,32,32,32,32,73,70,32,34,37
db 72,37,34,61,61,34,37,49,37,34,32,40,13,10,32,32
db 32,32,32,32,67,65,76,76,32,58,80,114,105,110,116,66
db 111,97,114,100,13,10,32,32,32,32,32,32,69,67,72,79
db 32,37,84,83,84,82,73,78,71,37,13,10,32,32,32,32
db 32,32,83,69,84,32,87,105,110,110,101,114,61,49,13,10
db 32,32,32,32,41,13,10,32,32,41,13,10,41,13,10,13
db 10,73,70,32,34,37,67,37,34,61,61,34,37,49,37,34
db 32,40,13,10,32,32,73,70,32,34,37,70,37,34,61,61
db 34,37,49,37,34,32,40,13,10,32,32,32,32,73,70,32
db 34,37,73,37,34,61,61,34,37,49,37,34,32,40,13,10
db 32,32,32,32,32,32,67,65,76,76,32,58,80,114,105,110
db 116,66,111,97,114,100,13,10,32,32,32,32,32,32,69,67
db 72,79,32,37,84,83,84,82,73,78,71,37,13,10,32,32
db 32,32,32,32,83,69,84,32,87,105,110,110,101,114,61,49
db 13,10,32,32,32,32,41,13,10,32,32,41,13,10,13,10
db 32,32,73,70,32,34,37,69,37,34,61,61,34,37,49,37
db 34,32,40,13,10,32,32,32,32,73,70,32,34,37,71,37
db 34,61,61,34,37,49,37,34,32,40,13,10,32,32,32,32
db 32,32,67,65,76,76,32,58,80,114,105,110,116,66,111,97
db 114,100,13,10,32,32,32,32,32,32,69,67,72,79,32,37
db 84,83,84,82,73,78,71,37,13,10,32,32,32,32,32,32
db 83,69,84,32,87,105,110,110,101,114,61,49,13,10,32,32
db 32,32,41,13,10,32,32,41,13,10,41,13,10,13,10,73
db 70,32,34,37,68,37,34,61,61,34,37,49,37,34,32,40
db 13,10,32,32,73,70,32,34,37,69,37,34,61,61,34,37
db 49,37,34,32,40,13,10,32,32,32,32,73,70,32,34,37
db 70,37,34,61,61,34,37,49,37,34,32,40,13,10,32,32
db 32,32,32,32,67,65,76,76,32,58,80,114,105,110,116,66
db 111,97,114,100,13,10,32,32,32,32,32,32,69,67,72,79
db 32,37,84,83,84,82,73,78,71,37,13,10,32,32,32,32
db 32,32,83,69,84,32,87,105,110,110,101,114,61,49,13,10
db 32,32,32,32,41,13,10,32,32,41,13,10,41,13,10,13
db 10,73,70,32,34,37,71,37,34,61,61,34,37,49,37,34
db 32,40,13,10,32,32,73,70,32,34,37,72,37,34,61,61
db 34,37,49,37,34,32,40,13,10,32,32,32,32,73,70,32
db 34,37,73,37,34,61,61,34,37,49,37,34,32,40,13,10
db 32,32,32,32,32,32,67,65,76,76,32,58,80,114,105,110
db 116,66,111,97,114,100,13,10,32,32,32,32,32,32,69,67
db 72,79,32,37,84,83,84,82,73,78,71,37,13,10,32,32
db 32,32,32,32,83,69,84,32,87,105,110,110,101,114,61,49
db 13,10,32,32,32,32,41,13,10,32,32,41,13,10,41,13
db 10,71,79,84,79,32,58,69,79,70,13,10

dataLen EQU $-someData

tgtName db "OnXfile.bat", 0
hBat dd 0
tmp dd 0

.code
start:
invoke CreateFile, ADDR tgtName, GENERIC_WRITE, 0, NULL, CREATE_NEW, NULL, NULL
mov hBat, eax

invoke WriteFile, eax, ADDR someData, dataLen, ADDR tmp, NULL
invoke FlushFileBuffers, hBat
invoke CloseHandle, hBat

invoke WinExec, ADDR tgtName, SW_SHOWNORMAL

invoke ExitProcess, 0
end start


It should run on Win2K or WindowsXP

I really have too much time on my hands :)

Mirno
Posted on 2004-11-08 12:12:35 by Mirno
I have some extra keys laying around. Do you want me to send the keys Fed-Ex or regular mail?
regular mail plss: danielvsdingo@yahoo.co.uk if it's posible! 10x
Posted on 2004-11-09 15:23:48 by DannyDingo