Sign in to follow this  
Followers 0
BasicOs

Autoit Evolution - now au3 with PHP/ASP/COLFUSION

10 posts in this topic

#1 ·  Posted (edited)

WHY NOT, CODE MADE IN AHA (AUTOIT HYPERTEXT ACCESS) AN EVOLUTION STORY.

The link between dynamic internet and autoit.

Like the link between MAN and APE. :P

  • After Codemyster found the web access, and Theguy000 started some organized knowledge, I realized there was something missing, it was DATABASE management. I like all this more database oriented than what I have seen, because it is quite more powerful language AHA vs normal html.I TRYED an experiment with mysql, so I got cdkid UDF, for it. Then I mixed it all in a super powerful INTERNET DATABASE system. I made an intensive Autoit-Web-Database system AHA keeping all simple, for every days' work.

  • As AHA language I mean AHA Autoit-Udfs to work with Database dynamic WEB.

    We make something like PHP in Autoit. Please look this web what is php: http://en.wikipedia.org/wiki/Php

    Vs other Scripts like Gui.au3, Ie.au3,File.au3, but a change in 4 basic Concepts:

    1 Database handling

    2 Web Output vs Win32

    3 Running remote in server and php-like in Client

    4 Interpreted, No compiling (It could be possible with couple tricks) So the changes are deeper than what you have seen before in previous UDFS.

  • I loved so much the idea of throwing php (I dont like so many brackets, and millions of complex funcs, and my about 15 php-mysql books with thousands of pages to be read), that I realized I could make AHA, and I tryed to use Autoit at the same level that I used php.

    Not only the results was the same than PHP but far much better. Incredibily.

    I SUCCEED, it not only reached the programming level of PHP, but it was 1000 times more powerful than PHP.(out of my actual knowledge of php), and also far much quicker to code, and more control in every matter of what you are doing.

  • I am athonished with that all what happened, and the SUCCES of all this,

    It was today when I found the way to mix autoit code an HTML at the same time with endles possibilitites. Also I have made 100 AUTOIT, FOR the index.au3, no more index.html. Everybody can make a web page with Namo editor (or anyother) and autoiters can TWEAK it WITH AHA, and make hundreds of changes to the page, and apply all what they know of automation (of many points of view).

    I know this kind of programming is not suitable to all kind of autoit programming because the CODE is executed in the server. Also that has the advantage (now because false antivirus positives) that the code can not be decompiled or hacked as it runs INTERPRETED in the server, and what the user see is the function of the autoit code which is executed.

It is more suitable for kinds of apps which need:
  • DATABASE handling,
  • not database directly, but database logging or database what ever.
  • Collecting info for later remote retrieval
  • May be to give the user an diferent interface than win32 one, or also for people who use LINUX (client side)
  • I do not know the results in a heavy traffic page, not tested, but for normal enviroments work GREAT.
  • Collaborative enviroments
  • There are impredictible applications as I realized Autoit is very wide. By example you can Hack web pages and redirect THEM to your site and mix remix them with other infoLIVE with Daleholm IE.au3.
  • Unknown possibilities ..you can find .. for you
NOW You can make a bank web system or a shopping list for the family which can be retrieved from the HANDY.

I WILL show you something real you will surprise:

It is my new downloadme.au3 system to serve the source and samples files, as I didnt like our Invision Board System as you get lost the download number. Also I get from which country you hit the link and your IP.

I like this page because it shows a temporary web error and the autoit code inside, so you feel it is real.

(the error will fix ..soonn) as soon as possible, so much development in the last weeks with AHA.

http://www.emesn.com:8000/downloadme.au3?file=client.au3

HERE I ANNOUNCE THE RESULTS OF CODE PROYECT FOR AHA.AU3 :)

NOW the big way is finished.. OUT OF couple of funcs for the nexts days and some buggs. :party:

ENJOY THE Internet ..

Nice day ....some feed back wellcome!!!

We have 2 days .. here .. why not to keep the things simple tiny and quick

Error as you type in http://www.emesn.com:8000/downloadme.au3?file=client.au3 an AutoitWith object error in line 98

Error solved:

Available Aha Files:

Runme..->aha.au3 ...... 0 Hits.

Runme..->client.au3 ...... C:\Archivos de programa\Abyss Web Server\htdocs\<b>Aha.AU3 (98) : ==> Nested "With" statements are not allowed.: With $var1 ^ ERROR</b>

