Jump to content

Recommended Posts

Posted

I like #Persistent in ahk. IDK if I am allowed to say ahk here, but w/e. Everyone already knows autoit is better. Is there anything in autoit that does almost the same as #Persistent in ahk?

Note: #Persistent - Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered).

Posted
Posted (edited)

I like #Persistent in ahk. IDK if I am allowed to say ahk here, but w/e. Everyone already knows autoit is better. Is there anything in autoit that does almost the same as #Persistent in ahk?

Note: #Persistent - Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered).

See the help file for

While...WEnd

For...Next

also there is a function in Valuater's Autoit wrappers (In example scripts) for what you want (I Guess).

here is it

; Restart your program
; Author UP_NORTH

Func _restart()
    If @Compiled = 1 Then
        Run( FileGetShortName(@ScriptFullPath))
    Else
        Run( FileGetShortName(@AutoItExe) & " " & FileGetShortName(@ScriptFullPath))
    EndIf
    Exit
EndFunc

if you are new than don't forget to visit AutoIt wrappers's thread by Valuater

http://www.autoitscript.com/forum/index.ph...owtopic=19370

Cw2k

Edited by Cw2K1
Enjoy the complexity.Feel the power of simplicity.
Posted

I get the loops. I already have them in this bot. I just want to know how to make something run forever and at the same time, a msgbox popping up or something.

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
  • Recently Browsing   0 members

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