Jump to content

Web-based AutoIt! - New with AuCGI!


theguy0000
 Share

Recommended Posts

New Function's i'm working on:

Func WebObjCreate($Obj, Global $ObjName, $nEnd = 0)
    Local $out 
If $nEnd = 0 then 
    $out &="<script Type=Text/Javascript Language=Javascript>"
    $out &="var "&$ObjName&" = ActiveXObj("&$Obj&")"
    ConsoleWrite($out)
EndIf
If $nEnd = <> 0 Then 
    $out &="<script Type=Text/Javascript Language=Javascript>"
    $out &="var "&$ObjName&" = NewActiveXObj("&$Obj&")"
    $out &="</script>"
EndIf
EndFunc
oÝ÷ ج¶X¤xæã
·µëhr·µà¶+ÞæãyËlxÚ½«®*mjëh×6
Func WebObjFunction($ObjName, $Function)
    Local $out
    $out &=$ObjName&"."&$Function&"("&$Func&")"
    ConsoleWrite($out)
EndFunc

Use that to close the script.

If you want to use functions, leave $nEnd to 0, so you can use

them. Then just end it with WebObjEnd

NOTE:Not tested

instead of

EndIf

If $nEnd = <> 0 Then

just use

Else

and there is no reason for the & in the function func, just use =, not &=

other than that, they look good. Although, they should be tested, not sure what objects to create though...

and about the documentation, I do a agree now, I understand. Either way, I made my functions a lot better. Maybe I will make an installer...

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'll add you obj functions, make some docs and examples on them, see if i can get those txt docs compiled, and I'll make a quick installer for those who want it.

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

ok one question. How come on the first part of the create func, it says ActiveXObj, but on the second part it says NewActiveXObj?

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

hope you don't mind if I cleaned it up...alot lol

I still used the same way you used, just made it much cleaner. But you might want to check it because I'm not sure I have the javascript syntax just right, haven't workd in js for a long time...

Func WebObjCreate($sObj, $sObjName, $fEnd = 0)
    Local $out='<script language="javascript" type="text/javascript">'
    $out &= 'var '&$sObjName&' = ActiveXObj ('&$sObj&');'
    If $fEnd Then $out &= '</script>'
    echo ($out)
EndFunc

actually, I think I'll remove $fEnd altogether, just always end the block, and start a new block when using a function. Then, no WebObjEnd is even needed.

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 have been fooling around with this for a little while and it is simply amazing. It is amazing how far AutoIt has come in the past few years. :whistle: Maybe a mod can sticky this?

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

I have been fooling around with this for a little while and it is simply amazing. It is amazing how far AutoIt has come in the past few years. ;) Maybe a mod can sticky this?

thank you :whistle:

and yes a sticky would be cool

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

  • 2 months later...

20 January 2007

Added RSS Capabilities. You can now easily create your own RSS Feeds! See first post for code and usage.

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

  • 4 weeks later...

Nice addition.

Can any one make portable autoit for U3 smart drive installation

I'm pretty sure there was a detailed conversation about that in the Chat forum awhile ago, and I'm pretty sure that you're hijacking my thread too. Or at least posting way off topic.

and welcome to the forums.

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 would like to see the ability to execute autoit scripts like abyss on apache.

I'm pretty sure that's much more difficult. but maybe not. I'll look into it. 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

  • 4 weeks later...

Update 3-12-07

Added $iVarType to _Get ( )...see first post

if you want to have vars that have no vale, and you had like

script.auw?myvar

you could use:

_Get ("myvar", 1) and it would return True

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

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...