Features | Community | Download | Full Version

Username
Password


Forgot your Login?
Register Now...


Search in Forum

Search in FAQs

Find User

    

  Register now!

If you have received an Instant.EXE webcode enter it here.

Internet PlugIn


Internet PlugIn


The Internet PlugIn realizes higher level network functions than the Network PlugIn: you can easily use it to communicate with servers using the HTTP and the FTP protocol.

As opposed to the Network PlugIn, you are limited to these to protocols, but you can realize functions such as connecting to a server and downloading a file with only one command!

You really don't need any prior knowledge in network programming to use this PlugIn, but you should know Instant.EXE at least to the level of the beginner's guide.

As a network administrator, for example, it should be fairly easy to create a custom backup tool that saves data to a remote FTP server within minutes, but possibilities range from there to custom download managers and the like!

| Download | Purchase | Database-PlugIn | Network PlugIn

To demonstrate how easy the usage of the Internet PlugIn really is, here is an example of how to get the HTML code of a webpage with only two Internet PlugIn commands. Well, the whole script has a couple of lines of code, but these are used to build the GUI of the script.

I will not explain the section at the beginning of the script (creating the window) any further at this point. The subroutine that is executed when the button is clicked (:: iX_Display_Control(btnGetSrc)) is the interesting part. The internet-command creates a connection to the server the user entered and gets the HTML of the specified file (usually index.html, if none is entered) into the variable, all in ONE command!

To have a nicely formatted output of the text, the "modify text"-command is used to convert the newline (ASCII 10) to the Instant.EXE 3.0 newline character (^M). Next thing to do is write the HTML code from the variable to the label in the window. Finally, the HTTP connection is closed. Since we only have one connection at the time in this little script, we would get along fine without doing this, but for the sake of clean programming you should get used to closing the connection anyways.

*** Create display window, display controls and wait for user interaction
Display Window 'Get HTML source' (ID='', X=31, Y=31, B=150, H=80, Max. enabled, Inner size)
Display Control Label: 'URL:' (ID='lblURL', X=5, Y=3, B=9, H=4)
Display Control Input: 'http://' (ID='inpURL', X=17, Y=2, B=68, H=5)
Display Control 'Get page source' (ID='btnGetSrc', X=88, Y=1, B=60, H=7)
Display Control Input: (ID='inpPageSrc', X=5, Y=10, B=143, H=66, multiline, Slider)
Wait infinite...

:: iX_Display_Control(btnGetSrc)
*** Create connection and save data to variable
Internet in [PageSource]: (URL '[iX.Display().Control(inpURL).Text]', get file)
*** Replace newline character with Instant.EXE 3.0 newline (^M)
Modify text '[PageSource]' into [PageSource] (Search for '[ix.ASCII 10]', Replace with '^M')
*** Display page source HTML
Set in [iX.Display().Control(inpPageSrc).Text]: '[PageSource]'
*** Close connection
Internet in [Result]: (close connection)
Return


**iX20127F A74FF0MQlD cmVhdGUgZG lzcGxheSB3 aW5kb3csIG Rpc3BsYXkg Y29udHJvbH MgYW5kIHdh aXQgZm9yIH VzZXIgaW50 ZXJhY3Rpb2 4JMA0KMzkJ R2V0IEhUTU wgc291cmNl fEcnJ1gnMz EnWSczMSdX JzE1MCdIJz gwJ0FFCTAN CjM4CVVSTD p8SSdsYmxV UkwnWCc1J1 knMydXJzkn SCc0J0wJMA 0KMzgJaHR0 cDovL3xJJ2 lucFVSTCdY JzE3J1knMi dXJzY4J0gn NSdUCTANCj M4CUdldCBw YWdlIHNvdX JjZXxJJ2J0 bkdldFNyYy dYJzg4J1kn MSdXJzYwJ0 gnNycJMA0K MzgJfEknaW 5wUGFnZVNy YydYJzUnWS cxMCdXJzE0 MydIJzY2J1 RNUwkwDQoz MQlFCTANCj AJCTANCjE5 CWlYX0Rpc3 BsYXlfQ29u dHJvbChidG 5HZXRTcmMp CTANCjEJQ3 JlYXRlIGNv bm5lY3Rpb2 4gYW5kIHNh dmUgZGF0YS B0byB2YXJp YWJsZQkwDQ o2MAlQYWdl U291cmNlPV UnW2lYLkRp c3BsYXkuQ2 9udHJvbChp bnBVUkwpLl RleHRdJ0cJ MA0KMQlSZX BsYWNlIG5l d2xpbmUgY2 hhcmFjdGVy IHdpdGggaV gzIG5ld2xp bmUgKF5NKQ kwDQo3CVBh Z2VTb3VyY2 U9W1BhZ2VT b3VyY2VdfE QnW2l4LkFT Q0lJIDEwXS dFJ15NJ0wJ MA0KMQlEaX NwbGF5IHBh Z2Ugc291cm NlIEhUTUwJ MA0KMjIJaV guRGlzcGxh eS5Db250cm 9sKGlucFBh Z2VTcmMpLl RleHQ9W1Bh Z2VTb3VyY2 VdfAkwDQox CUNsb3NlIG Nvbm5lY3Rp b24JMA0KNj AJUmVzdWx0 PUMJMA0KND UJCTANCg== =*




         Contact | Copyright © 2006 XELERATE Software, Inc. All rights reserved.