home *** CD-ROM | disk | FTP | other *** search
/ Univers Interactif 3 / INTERACTIF.BIN / pc / planeten / internet / hyperfin.ger / background_2669.xml < prev    next >
Extensible Markup Language  |  1993-12-30  |  7KB  |  108 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2669</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3713.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3251.css" />
  11.     <part>
  12.         <id>45</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <true /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>1</left>
  23.             <top>40</top>
  24.             <right>511</right>
  25.             <bottom>199</bottom>
  26.         </rect>
  27.         <style>scrolling</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Monaco</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>12</textHeight>
  40.         <name>Output</name>
  41.         <script>on mouseUpput the clickText into ClickedWordselect the clickChunkend mouseUp</script>
  42.     </part>
  43.     <part>
  44.         <id>113</id>
  45.         <type>button</type>
  46.         <visible> <true /> </visible>
  47.         <reserved5> 0 </reserved5>
  48.         <reserved4> 0 </reserved4>
  49.         <reserved3> 0 </reserved3>
  50.         <reserved2> 0 </reserved2>
  51.         <reserved1> 0 </reserved1>
  52.         <enabled> <true /> </enabled>
  53.         <rect>
  54.             <left>1</left>
  55.             <top>2</top>
  56.             <right>51</right>
  57.             <bottom>19</bottom>
  58.         </rect>
  59.         <style>rectangle</style>
  60.         <showName> <true /> </showName>
  61.         <highlight> <false /> </highlight>
  62.         <autoHighlight> <true /> </autoHighlight>
  63.         <sharedHighlight> <true /> </sharedHighlight>
  64.         <family>0</family>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>center</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>9</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <name>FingerΓǪ</name>
  72.         <script>-- FingerΓǪon mouseUpask "Finger what?"put it into whatif what is empty then exit mouseUpput empty into bg fld "Output"finger whatend mouseUp</script>
  73.     </part>
  74.     <part>
  75.         <id>114</id>
  76.         <type>button</type>
  77.         <visible> <true /> </visible>
  78.         <reserved5> 0 </reserved5>
  79.         <reserved4> 0 </reserved4>
  80.         <reserved3> 0 </reserved3>
  81.         <reserved2> 0 </reserved2>
  82.         <reserved1> 0 </reserved1>
  83.         <enabled> <true /> </enabled>
  84.         <rect>
  85.             <left>1</left>
  86.             <top>21</top>
  87.             <right>51</right>
  88.             <bottom>38</bottom>
  89.         </rect>
  90.         <style>rectangle</style>
  91.         <showName> <true /> </showName>
  92.         <highlight> <false /> </highlight>
  93.         <autoHighlight> <true /> </autoHighlight>
  94.         <sharedHighlight> <true /> </sharedHighlight>
  95.         <family>0</family>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>0</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Geneva</font>
  100.         <textSize>9</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <name>Copy</name>
  103.         <script>on mouseUpset cursor to busyset the lockScreen to trueset cursor to busyset the lockText of bkgnd fld "Output" to falseset cursor to busyclick at the loc of bkgnd fld "Output"set cursor to busyselect char 1 to 39999 of bkgnd fld "Output"set cursor to busydoMenu "Copy Text"set cursor to busyset the lockText of bkgnd fld "Output" to trueset cursor to busyset the lockScreen to falseend mouseUp</script>
  104.     </part>
  105.     <name>Main</name>
  106.     <script>-- HyperFinger (Pro?)-- Frank D Tito-- Thu 30 Dec 93-- I modified the original HyperFinger to learn how it worked.  In-- the process, I untangled and streamlined the code.  One no longer-- needs to be a codehead to understand it.  Enjoy.-- Please send comments and job offers to:-- ftito@dcseq.uscga.edu     until 1/15/93-- ftito@delphi.com-- HyperFinger original comments:-- -- HyperFinger-- -- September 1991 J. Michael Cherry (cherry@frodo.mgh.harvard.edu)-- ---- -- About 99% of the HyperTalk code in this stack is-- -- from HyperFTP by Douglas Hornig ┬⌐ 1990 Cornell University-- ---- -- The XCMDs and XFCNs used here are:-- -- TCPNameToAddr, TCPSend, TCPRecvUpTo, TCPState, TCPRelease, TCPClose,-- -- and TCPPassiveOpen by Harry Chesley ┬⌐ 1989 Apple Computer, Inc.-- ---- -- Any praise you have for this stack should go to Douglas Hornig and-- -- Harry Chesley.on closeStackglobal connectionID-- make sure TCP connection is closed properlyif connectionID is not emptythenTCPClose connectionIDTCPRelease connectionIDput empty into connectionIDend if-- if lots of free space in stack, compact stackif the freeSize of this stack ΓëÑ 40960thenput the userLevel into saveLevelif saveLevel < 3 then set the userLevel to 3send "doMenu Compact Stack" to HyperCardset the userLevel to saveLevelend ifend closeStackon sendLine textglobal connectionIDTCPSend connectionID, text & return & linefeedend sendLineon finger what, userglobal connectionID-- determine user and hostNameput char 1 to ( offset("@",what) -1 ) of what into userput char ( offset("@",what) +1 ) to length(what) of what into hostName-- check for legal nameif (hostName is empty) or (user is what)thenanswer "Please use the format user@host."exit fingerend if-- resolve host nameset cursor to busypromptoid "Finding IP address of" && hostName & "."get TCPNameToAddr(hostName)close window "Promptoid"if char 1 of it is "┬º"thenif it contains "couldn't open resource"thenanswer "MacTCP is not installed."elseanswer "Could not get IP address for" && hostName & "."end ifexit fingerend if-- open socket 79 for finger servicepromptoid "Opening finger serviceΓǪ"put TCPActiveOpen(item 1 of it, 79, 0) into connectionIDclose window "Promptoid"if connectionID contains "fail"thenanswer "Could not connect to" && hostName & ":" && connectionIDput empty into connectionIDexit fingerend if-- connection establishedpromptoid "Connection established.  Receiving information."-- clear fieldput empty into bkgnd field "Output"-- request finger usersendLine user && return-- receive finger informationrepeat foreverget TCPRecvUpTo(connectionID, linefeed, zero, empty)if it Γëá emptythenif char 1 of it is "┬º" then exit repeatif char (length of it) of it is linefeedthenput empty into char (length of it) of itend ifput it after bkgnd field "Output"set cursor to busyend ifend repeat-- close the connectionclose window "Promptoid"Promptoid "Closing connection."TCPClose connectionIDTCPRelease connectionIDput empty into connectionIDclose window "Promptoid"end finger</script>
  107. </background>
  108.