11 Years of Service
51%
[HIDE-THANKS]I will take as a basis platform DENWER. So, AutoIt, we will use as a CGI.
Install Denwer (will not describe the installation process). I chose the default path: C: \ WebServers (you it may be different), go to the folder where you installed AutoIt (usually: C: \ Program Files \ AutoIt3). Next, copy the file and folder AutoIt3.exe Include, then go here: C: \ WebServers \ usr \ local (do not forget that you have a way to Denver may be different), and create a folder autoit3, and insert our created folder copied files.
If you are currently included Denver, be sure to turn it off.
Server AutoIt script is slightly different from a simple script. First Directive:
This line should be the first because, thanks to this line of Apache determines the path to the interpreter.
Next, we have to get into the console (STDOUT stream) Mime type of content. Output to the console using the function:
because we will display a normal html text encoding WINDOWS-1251, we specify as follows:
At the beginning of each end of the script of the server should be two lines:
And save the script file on the path: C: \ WebServers \ home \ cgi-glob \ test.au3
Run Denver, and go here:
As you can see hatched, our line:
If you could do it, then I congratulate you, you've written a server-side script to AutoIt!
[/HIDE-THANKS]
Install Denwer (will not describe the installation process). I chose the default path: C: \ WebServers (you it may be different), go to the folder where you installed AutoIt (usually: C: \ Program Files \ AutoIt3). Next, copy the file and folder AutoIt3.exe Include, then go here: C: \ WebServers \ usr \ local (do not forget that you have a way to Denver may be different), and create a folder autoit3, and insert our created folder copied files.
If you are currently included Denver, be sure to turn it off.
Server AutoIt script is slightly different from a simple script. First Directive:
Code:
>#!/usr/local/autoit3/autoit3
Next, we have to get into the console (STDOUT stream) Mime type of content. Output to the console using the function:
Code:
>ConsoleWrite()
Code:
>ConsoleWrite("Content-Type: text/html; charset=WINDOWS-1251"&@CRLF&@CRLF)
Code:
>#!/usr/local/autoit3/autoit3
ConsoleWrite("Content-Type: text/html; charset=WINDOWS-1251"&@CRLF&@CRLF);
ConsoleWrite("Hello from AutoIt");
Run Denver, and go here:
This link is hidden for visitors. Please Log in or register now.
As you can see hatched, our line:
Code:
>Hello from AutoIt
[/HIDE-THANKS]
Last edited by a moderator: