dexxa 0 Posted March 16, 2005 hello. i am trying to make a card game i stole the codes from a previous post by larry i think. thank you expandcollapse popup#include <GUIconstants.au3> $carddistance=15 $cardcode=0 $i=0 $height = 0 $cardhandle = DLLOpen("cards.dll") $winhandle = GUICreate("What do you prefer?",1100,700) GUISetState() $hdc = DllCall("user32.dll","int","GetDC","hwnd",$winhandle) $hdc = $hdc[0] DLLCall($cardhandle,"int","cdtInit","int_ptr",0,"int_ptr",0) For $i = 0 To 12 $cardcode = Random(0,51,1) DLLCall($cardhandle,"int","cdtDraw","int",$hdc,"int", $carddistance*$i,"int", $height,"int", $cardcode,"int",0,"int", 0) sleep(1) Next DLLCall($cardhandle,"none","cdtTerm") DLLClose($cardhandle) DLLCall("user32.dll","int","ReleaseDC","hwnd",$winhandle,"int",$hdc) While 1 $msg = Guigetmsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect Wend a few questions: 1. what does getdc do? 2.i want to make this an online card game so that i can play with my few friends. its like i host the game then i give them my ip so they can connect to me. how do i do that? i know this probably will be hard and my coding skill is crappy, but can u just give me some help? thx!! Share this post Link to post Share on other sites
zcoacoaz 0 Posted March 16, 2005 1. i don't know. 2. You need to learn how to use au3xtra.dll search the forums. [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Share this post Link to post Share on other sites
dexxa 0 Posted March 16, 2005 thx. one more question. after i generated the cards, if i switch to another window then switch back to the card game window. the cards are all gone. why is that? Share this post Link to post Share on other sites
dexxa 0 Posted March 16, 2005 replying to bring thread up........ questions above...... plz help............. Share this post Link to post Share on other sites