Jump to content

Web-based AutoIt! - New with AuCGI!


theguy0000
 Share

Recommended Posts

Execution time is horrible for having to execute 2 autoit exes in order to return a page.

Would be better if someone could make autoit somehow run in the background and take in code and execute it on the fly.

Link to comment
Share on other sites

What webserver are you using? If you use abyss, just set the interpreter as Autoit3.exe and it works fine with the Web-Based Au3 UDF's.

Ahhh yes i just tested this (again) and it works fine! But it didn't before.. probably i did a mistake..

ps: yes i have abyss with AutoIt3.exe as interpreter.

Link to comment
Share on other sites

Hello !

You may find http://shttpd.sourceforge.net/ very useful !

I've tested shttpd successfully with au3 exes (CGI way), works perfectly.

shttpd.exe can be executed "out of the box", the options can be given in command line or .ini file, or both.

It doesn't require any installation or such.

Currently I'm using it for file transfer between two distant au3 scripts, no more complicated tcpsend funcs :)

Regards,

Apzo.

Link to comment
Share on other sites

have you tried the web UDFs and they work??

Just start you code with

#include "Web.au3"

_StartWebApp(".....")

Compile your script, rename it to .cgi and place it where your shttpd.exe is (or wherever you told it its base root was) then call your script :

http://localhost/yourscript.cgi and you're all done.

the _Get and _Post funcs are working, I'll try RSS feeds later but I'm confident.

Apzo.

Link to comment
Share on other sites

@Apzo

Thanks very much for the contribution !!

Some time ago I have tried to get it running on TinyWeb which is as well a standalone EXE webserver. Which supports CGI.

But it was not successful. So I will definitely start using this.

regards

ptrex

Link to comment
Share on other sites

A tip for AuCGI:

Compile the script into exe allow server to execute the script without AutoIt installed on that machine, perhaps can allow faster execution.

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

Reupload Web.au3 kthx.

I'm sorry but Web.au3 (and AuCGI.exe) is on theguy0000 which (according to my signature) is down at the moment because I've been installing linux and having some problems...you're just going to have to be patient, or get it from another forum member. Sorry. Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

I'm sorry but Web.au3 (and AuCGI.exe) is on theguy0000 which (according to my signature) is down at the moment because I've been installing linux and having some problems...you're just going to have to be patient, or get it from another forum member. Sorry.

Thanks for the headsup :3

Note to self, Backup scripts.

Stupid XP had a failur, and I had to format.

D partition survived. I really should install AutoIt onto D..

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

K, Got it now. Found a copy.

Now, Anyone got a solution to the problem where, The page is loading, (looping), For example.

For $i = 1 to 100
ConsoleWrite($i)
NextoÝ÷ ØÚ0(ê'yÉh±ë-ì"Ú0¢¹Ú¾(µëÁ¬®­êZæÞ~Þ¶­±Ú'y8^±Êâ¦Ü"Yzîx§ëÞ^Ø^¥¨Ç%¢Ç|¢u欢xhÂÚaÂâáÚ½ëazÇ+^ض©j¢±Éh±çh¯Z¶z-l@ÈOöÓ+"²Ø^rZ,zËb½è(¶×§~Úªê-~,jºZºÚ"µÍÚ[ÛYH  ÕÙX]LÉÝÂÔÝÙX

BYÔÔÕ
    ][ÝÔQ ][ÝÊH ÉÝÈ  ][ÝÉ][ÝÈ[TØÙÜÐÛÜÙJÔÔÕ
    ][ÝÔQ ][ÝÊJBQ^][YÛÛÛÛUÜ]J  ][ÝÉÙÜHY]ÙIÌÎNÔÔÕ ÌÎNÈXÝ[ÛIÌÎNÝÝ]LÉÌÎNÉ][ÝÈ    [ÈÔBÛÛÛÛUÜ]J ][ÝÉÚ[]OIÌÎNÚY[ÌÎNÈ[YOIÌÎNÉ][ÝÈ   [È]]Ò]Q   [È ][ÝÉÌÎNÈ[YOIÌÎNÔQ   ÌÎNÉÝÉ][ÝÈ   [ÈÔBÛÛÛÛUÜ]J ][ÝÉÚ[]OIÌÎNÜÝXZ]    ÌÎNÉÝÉ][ÝÈ   [ÈÔBÛÛÛÛUÜ]J ][ÝÉËÙÜIÝÉ][ÝÈ [ÈÔBÜ    ÌÍÚHHHÈLTÛY
L
BPÛÛÛÛUÜ]J ÌÍÚH [È ][ÝÈ  ][ÝÊB^

Though, Its not very practical.

The person would HAVE to press the button, To end it.

I want it to automatically end, if they navigate away, or close the window.

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

That is not a very practical/"solid" solution.

why not this:

Global const $TimeOut = 30 ;How many seconds to wait before exiting script
adlibenable("_checktimeout", 100)

func _checktimeout()
;Auto timeout by Spyrorocks
if not isdeclared("__timeoutimer") then assign("__timeoutimer", timerinit(), 2)
if timerdiff($__timeoutimer) > $timeout*1000 then exit ;Terminate the script if timeout is reached
endfunc

Untested, but it should work. If the script runs longer than 30 seconds, it terminates itself.

Link to comment
Share on other sites

That is not a very practical/"solid" solution.

why not this:

Global const $TimeOut = 30 ;How many seconds to wait before exiting script
adlibenable("_checktimeout", 100)

func _checktimeout()
;Auto timeout by Spyrorocks
if not isdeclared("__timeoutimer") then assign("__timeoutimer", timerinit(), 2)
if timerdiff($__timeoutimer) > $timeout*1000 then exit ;Terminate the script if timeout is reached
endfunc

Untested, but it should work. If the script runs longer than 30 seconds, it terminates itself.

Yeah, Though that wont work for what I want to do.

Cause, if its looping until they close the window, theres no set time for when it should exit.

@Apzo || Thanks, Ill try that.

Now, one other question.

The script keeps exiting before the script is supposed to.

For example, Its on line X, its doing a httprequest, And half way through, the script will just close.

Nothing wrong with it, itll just close.

Maybe if there was something like, php with set_time_limit(0)

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

  • 1 month later...

okay is there any way to allow this to execute the file on the users computer, not the host, because i am running a web messenger and i want people to be able to use it via the website if they want

Spoiler

Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)-----------------------------------

 

Link to comment
Share on other sites

okay is there any way to allow this to execute the file on the users computer, not the host, because i am running a web messenger and i want people to be able to use it via the website if they want

That sounds way to malicious for me to even comment any further on.
Link to comment
Share on other sites

That sounds way to malicious for me to even comment any further on.

Definitely.

@Emoyasha:

I'm sure you don't mean to be harmful, but this functionality is way to dangerous (and difficult, prolly impossible) to implement.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...