AceLoc Posted October 19, 2006 Posted October 19, 2006 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]
Thatsgreat2345 Posted October 19, 2006 Posted October 19, 2006 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
AceLoc Posted October 19, 2006 Author Posted October 19, 2006 (edited) ;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 Edited October 19, 2006 by AceLoc [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
ame1011 Posted October 19, 2006 Posted October 19, 2006 ;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 ;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]
AceLoc Posted October 19, 2006 Author Posted October 19, 2006 Thanks, But still how do i translate this in perfect "autoitscript" [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now