Jump to content

Can someone finish this for me.


AceLoc
 Share

Recommended Posts

Func KillTorProcess()
    ;StrCmp $DEBUGON 1 "" +3
            ;Dumpstate::debug
    ;       MessageBox MB_OK `KillTorProcess`
    MsgBox(0, "", "KillTorProcess")
    ;StrCmp $DEBUGON 2 "" +3
            ;${time::GetLocalTime} $R0
            ;FileWrite $4 "$R0 KillTorProcess$\n"
            
    ;KillProcDLL::KillProc "tor.exe" ;Kill tor
    If ProcessExists("tor.exe") Then
        ProcessClose("tor.exe")
    Sleep(50)
    ;ExecDos::exec `"$TORDIRECTORY\tor_resolve.exe"` "" "";Run execdos (any program will do) without NOUNLOAD so that ExecDos.dll isn't left behind
    Run($TORDIRECTORY & "\tor_resolve.exe")
    Sleep(50)
    ;Delete $TORDIRECTORY\debug.log
    FileDelete($TORDIRECTORY & "\debug.log")
    Sleep(50)
    ;RMDir /r $TORDIRECTORY\data
    DirRemove($TORDIRECTORY & "\data")  
    Sleep(50)
    ;RMDir /r $TEMPDIR 
    DirRemove($TEMPDIR)
    Sleep(50)
EndIf
EndFunc

Scripting Language: Autoit3

Green Scripting Language: .NSI

Help would be appreciated.

Thanks.

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Link to comment
Share on other sites

;StrCmp $DEBUGON 1 "" +3
            ;Dumpstate::debug
    ;      MessageBox MB_OK `KillTorProcess`
    ;StrCmp $DEBUGON 2 "" +3
            ;${time::GetLocalTime} $R0
            ;FileWrite $4 "$R0 KillTorProcess$\

No id about that part :lmao:

Edited by AceLoc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Link to comment
Share on other sites

;StrCmp $DEBUGON 1 "" +3
            ;Dumpstate::debug
    ;      MessageBox MB_OK `KillTorProcess`
    ;StrCmp $DEBUGON 2 "" +3
            ;${time::GetLocalTime} $R0
            ;FileWrite $4 "$R0 KillTorProcess$\

No id about that part :lmao:

;StrCmp $DEBUGON 1 "" +3

In most languages that use StrCmp, StrCmp returns 0 if the strings being compared are the same, and +/- 0 if one is greater/less than the other.

;Dumpstate::debug

Looks as though that just dumps debug info

MessageBox MB_OK `KillTorProcess`

Looks like a confirmation dialogue

;${time::GetLocalTime} $R0
           ;FileWrite $4 "$R0 KillTorProcess$\

writes info to a log file presumably

I don't know the language but thats my guess... Is there something particular thats not functioning in your version? It seems that you just left out the log info which wouldnt prevent the rest of your script from functioning.

[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]
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...