Jump to content
Sign in to follow this  
AceLoc

Can someone finish this for me.

Recommended Posts

AceLoc

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]

Share this post


Link to post
Share on other sites
Thatsgreat2345

to bad it looks good to me, and have no idea what ur trying to do cuz everything in green looks like uve accomplished so if you could provide exactly what u need finished

Share this post


Link to post
Share on other sites
AceLoc

;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]

Share this post


Link to post
Share on other sites
ame1011

;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]

Share this post


Link to post
Share on other sites
AceLoc

Thanks, But still how do i translate this in perfect "autoitscript"


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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.