most useless program in the world made by me

most useless program in the world made by me

General — Page [1]
SRAW
Rocket Man

2007 Nov 6 • 2525
601 ₧
http://www.megaupload.com/?d=DU5DDREF

u can download it from here, and dont worry no viruses
it is basically some really stupid game in which you can control merlin(image from system dir) and click on him

source code included! also has a console!!!(press `)
also is multi-liguile(however you spell it) with up to 10 languages! in fact, the ini file reading takes up 3/4 of the source code!! it could all have been prevented by using arrays!!!
Free Steam Games
 
 
 
2010 Jan 19 at 09:05 UTC
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Well if it comes with source code why not? What language is it written in?


Ahh, Autoit3. At least its not Python.
You should have included the merlin pic in a resource file.
Who wants to send me the Merlin pic thingy...
AutoIt code
if FileExists(@SystemDir & "\oobe\images\merlin.gif") = 0 Then msgbox(0,"Error","Cannot locate @SystemDir & ''\oobe\images\merlin.gif'' -- exiting") Exit Endif
 
 
 
2010 Jan 19 at 17:59 UTC — Ed. 2010 Jan 19 at 18:09 UTC
SRAW
Rocket Man

2007 Nov 6 • 2525
601 ₧


thats the one
Free Steam Games
 
 
 
2010 Jan 20 at 06:38 UTC
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Thank you. I have to work an my av program now, but I will test your program/game out and respond back later.
 
 
 
2010 Jan 20 at 07:28 UTC
SRAW
Rocket Man

2007 Nov 6 • 2525
601 ₧
if the pic doesnt work, its probably cause its to big, it has to be 50x50


sprinkles, i have actually updated it a little, so it draws a line behind it when it moves and has a new functions.. exit!, pen up and pen down..

i do also assume u have the autoit interpreter/compiler/autoit installed anyway
after the includes, add the line
code
$pen = false


then after that
code
func pen() if $console = false Then if $pen = false Then ToolTip("Pen down!") sleep(500) tooltip("") $pen = true Else tooltip("Pen up!") sleep(500) ToolTip("") $pen = False EndIf EndIf EndFunc HotKeySet("+!d","pen") Func drawpix($dc,$x,$y,$color) DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color) EndFunc Func pict($x,$y) $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", "") drawpix($dc,$x+25,$y+25,0x000000FF) DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0]) EndFunc


Note that pressing alt+shift+d will toggle the pen thing

then look for
code
func ifunc($func)


add in it
code
if $func = "pen down" Then $pen = True _GUICtrlEdit_InsertText($conout,@crlf & "Pen down!") EndIf if $func = "pen up" Then $pen = false _GUICtrlEdit_InsertText($conout,@crlf & "Pen up!") EndIf if $func = "exit" Then Exit EndIf


then move all the way down to the while 1 loop
add at the start
code
if $pen = true Then pict($picpos[0],$picpos[1]) EndIf


that is all to have a turtle graphics clone
Free Steam Games
 
 
 
2010 Jan 20 at 08:40 UTC — Ed. 2010 Jan 20 at 08:41 UTC
Page [1]