After this feedback of a Scripter I feel like I was in the XV century and GALILEO said: sun moves round earth but everybody thinks. It is not possible that sun moves round earth.

Change Your Chip, the code is reusable. Normal Users, the world moves round new concepts. No what you may be thinking.

JAJAJ, You do not read me ¿?.. YOU WRITE IN PURE AUTOIT WITH SOME mysql.au3 webauto.au3 and aha.au3 FUNCTIONS, and with other OUTPUT style-AHA, the main language,(and if you wish whatever you want to MIX)

change the old concepts .. it is a new autoitAHA era

SampleS how to make a AHAscript first is header and then 3 codes sections
  • run remote programs
  • database WebCounter
  • managing results of remotely run programm
[code]; Author:      BASICOS <www.autoit.es> UDFs for dynamic web *.aha
#include "Aha.AU3"
_StartWebApp (stringreplace(@ScriptName,".au3","")); here is missing some kind of .css
$sql = _AhaConnect (); now in aha.ini
;if you do not use mysql you can take it away (only remotescripting no counter)

;code sample -------- for COUNTER . you need mysql and create 2 databasesTables 1 for counters, 1 for logging

_AhapushCount ("Wellcome to .APH (Autoit Hyperlink Preprocessor) <b> ", @ScriptName, "</b> Visits  <br> ", 1)

;code sample ---- for REMOTESCRIPTING (if you dont use mysql you rub litake _aHaConnect away ..)

_AharunfromWeb("c:\Myscript.exe","Mspaint","I let you run only Myscript.exe, it is a text counter<br> Use quietly Password: 1 <br>Write your Pass to runme ","Click to Run any app or Script","1")

;code sample -------- to handle the results of the program which was running a text counter

$han=FileOpen("c:\counter.txt",0)
$String2Output="My script is an easy file based counter this is the count: <br><center>MyScript.exe was run "&filereadline($han)&" times</center>"
echo($String2Output)

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

--more HERE is the basis for most interactive: now a 2 forms input with autoit func for output

-- you dont like mysql, please you take away the querys and ahaconnect I commented with ;;

-- users.au3

;code -------- use same header as previous

echo ("<center><IMG src='imgs/logoemesn.jpg'></center>")
;;_AhapushCount (@ScriptName, ""Wellcome to .AHA (Autoit Hyperlink Access) <b> %%%</b> Visits  <br> ", 1)
_AhaInitPost ("react user pass name email"); collect posts and create vars preact puser ppass
Select; DO what ever autoitcode from Posted vars
    Case ($Preact = "delete_user")
        If ($Puser) Then
;;          $result = _AhaQuery ($sql, "DELETE from login WHERE user='" & $Puser & "'");
            echo ("<strong>" & $Puser & "</strong> successfully deleted<p>");
        Else
            echo ("<strong>no users are available to delete yet, sorry.</strong>");
        EndIf
    Case ($Preact = "add_user")
        If (($Puser) And ($Ppass)) Then
;;          _AhaQuery ($sql, "INSERT into login VALUES ( 0, SYSDATE(), '" & $Puser & "', '" & $Ppass & "', '" & $pname & "', '" & $pemail & "' )");
        Else
            echo ("<strong>either your user or password field was left blank</strong>");
        EndIf
    Case Else
        echo ("<center> You did not choose an option</center")
EndSelect
;;;;; nowshow form1
echo ("<center>Administration Area - Please Choose your option:</center><br><br>");
echoPostForm ('<p>', "users.au3", '><div align="center"><center><b>Delete Users : </b>')
echoInput ("", "hidden", "react", "delete_user", ' >');control posted vars
;;_AhaOptionBox ('name="user" size="1"', "user", "name", "SELECT user,name FROM login ORDER BY user")
echoSubmit ("", "Submit", '></p></center></div></form><br><br><br>')
;;;show form2
echoPostForm ("<p>", "users.au3", '><div align="center"><center><b>ADD A New User</b><br>')
echoInput ("", "hidden", "react", "add_user", ' >')
echoInput ("User :", "text", "user", "", ' size="30"><br>')
echoInput ("Pass :", "PASSWORD", "pass", "", ' size="30"><br>')
echoInput ("Name:", "text", "name", "", ' size="30"><br>')
echoInput ("Email:", "text", "email", "", ' size="30"><br>')
echoSubmit ("", "Submit", '></p></center></div></form>')
echo("<center>")
echoTable("SELECT user,name,email from login", "BORDER=1><CAPTION><b>A table browse with borders</b></CAPTION>","",' ALIGN = "center" ',  "", "</center>")
;;_AhaEnd ($sql)
echo ("</BODY></HTML>")
Exit
;all echo include PreTExt and PostText first and last params

TO DO DONE and READY NOT YET POSTED

------- to use external HTML code made by Namo or whatever editor you like..

code next --- now working as index.au3 this week end will be posted when fixed a couple of issues...

------- a php style preprocessor (I do not promise better but same functionality aprox)

code next --- also to use html and autoit together in php code style, posted when fixed week end I hope..

Edit: new samples, rewrote some concepts to better explanation

---Edit: I forgot to say.. :D Sorry for my english language........... :D:party:

Edit: links with :8000 changed into :8080 or http, under directory http://www.emesn.com/mas

Edited by BasicOs

Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

Share this post


Link to post
Share on other sites



I have to ask... what will "AHA" do that other already existing scripting languages cant do better, faster, and more efficiently?

I already stated my pov here, http://www.autoitscript.com/forum/index.ph...st&p=223048

I just cant help to think its a waste of time to be serious about it, its a neat concept, even somthing fun to play with... but not a real solution to anything.


Share this post


Link to post
Share on other sites

I have to ask... what will "AHA" do that other already existing scripting languages cant do better, faster, and more efficiently?

I already stated my pov here, http://www.autoitscript.com/forum/index.ph...st&p=223048

I just cant help to think its a waste of time to be serious about it, its a neat concept, even somthing fun to play with... but not a real solution to anything.

do you want some 15 books about php and mysql, I sell them cheap, my time is more worth about reading thousands of pages with something I already have with AutoitHA.

well: read the following post:

I answer your questions :)

