Advertisement
Guest User

Gambas Process Event

a guest
Oct 30th, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.40 KB | None | 0 0
  1. ' Gambas class file
  2.  
  3. PUBLIC SUB _new()
  4.  
  5.     Descargar()
  6. END
  7.  
  8. PRIVATE SUB Descargar()
  9.   DIM hProceso AS Process
  10.  
  11.   hProceso = EXEC ["wget", "www.google.com", "-O-", "--directory-prefix=" & User.Home] FOR READ
  12.  
  13. END
  14.  
  15.  
  16. PUBLIC SUB Process_Kill()
  17.  
  18.   PRINT "Finished"
  19.  
  20. END
  21.  
  22. PUBLIC SUB Process_Read()
  23.  
  24.   DIM sString AS String
  25.  
  26.   READ #LAST, sString, -256
  27.  
  28.   PRINT sString
  29.  
  30. END
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement