Sign in to follow this  
Followers 0
BillLuvsU

Integrating HTML websites with AutoIt

22 posts in this topic

Ok, I'm sure this topic has been beaten to death somewhere but all the topics I found assume you know how this stuff works already. The most I've ever done with websites is make them in Dreamweaver or frontpage and post em on geaocities. My friend is letting me turn his comp into a server and I'm going to use abyss. Now I've used abyss for local servers and the like but never for a web server. My impression is that you just start the server and then you can get to it by going to the IP address in a browser over the internet. Is this correct? Also my goal is to create an online compiler so I can develop from school as my home comp is usually MIA. I'm going to make it similer to this one but with more functionality. Now, how would one create a website that interacts with the autoit program, such as sending what's in an input box as a parameter to it or somthing. Is the autoit program running continually while the server is going or is it called on like a function? I would really appreciate maybe a small example HTML code with a small example AutoIt code. Thankyou very much in advance and sorry if I don't reply immediatly as school is about to start and lunch is four periods away. :whistle:


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites



Ummm, what are MySQL and PHP? I've heard of them but I am not sure exactly what they are.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

Lol, remember, I'm working off a school computer. They blocked google cause people were looking up porn on it and I didn't think to ask SpyroRocks. But I was think I get it now. Do you inbed the AutoIt Code in the website like you would with Java? Cause I was looking at some UDFs and thats kinda what it looks like. I think I could figure it out if thats all it is.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

Tell me about it >_> Makes it so hard to do research, but am I right about embedding the autoit into the html like with javascript?


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

I'm not sure Javascript, but possibly for a layout etc. I would expect .asp/.php

I tried opening the page, but IE says the page is unable to display

If you try looking at the source code from the page, you should be able to determine what language it was made in.

Btw, when you start making it and have figured it out. Could you try to get most UDF's and a bigger area for code?

Share this post


Link to post
Share on other sites

Hmm sure. But I cant look at the source for web pages either =[


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

hmm I'd appreciate it. If you could just post the source here I'd be very thankful.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

That compiler was made with an HTML page running an Autoit Back-end. The HTML page sends POSTDATA to the Autoit script. The Autoit script silently runs the compiler in the background of the server computer and saves it to a temp file in the server directory. It then gives output to an HTML page which provides a Download link to the temporary file.

Did i confuse you at all? :whistle:

EDIT: I could write up an example but i re-formatted and now abyss stopped working :)

Edited by D-Generation X

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

I knew thats how it had be done but the thing I don't know how to do Is send the POSTDATA to the AutoIt script just give me an example of that and I'll be able to figure out the rest. =]

Edit:

Imma be gone for the weekend but please post how to do the POSTDATA thingy anyways and I'll look it up on Monday. Thanks a TON in advance!

Edited by fear1313

[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

(POSTDATA function by TheGuy0000)

Autoit Script (process.au3)

Global $Data = _Post("code")
MsgBox(0, "Test", "POSTDATA returned is "& &data) 

Func _Post($sVar)
    Local $varstring, $num, $vars, $var_array
    $varstring = $_POST_raw
    If Not StringInStr($varstring, $sVar&"=") Then Return ""
    $num = __StringFindOccurances($varstring, "=")
    Local $vars[$num+1]
    $vars = StringSplit ($varstring, "&")
    For $i=1 To $vars[0]
        $var_array = StringSplit ($vars[$i], "=")
        If $var_array[0] < 2 Then Return "error"
        If $var_array[1] = $sVar Then Return $var_array[2]
    Next
    Return ""
EndFunc

and the HTML page:

<HTML>
<head>
<title>Autoit and POSTDATA example</title>
</head>
<body>
<form action=process.au3 METHOD=POST>
<input type=input id=code />
<input type=submit />
</form>
</body>
</HTML>

whatever you typed in the input would appear in a messagebox on the server computer.

Also, you do have an Autoit interpreter on your web server? that will be required.

Share this post


Link to post
Share on other sites

Ok, where did the $_POST_raw come from? Don't see it anywhere else.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

T~T So confused. Imma just go ask my programming teacher. lol.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

Quick question, does the person viewing my server have to have autoit too?

Share this post


Link to post
Share on other sites

That could be malicious couldn't it.

Share this post


Link to post
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
Sign in to follow this  
Followers 0