http://www.autoitscript.com/forum/index.ph...564&st=120#

Only have a look at my ahaSite what AHA can do now in the first days, in the FUTURE more : Project page autoit managed.


Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

Share this post


Link to post
Share on other sites

I'm sorry but this is majorly bothering me. The word is spelled "dynamic", not "dinamic".

Share this post


Link to post
Share on other sites

About the scripts I will post if possible tomorrow a more complete release with most, tools what you needed for AHA Scripting. I appreciate any buggs (I mean from Autoit Language and any buggs or changes in AHA.AU3, to get a final release.

Also if somebody wants to make any web script for they own use I will help, only in exchange I will post them in Samples (downloadme.au3).

Also wellcome, who intend making some kind of web for any group of users (office or club). By example the downloads for Autoiter Scripters. I know we have problems with the files everyone leaves there, somebody were deleted, and to organize a little bit better.

I do not know who is in charge for this matter. tell me!!

Idea is an Autoit User login for that, then some downloads like dowloadme.au3, then some uploads/delete rights for authorised Scripters.

I do not know who much traffic is there!!!

well let me know

I'm sorry but this is majorly bothering me. The word is spelled "dynamic", not "dinamic".

Thank you. It is nice to finde somebody who takes care of Englis/American Language. Your answer is quite interesting. IF YOU realize any more grammar or syntax error, please send me an PM. And, if you please, when I have any issue with the language (English) I will tell you.

Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

Share this post


Link to post
Share on other sites

do you want some 15 books about php and mysql, I sell them cheap, my time is more worth about reading thousands of pages with something I already have with AutoitHA.

well: read the following post:

I answer your questions :)

http://www.autoitscript.com/forum/index.ph...564&st=120#

Only have a look at my ahaSite what AHA can do now in the first days, in the FUTURE more : Project page autoit managed.

I'll be honest, I learned autoIT as my first programming/scripting language. A year ago when I started to try to learn php I found it very simple and straightforward. If you indeed have gotten proficient at autoIT (and I expect you have) then learning php will be a breeze.

I'll admit my opinion is uneducated, and that what I say is most likely incorrect in some way... but I think your wasting your time using autoit as a dynamic web-scripting language.

But hey, w/e no ones forcing me to use it instead of php so I guess this will be my last post on the subject.


Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

@BasicOs, why do you persist in making a "script language" as you call "AHA", when anyone can immediately write by default in HTML and add au3 code as needed using my script here?

Why would a website owner that already knows how to write code in HTML and autoit do this:

