RunProgram input

Everything else that doesn't fall into one of the other PB categories.
callroot
User
User
Posts: 64
Joined: Sat Mar 05, 2016 10:46 pm

RunProgram input

Post by callroot »

OpenConsole ()
Use RunProgram to call the FTP input "hnysc.com open" and then enter the account and password

Code: Select all


If OpenConsole()
  ConsoleTitle("1111111111111111")
  pc=RunProgram("FTP" ,"open hnysc.com", "",#PB_Program_Open)

 Input()
 EndIf



Did not find examples of who can help to write a
citystate
Enthusiast
Enthusiast
Posts: 638
Joined: Sun Feb 12, 2006 10:06 pm

Re: RunProgram input

Post by citystate »

perhaps something like this?

Code: Select all

If OpenConsole()
  ConsoleTitle("1111111111111111")
  pc=RunProgram("FTP" ,"", "",#PB_Program_Open|#PB_Program_Write)
  While ProgramRunning(pc)
    a$=Input()
    If LCase(a$)="end"
      CloseProgram(pc)
      Break
    ElseIf ProgramRunning(pc)
      WriteProgramStringN(pc,a$)
    Else
      Break
    EndIf
  Wend
  CloseConsole()
EndIf
there is no sig, only zuul (and the following disclaimer)

WARNING: may be talking out of his hat
Post Reply