AutoHotkey Community

It is currently May 27th, 2012, 12:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: August 5th, 2008, 12:07 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Fry wrote:
I disagree Sean, In m batch file i made use to this
It's not about agree/disagree, it's about the fact.

Quote:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
rundll32.exe seems to do a similar check with A/W as AHK's DllCall where, for example, LoadLibrary works without A/W.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2008, 12:12 am 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
I was just proving that ahklerners method was correct.
Ss you said it wasnt becuase there was no ClearMyTracksByProcess, Only the ClearMyTracksByProcessW command. which was just disproved in my perivous post


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2008, 12:39 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Fry wrote:
I was just proving that ahklerners method was correct.
No, you proved nothing. I already knew that it would work if used with rundll32.exe. However, it won't work if used with AHK's DllCall.

Anyway, the point of my previous message actually was not about whether this specific one would work or not, but was about how to translate properly (correct usage of) rundll32.exe syntax into AHK's DllCall.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2009, 12:40 am 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
Code:
if A_OSVersion in WIN_VISTA
{
paths = %userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5
 
}
else,
{
Paths = %UserProfile%\Local Settings\Temporary Internet Files\Content.IE5
}

rather than msgbox..
Good work man!

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2009, 10:09 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
so here would be the correct code:
Code:
ClearWebHistory(sCmd) {
   ; by ahklerner
   ValidCmdList    = Files,Cookies,History,Forms,Passwords,All,All2

   Files          = 8    ; Clear Temporary Internet Files
   Cookies       = 2    ; Clear Cookies
   History       = 1    ; Clear History
   Forms          = 16    ; Clear Form Data
   Passwords       = 32    ; Clear Passwords
   All          = 255    ; Clear all
   All2          = 4351    ; Clear All and Also delete files and settings stored by add-ons

   If sCmd in %ValidCmdList%
   {
      iCmd = % %sCmd% ; Get the integer value
      ; thanks sean :)
      ; http://www.autohotkey.com/forum/viewtopic.php?p=211775#211775
      VarSetCapacity(wCmd,15,0)
      DllCall("MultiByteToWideChar", "Uint", 0, "Uint", 0, "str", iCmd, "int", -1, "str", wCmd, "int", 8)
      DllCall("inetcpl.cpl\ClearMyTracksByProcessW", "Uint", 0, "Uint", 0, "str", wCmd, "int", 0)
   }
   Else
      MsgBox Invalid Command -%sCmd%-`nValid commands are`n%ValidCmdList%
   return ErrorLevel
}

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Rajat and 56 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group