Ham62

GetPutTest.bas

Jan 19th, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include once "FastConsole.bas"
  2.  
  3. Dim Shared as uByte ptr pConsole
  4. Randomize Timer
  5.  
  6. pConsole = Cast(uByte Ptr, pCon.Create())
  7. If pConsole = 0 Then
  8.     MessageBox(0, "Failed to create console!", null, MB_ICONERROR)
  9.     End
  10. End If
  11.  
  12. pCon.ClearCon(&H0F)
  13.  
  14. var NewImg = pCon.CreateImage(10, 10)
  15. pCon.DrawRect(10, 10, 10, 10, &H1C, 12)
  16. pCon.GetGFX(10, 10, NewImg)
  17. pCon.PutGFX(1, 1, NewImg)
  18. pCon.Update()
  19.  
  20. Sleep: System
Add Comment
Please, Sign In to add comment