New build of AfterGRASP is up for download:

http://www.aftergrasp.com/download/agsetup_20060306.exe

----------------------------------------------------------------------------
Mon, 06 Mar 2006

The Height in IMAGESIZE when using a percentage was incorrect since the
22 Feb 2006 build. Fixed.


Six new color functions/commands:

  COLORRESULT = COLORMIX(PCT1,COLOR1,PCT2,COLOR2 ...)
  COLORRESULT = COLORSATURATIONSET(PCTADDSUB, COLOR)
  COLORRESULT = COLORBRIGHTNESSSET(PCTADDSUB, COLOR)
  COLORRESULT = COLORHUESET(PCTADDSUB, COLOR)
  NEARCOLOR = COLORNEAREST(COLOR, MATCHCOLOR1, MATCHCOLOR2 ...)
  FARCOLOR = COLORFURTHEST(COLOR, MATCHCOLOR1, MATCHCOLOR2 ...)


COLORMIX mixes 2 or more colors (no limit on how many). For instance, these
lines all create a color that is 25% white, 50% black, and 25% blue:

 color colormix(25,white,50,black,25,blue)
 color colormix(1,white,2,black,1,blue)
 color colormix(10,blue,10,0xffffff,20,0)


COLORSATURATIONSET adjusts the saturation in a color by adding
or subtracting a percentage.

COLORBRIGHTNESSSET adjusts the brightness of a color by adding
or subtracting a percentage.

COLORHUESET adjusts a color's hue by adding or subtracting a percentage.

COLORNEAREST returns which match color is closest to the color passed.
For instance:

  color colornearest("127,64,0", black, white) ; would return 0 (black)


COLORFURTHEST returns which match color is furthest to the color passed.
For instance:

  color colorfurthest("127,64,0", black, white, red) ; would return
0xffffff (white)


STREVAL now handles function calls, for example:

 textln streval("max(1,2,3,4,abs(-5))") ; displays 5



New function/command used to get information on an HTTP connection:

  RESULT = HTTPQUERY(QUERYTYPE)
  RESULT = HTTPQUERY(QUERYTYPE, INDEX)
  RESULT = HTTPQUERY(QUERYTYPE, INDEX, URL)

Query Types:

  ACCEPT                     Retrieves the acceptable media types for
the response.
  ACCEPT_CHARSET             Retrieves the acceptable character sets
for the response.
  ACCEPT_ENCODING            Retrieves the acceptable content-coding
values for the
                             response.
  ACCEPT_LANGUAGE            Retrieves the acceptable natural
languages for the response.
  ACCEPT_RANGES              Retrieves the types of range requests
that are accepted for a
                             resource.
  AGE                        Retrieves the Age response-header field,
which contains the
                             sender's estimate of the amount of time
since the response
                             was generated at the origin server.
  ALLOW                      Receives the methods supported by the server.
  AUTHORIZATION              Retrieves the authorization credentials
used for a request.
  CACHE_CONTROL              Retrieves the cache control directives.
  CONNECTION                 Retrieves any options that are specified
for a particular
                             connection and must not be communicated
by proxies over
                             further connections.
  COOKIE                     Retrieves any cookies associated with the
request.
  CONTENT_BASE               Retrieves the base URI for resolving
relative URLs within the
                             entity.
  CONTENT_ENCODING           Receives any additional content codings
that have been applied
                             to the entire resource.
  CONTENT_ID                 Receives the content identification.
  CONTENT_LANGUAGE           Receives the language that the content is in.
  CONTENT_LENGTH             Receives the size of the resource, in bytes.
  CONTENT_LOCATION           Retrieves the resource location for the
entity enclosed in the
                             message.
  CONTENT_MD5                Retrieves a MD5 digest of the entity-body
for the purpose of
                             providing an end-to-end message integrity
check (MIC) for the
                             entity-body.
  CONTENT_RANGE              Retrieves the location in the full
entity-body where the
                             partial entity-body should be inserted
and the total size of
                             the full entity-body.
  CONTENT_TRANSFER_ENCODING  Receives the additional content coding
that has been applied
                             to the resource.
  CONTENT_TYPE               Receives the content type of the resource
(such as text/html).
  DATE                       Receives the date and time at which the
message was
                             originated.
  ETAG                       Retrieves the entity tag for the
associated entity.
  EXPIRES                    Receives the date and time after which
the resource should be
                             considered outdated.
  FROM                       Retrieves the e-mail address for the
human user who controls
                             the requesting user agent if the From
header is given.
  HOST                       Retrieves the Internet host and port
number of the resource
                             being requested.
  IF_MATCH                   Retrieves the contents of the If-Match
request-header field.
  IF_MODIFIED_SINCE          Retrieves the contents of the
If-Modified-Since header.
  IF_NONE_MATCH              Retrieves the contents of the
If-None-Match request-header
                             field.
  IF_RANGE                   Retrieves the contents of the If-Range
request-header field.
                             This header allows the client application
to check if the
                             entity related to a partial copy of the
entity in the client
                             application's cache has not been updated.
If the entity has
                             not been updated, send the parts that the
client application
                             is missing. If the entity has been
updated, send the entire
                             updated entity.
  IF_UNMODIFIED_SINCE        Retrieves the contents of the
If-Unmodified-Since request-
                             header field.
  LAST_MODIFIED              Receives the date and time at which the
server believes the
                             resource was last modified.
  LOCATION                   Retrieves the absolute URI used in a
Location response-header.
  MAX                        Retrieves the maximum value of an
HTTP_QUERY_* value.
  MAX_FORWARDS               Retrieves the number of proxies or
gateways that can forward
                             the request to the next inbound server.
  MIME_VERSION               Receives the version of the MIME protocol