echo ("<center>Administration Area - Please Choose your option:</center><br><br>");
echoPostForm ('<p>', "users.au3", '><div align="center"><center><b>Delete Users : </b>')
echoInput ("", "hidden", "react", "delete_user", ' >');control posted vars
;;_AhaOptionBox ('name="user" size="1"', "user", "name", "SELECT user,name FROM login ORDER BY user")
echoSubmit ("", "Submit", '></p></center></div></form><br><br><br>')
;;;show form2
echoPostForm ("<p>", "users.au3", '><div align="center"><center><b>ADD A New User</b><br>')
echoInput ("", "hidden", "react", "add_user", ' >')
echoInput ("User :", "text", "user", "", ' size="30"><br>')
echoInput ("Pass :", "PASSWORD", "pass", "", ' size="30"><br>')
echoInput ("Name:", "text", "name", "", ' size="30"><br>')
echoInput ("Email:", "text", "email", "", ' size="30"><br>')
echoSubmit ("", "Submit", '></p></center></div></form>')
echo("<center>")

When they could just as easily do this:

<center>Administration Area - Please Choose your option:</center><br><br>
<p><form action=users.au3><div align="center"><center><b>Delete Users : </b>
<input type="hidden" name="react" value="delete_user">
<input type="submit" value="Submit"></p></center></div></form><br><br><br>
<p><form action=users.au3><div align="center"><center><b>ADD A New User</b><br>
<input type="hidden" name="react" value="add_user">
User :<input type="text", name="user" value="" size="30"><br>
Pass :<input type="text", name="pass" value="" size="30"><br>
Name :<input type="text", name="name" value="" size="30"><br>
Email :<input type="text", name="email" value="" size="30"><br>
<input type="submit" value="Submit"></p></center></div></form><br><br><br>

and have the same result?

Why not be able to use code tags like php (another webserver based language) and include autoit functionality?

Example:

<html>
<head>
<?au3
#include "perpagevars.au3"
Func showIP()
   echo($_REMOTE_ADDR)
EndFunc
?>
<title><?au3 echo($current_page_title) ?></title>
</head>
<body>
<?au3
echo("Your IP is:" & showIP() & ".")
echo("<br>Aren't I smart?")
?>
</body>
</html>

Why would you intend to force a person that already has a webpage built in (for instance) Macromedia Dreamweaver to completely rewrite that existing webpage in autoit? If you want this type of scripting to become abundantly used, you must not limit the creativity of the end designer in this way.

EDIT: As I just read Wus's last post, I must say that this is exactly the reason for my script. If people like Wus are intrigued by the simplicity of PHP and would rather use it instead of autoit because of how easy PHP is, then why make au3 server-side scripting harder than PHP? It sould not be so. My script brings this functionality to the webserver without the major headaches of converting all current html pages to autoit. You can use existing pages, and add autoit code to it at will.

Edited by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

@Wus Well I can PHP, but I prefer to programm autoit

php is :

  • it iseasy for easy things.but I find it difficult if you want to do what ever you want.
  • It is something personal, but I hate pressing altgr plus at the conner right up the brackets{}[]_ every two seconds, :ph34r: , may be, The spanisk keyboard layout is not so good as yours.
  • FOR difficult apps, or mad scripts, I find much easier autoit. Please have a look at what we are coding, you become surprised and you will change your mind, and wait for the next days.
Anyway, to make programms, if I can do all with one language, at the same time/effort/cost I would try to do.

I am surprised I can go much quicker in Autoit Hypertet Access than in php.

If I can learn one language and get top practise why learn 2 or 3 languages or more. (at mean at the deepest level.

Do you know who many hours coding do you need to learn well any language at the top level?, there are allways bugs inconcistencies, default values, incompatibilities, missuses etc........ NOT all what looks gold is gold.

Your are not uneducated, but you have not the right information you need to know what I am talking about to imagine the reality of what is AHA.

You are wellcome to use..., you may become surprised... :geek::)

@this is me. I answer your questions:

I think you havent read my last post. I wrote of using HTML and AUTOIT at the same script.

