Christmas is near ... so here is a little XMas Game.
http://www.weltenkonstrukteur.de/dlsys.php?prdnr=07
[Thanks to LarsG, Paul, WolfgangS and Karbon for help

guess who is...benny wrote:@dontemail: nahh .. i am not cheating![]()
Code: Select all
If OpenWindow(0, 0, 0, 100, 70, #PB_Window_SystemMenu|#PB_Window_Screencentered, "Cheat :)")
If CreateGadgetList(WindowID())
ButtonGadget(0, 10, 10, 80, 20, "Run Game")
ButtonGadget(1, 10, 40, 80, 20, "Score +1000")
Repeat
Event = WaitWindowEvent()
If Event = #PB_EventGadget
Select EventGadgetID()
Case 0
file$ = OpenFileRequester("Run Game...", "", "Executables|*.exe",0)
If file$ <> ""
hProcess = RunProgram(file$)
tick = gettickcount_()
Repeat
window = FindWindow_(0, "Weihnachtsmann-Polonese - (c) Y2K3 by benny / weltenkonstrukteur.de")
Delay(1)
Until window Or gettickcount_() > tick+2000
If window
GetWindowRect_(window, @Rect.RECT)
MoveWindow(Rect\right, Rect\top)
EndIf
EndIf
Case 1
ReadProcessMemory_(hProcess, 4244028, @Score.l, 4, 0)
Score + 1000
WriteProcessMemory_(hProcess, 4244028, @Score, 4, 0)
EndSelect
EndIf
Until Event = #PB_EventCloseWindow
EndIf
EndIf
End
Yes i checked it, Verdana is on my computer installed. must be another problem.benny wrote:... i am using the verdana font. Do you have it installed?
LOLfreak wrote:Nice game!
guess who is...benny wrote:@dontemail: nahh .. i am not cheating![]()
![]()
Code: Select all
If OpenWindow(0, 0, 0, 100, 70, #PB_Window_SystemMenu|#PB_Window_Screencentered, "Cheat :)") If CreateGadgetList(WindowID()) ButtonGadget(0, 10, 10, 80, 20, "Run Game") ButtonGadget(1, 10, 40, 80, 20, "Score +1000") Repeat Event = WaitWindowEvent() If Event = #PB_EventGadget Select EventGadgetID() Case 0 file$ = OpenFileRequester("Run Game...", "", "Executables|*.exe",0) If file$ <> "" hProcess = RunProgram(file$) tick = gettickcount_() Repeat window = FindWindow_(0, "Weihnachtsmann-Polonese - (c) Y2K3 by benny / weltenkonstrukteur.de") Delay(1) Until window Or gettickcount_() > tick+2000 If window GetWindowRect_(window, @Rect.RECT) MoveWindow(Rect\right, Rect\top) EndIf EndIf Case 1 ReadProcessMemory_(hProcess, 4244028, @Score.l, 4, 0) Score + 1000 WriteProcessMemory_(hProcess, 4244028, @Score, 4, 0) EndSelect EndIf Until Event = #PB_EventCloseWindow EndIf EndIf End
![]()
![]()
![]()
![]()
![]()
![]()
(tested on win2k and winxp)
Timo