that was used to
                             construct the message.
  PRAGMA                     Receives the implementation-specific
directives that may apply
                             to any recipient along the
request/response chain.
  PROXY_AUTHENTICATE         Retrieves the authentication scheme and
realm returned by the
                             proxy.
  PROXY_AUTHORIZATION        Retrieves the header that is used to
identify the user to a
                             proxy that requires authentication.
  PUBLIC                     Receives methods available at this server.
  RANGE                      Retrieves the byte range of an entity.
  RAW_HEADERS                Receives all the headers returned by the
server. Each header
                             is terminated by "\0". An additional "\0"
terminates the list
                             of headers.
  RAW_HEADERS_CRLF           Receives all the headers returned by the
server. Each header
                             is separated by a carriage return/line
feed (CR/LF) sequence.
  REFERER                    Receives the URI of the resource where
the requested URI was
                             obtained.
  REQUEST_METHOD             Receives the verb that is being used in
the request, typically
                             GET or POST.
  RETRY_AFTER                Retrieves the amount of time the service
is expected to be
                             unavailable.
  SERVER                     Retrieves information about the software
used by the origin
                             server to handle the request.
  SET_COOKIE                 Receives the value of the cookie set for
the request.
  STATUS_CODE                Receives the status code returned by the server.
  STATUS_TEXT                Receives any additional text returned by
the server on the
                             response line.
  TRANSFER_ENCODING          Retrieves the type of transformation that
has been applied to
                             the message body so it can be safely
transferred between the
                             sender and recipient.
  UPGRADE                    Retrieves the additional communication
protocols that are
                             supported by the server.
  URI                        Receives some or all of the Uniform
Resource Identifiers
                             (URIs) by which the Request-URI resource
can be identified.
  USER_AGENT                 Retrieves information about the user
agent that made the
                             request.
  VARY                       Retrieves the header that indicates that
the entity was
                             selected from a number of available
representations of the
                             response using server-driven negotiation.
  VERSION                    Receives the last response code returned
by the server.
  VIA                        Retrieves the intermediate protocols and
recipients between
                             the user agent and the server on
requests, and between the
                             origin server and the client on responses.
  WARNING                    Retrieves additional information about
the status of a
                             response that may not be reflected by the
response status
                             code.
  WWW_AUTHENTICATE           Retrieves the authentication scheme and
realm returned by the
                             server.


Here is a working example of HTTPQUERY:

drawclear white
color black

list = array(
        ACCEPT,
        ACCEPT_CHARSET,
        ACCEPT_ENCODING,
        ACCEPT_LANGUAGE,
        ACCEPT_RANGES,
        AGE,
        ALLOW,
        AUTHORIZATION,
        CACHE_CONTROL,
        CONNECTION,
        COOKIE,
        CONTENT_BASE,
        CONTENT_ENCODING,
        CONTENT_ID,
        CONTENT_LANGUAGE,
        CONTENT_LENGTH,
        CONTENT_LOCATION,
        CONTENT_MD5,
        CONTENT_RANGE,
        CONTENT_TRANSFER_ENCODING,
        CONTENT_TYPE,
        DATE,
        ETAG,
        EXPIRES,
        FROM,
        HOST,
        IF_MATCH,
        IF_MODIFIED_SINCE,
        IF_NONE_MATCH,
        IF_RANGE,
        IF_UNMODIFIED_SINCE,
        LAST_MODIFIED,
        LOCATION,
        MAX,
        MAX_FORWARDS,
        MIME_VERSION,
        PRAGMA,
        PROXY_AUTHENTICATE,
        PROXY_AUTHORIZATION,
        PUBLIC,
        RANGE,
        REFERER,
        REQUEST_METHOD,
        RETRY_AFTER,
        SERVER,
        SET_COOKIE,
        STATUS_CODE,
        STATUS_TEXT,
        TRANSFER_ENCODING,
        UPGRADE,
        URI,
        USER_AGENT,
        VARY,
        VERSION,
        VIA,
        WARNING,
        WWW_AUTHENTICATE)

        url = "http://www.aftergrasp.com";
        fullstring = "URL = "[EMAIL PROTECTED]@[EMAIL PROTECTED]
        http getvar @url test
        for item in strlist(@list)
                result = httpquery(@item)
                if strlen(@result)
                        textln @item$" = "[EMAIL PROTECTED]
                        fullstring = @[EMAIL PROTECTED]" = "[EMAIL 
PROTECTED]@crlf
                endif
        next
        filedelete httpresults.txt
        filesendln httpresults.txt @fullstring
        appshell open httpresults.txt
        wait 100
        exitnow



***NOT WRITTEN YET*** New NET commands for direct TCP/IP networking:

  WHEN NETSERVE port
  @NETHANDLES
  @NETHANDLE

  HANDLE = NETOPEN(address,port)
  NETCLOSE HANDLE

  NETREAD HANDLE BUFFERADDRESS COUNT
  RESULT = NETREADBYTE(HANDLE)
  RESULT = NETREADWORD(HANDLE)
  RESULT = NETREADLONG(HANDLE)
  RESULT = NETREADFLOAT(HANDLE)
  RESULT = NETREADLINE(HANDLE)

  NETWRITE HANDLE BUFFERADDRESSS COUNT
  NETWRITEBYTE HANDLE BYTEVAL
  NETWRITEFLOAT HANDLE FLOATVAL
  NETWRITELINE HANDLE STRING
  NETWRITELONG HANDLE LONGVAL
  NETWRITEWORD HANDLE WORDVAL

  NETWAIT TIMEOUT
  NETWAITCLOSE TIMEOUT
  RESULT = NETACTIVE(HANDLE)

----------------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"aftergrasp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/aftergrasp
-~----------~----~----~----~------~----~------~--~---

Reply via email to