Jump to content
Sign in to follow this  
pabloc

Using AutoIt Active X in web page?

Recommended Posts

pabloc

Can I lod the AutoIt ActiveX control in a web page to run it from the browser?

Does anyone have any examples of this?

Pabloc

Share this post


Link to post
Share on other sites
ptrex

@pabloc

Save this as an TextFile.ASP and run it on your IIS server.

<script LANGUAGE="VBScript">
<!--
dim filesys, filetxt, getname, path
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt = filesys.CreateTextFile("c:\somefile.txt", True)
path = filesys.GetAbsolutePathName("c:\somefile.txt")
getname = filesys.GetFileName(path)
filetxt.WriteLine("Your text goes here.")
filetxt.Close
If filesys.FileExists(path) Then
  document.Write ("Your file, '" & getname & "', has been created.")
End If

//-->
</SCRIPT>

Hope this helps you going

regards

ptrex

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  

×