Re: [Wtr-general] how to properly use the snippet function?
reinier wrote: > I am trying to get rid of all cookies via a function. > On this forum I found the Snippet thingy. > http://rubyforge.org/snippet/detail.php?type=snippet&id=26 > So I included that code in my script and trying to use it, but I can't figure > out how. > > this is the code: > [code] > DeleteUrlCacheEntry = Win32API.new("wininet", "DeleteUrlCacheEntry", ['P'], > 'V') > [/code] > > So what function should be called to delete all the cookies main ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to properly use the snippet function?
When I needed to use that snippet, I just left the whole thing in a separate file, and initiated the cache/cookie cleanup with system('ruby del_cache.rb') You could also probably paste the whole blob of code into a new method and it should work. It would be possible to do the same work in fewer lines of code, but you'd have to refactor the script somewhat. On 6/13/07, reinier <[EMAIL PROTECTED]> wrote: > I am trying to get rid of all cookies via a function. > On this forum I found the Snippet thingy. > http://rubyforge.org/snippet/detail.php?type=snippet&id=26 > So I included that code in my script and trying to use it, but I can't figure > out how. > > this is the code: > [code] > DeleteUrlCacheEntry = Win32API.new("wininet", "DeleteUrlCacheEntry", ['P'], > 'V') > [/code] > > So what function should be called to delete all the cookies? > ___ > Wtr-general mailing list > Wtr-general@rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to properly use the snippet function?
The attached file works on my Windows XP/IE7 machine. It will delete all the temporary internet files and the cookies. I don't remember where I got it or who wrote it originally, but I tweaked it to get it to work right for me. Hope this helps, --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of reinier Sent: Wednesday, June 13, 2007 1:35 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] how to properly use the snippet function? I am trying to get rid of all cookies via a function. On this forum I found the Snippet thingy. http://rubyforge.org/snippet/detail.php?type=snippet&id=26 So I included that code in my script and trying to use it, but I can't figure out how. this is the code: [code] DeleteUrlCacheEntry = Win32API.new("wininet", "DeleteUrlCacheEntry", ['P'], 'V') [/code] So what function should be called to delete all the cookies? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general CookieKiller.rb Description: CookieKiller.rb ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] how to properly use the snippet function?
I am trying to get rid of all cookies via a function. On this forum I found the Snippet thingy. http://rubyforge.org/snippet/detail.php?type=snippet&id=26 So I included that code in my script and trying to use it, but I can't figure out how. this is the code: [code] DeleteUrlCacheEntry = Win32API.new("wininet", "DeleteUrlCacheEntry", ['P'], 'V') [/code] So what function should be called to delete all the cookies? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general