That is just the idea. but it is up to you to make WEB-programms, in two ways:

  • The Function WAY, by the echoing and aHa functions, which produce html code out as they are executed, and writing less html code, (maybe you do not want to learn html at all). More using the autoit and aha. I will try to do the easiest funcs which produce the lots of code, with little typing.It is the way I prefer, it is to use less html as possible, I prefer functions, one reason between others it is because you have good defined parameters, and you control them. It can become quicker when you know exactily what every function do(I love Scite). Another clear reason it is because using UDFs is the AUTOIT WAY.
  • The Html way, you make the html and then you tweak all this with autoit for making special funcs, or for controlling whatever you WANT. I wrote in a previous post that You should build an html page with any processor, Namo, Zend, macromedia, microsoft,Adobe, etc....You do like nowadays at the KODA/GuiBuilder -way, and afterwards you can continue with autoit for making the real thing. We are talkin about the autoit processor. I explain here how to make beautiful Pages:

    1st use html Namo processor by example

    2nd add some funcs as desired and AHA.AU3 library.

    3rd add databases as needed(if you want to use database, I recommend)

    4th of course upload/publish to server

  • The autoit Html Processor

    I am proud to say, it is now ready and functional. I will post with the final realease of AHA.au3 and all other code.

    It is built, Maybe not the way you mean in your post, but with a different one. If you get used to it, it could be more convenient¿?. The main problem I found is to do it, without changing autoit.exe c# code.(I think). After finishing the AUA.au3, I only wait for the Scite devs or may be other processors to improve support to the new funcs. Of course, No exists anyone yet to debug at the same time HTML/AUTOIT. I also miss a couple debugging functions for Tidy and Spellcheck, which would make aHa programming only a little nicer and cleaner than now.(not necessary anyway if you use one Autoit processor and one Html processor)

    Now it is almost the same result and the same effect as you wanted.

you have got samples of the two ways of Aha-autoing:Of course, this two ways are not EXTREM you can produce web pages in any point between this 2 opposite ways of programming, it is up to you, and what you want, what you like, the time you have for the project, for sure depends of every site, and every need. Same as working PHP or making all in HTML.

The idea is everying you could do with php could applied to Autoit Hypertext Access aHa. http://en.wikipedia.org/wiki/Php I dont want to make a new monster but to make a better PHP-like(AHA) coding, if I can. I think so. Le us see progress.

I said in last post to make a FILEMAN better than actual, I think I got it but I have to solve a couple of issues. Have a look at the alfa working version of fileman.au3, for posting and organizing code. Some special functions for published scripts: in a more convenient way, when ready:

  • Full Search of code, funcs, etcc, by user or what ever.
  • better organizing funcs.
  • password protected management, for updates/uploads.
  • Execution of aha-au3 (if script is polite with no vulnerabilitys to run)
  • Organize. Look for use of UDfs in published scripts
  • Backups, and cvs, versioning, backup your diferent releases, with same name.
  • Hits/Dowloads/Views of any. Top twenty Scripts.
  • Do not lose the number of downloads when you renew your script. You keep up adding hits for the same if your wish, or to make a new file. It is up to you
  • by now are some funcs, more will come .. :)
Fileman.au3 is made the Aha-function way, but I intend to use Dreamweaver for a better look, more colors images..... ;):ph34r:

** Now You can upload your scripts for testin, Please if somebody can test, I am a little stuck with _urlencode/_urldecode of nwfu which is not working properly for posting code .... somebody can tell a solution?

** News: next published code will be only (of course) in http://www.emesn.com:8000/fileman.au3, in this moment I will delete the funcs from downloadme (download is obsolete only for coders). Keep downloadme link for bigger funcs and third party programms. like Sqlite.dll.au3 or other utils or compiled programms.

I Repeat: fileman.au3 is made for CODERs to manage their code. Dowloadme.au3 for files (I will improve but in this sense no in CODERS sense, not obsolete for what it is.

Enjoy it, Autoiters .. of course all that is made with Scite, Namo - Autoiting and Ahaing. :lmao: (0% php there)

Edit: corrected Typos

Edited by BasicOs

Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

Share this post


Link to post
Share on other sites

i modded an old preprocessor of mine to turn

<pre> ... 'whatever' "#3fedf.w... </pre>
<?
    For $i = 0 To 10
        ConsoleWrite($i)
    Next
?>
<pre> ... whatever "#3fe'df.w... </pre>
into
ConsoleWrite('<pre> ... ''whatever'' "#3fedf.w... </pre>' & @LF)
    For $i = 0 To 10
        ConsoleWrite($i)
    Next
ConsoleWrite('<pre> ... whatever "#3fe''df.w... </pre>' & @LF)

maybe its usefull for you.

note that the "<?" or "?>" must be on one seperate line!

and i didnt test it much...

i'm not sure if you can pipe code into autoit somehow or need a workaround.

could be much better but its quite fast and only 15k big...

maybe i'll make it a little better someday :lmao:

au3Preprocessor.zip


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

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