Home | News | Products | Support | Download | Sales | library | Guests | Contact | WebCam | Links
CDS Logo LanBox-Talk mail archive
 

By date: Prev | Next | Index By thread: Prev | Next | Index

Subject[LCtalk] Commands (was: Layers)
FromIan Cattell
DateFri, 23 Jan 2004 04:01:37 +0100


At Tue, 20 Jan 2004 11:04:14 +0100, Fokko van Duin wrote:
The basic command is (you may remove the spaces in the string):

    put "56 01 0001 01#" into s -- 56=go, 01=eng A, 0001=list# 1, 01=step# 1
    SendCmd s, ""  -- asynchronous (no check, but much faster ;-)

I tried this command. Hypercard just sits there for a couple of seconds (actually freezing) then beeps and returns to normal. Is there something that I'm missing? Does it have anything to do with the SendCmd script in the stack?


on SendCmd  cmdstr, Sync
  global connected, prevcmd

  if not connected then
    put empty into prevcmd
    exit SendCmd
  end if

  if prevcmd <> empty then
    put CTBRecvUpTo(">",300) into s
    if (s contains "?") then
      beep --error
    end if
  end if

  if cmdstr is empty then
    exit SendCmd
  end if

  CTBSendString cmdstr
  if Sync <> empty then
    put CTBRecvUpTo(">",300) into s
    put empty into prevcmd
    if (s contains "?") then
      beep --error
    end if
  else
    put cmdstr into prevcmd
  end if

end SendCmd

By date: Prev | Next | Index By thread: Prev | Next | Index