Results 1 to 21 of 21

Thread: Web History

  1. #1
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Web History

    What would be the best way to delete your web browser history with scar? So that it works on all computers not just mine.

    Also is there a way to put constants somewhere like another script and recall it when needed?

  2. #2
    Join Date
    Dec 2008
    Posts
    209
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    as you're using SCAR, I'm presuming that you're using windows, and users of the script will be, thus I would recommend download CCleaner (crap cleaner), and then getting scar to use ccleaner.

  3. #3
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay I will try that, and yes I am using windows and so will they be.

  4. #4
    Join Date
    Dec 2008
    Posts
    209
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    a bit of googling could also work, http://www.easywindows.com/edarchives/3415.html shows where IEs temporary files are located, so it's just a matter of finding out where safari, chrome, firefox etc store their own

  5. #5
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So does anyone know how to do the constants I mean saving them in a separate script?

    Also for the CCleaner I have this...

    Code:
    procedure Clear_History;
    begin
         OpenFile(CCleaner, False);
    end;
    but I get this

    Code:
    Successfully compiled (43 ms)
    File access error
    Successfully executed
    Any help with both would be greatly appreciated or a better way to delete history would be nice.
    Last edited by Death12652; 05-13-2010 at 01:16 AM. Reason: Need Help

  6. #6
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    I believe you have to give the full path to the .exe.

  7. #7
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No that doesn't work or I am doing it wrong. Please someone give an example or script... The file is called CCleaner.exe and its on my desktop along with the script I am running.

  8. #8
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    To save (and have access to) constants in another script just save the script filled with constants in the same directory as the script using the constants, then have this at the top of the parent script (the script without the constants).
    SCAR Code:
    {.include nameOfScriptWithConstants.scar}

    To clear the history, you could have SCAR search for fonts on the browser window (which would have been selected as the client I'm assuming), but since each person may have a different font, you'd have to store the possible fonts (in an array maybe), then loop through them, searching for the word "History" (or whatever it is for each web client).
    Last edited by Coh3n; 05-13-2010 at 03:22 AM.

  9. #9
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well there is the shortcut ctrl+shift+del would the keydown(# + # + #); work?

  10. #10
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    SCAR Code:
    KeyDown(VK_CTRL);//Not sure if this is the right key..
    KeyDown(VK_SHIFT);//^
    KeyDown(VK_DEL);//^
    Wait(Random(30));
    KeyUp(VK_DEL);
    KeyUp(VK_SHIFT);
    KeyUp(VK_CTRL);

    Do them one by one.

  11. #11
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That doesn't work this is what I have

    Code:
    procedure Clear_History;
    begin
         OpenWebPage('www.google.com');
         Wait(5000);
         KeyDown(VK_CONTROL);
         KeyDown(VK_SHIFT);
         KeyDown(VK_DELETE);
         Wait(500);
         KeyUp(VK_DELETE);
         KeyUp(VK_SHIFT);
         KeyUp(VK_CONTROL);
    end;
    It says Successfully Executed and opens the website but that's it. it doesn't do anything.

  12. #12
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by death12652 View Post
    That doesn't work this is what I have

    Code:
    procedure Clear_History;
    begin
         OpenWebPage('www.google.com');
         Wait(5000);
         KeyDown(VK_CONTROL);
         KeyDown(VK_SHIFT);
         KeyDown(VK_DELETE);
         Wait(500);
         KeyUp(VK_DELETE);
         KeyUp(VK_SHIFT);
         KeyUp(VK_CONTROL);
    end;
    It says Successfully Executed and opens the website but that's it. it doesn't do anything.
    Did you check to see if the history was deleted?

  13. #13
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes I did and it doesn't. And Control + shift + delete is suppose to open a window saying Clear Recent History at the top, with some check boxes, and a clear now button. Well in windows OS and FireFox.

  14. #14
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by death12652 View Post
    Yes I did and it doesn't. And Control + shift + delete is suppose to open a window saying Clear Recent History at the top, with some check boxes, and a clear now button. Well in windows OS and FireFox.
    Its probably because the browser isn't selected as the client. Since the script opens the browser, I'm guessing that you select the desktop as your browser so it would be hitting Ctrl + Shift + Delete on the desktop, which wouldn't do anything.

    And no, I don't know how you would switch the browser to the client.

  15. #15
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay so im guess there is no other way other then like uptext searching for tool>clear recent history. Is there a tutorial on uptext searching? At least uptext searching that isn't in runescape?

  16. #16
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by death12652 View Post
    Okay so im guess there is no other way other then like uptext searching for tool>clear recent history. Is there a tutorial on uptext searching? At least uptext searching that isn't in runescape?
    Open SCAR, press F1. Once the manual is open hit Ctrl + F and search for FindText. You'll see a bunch of text finding functions to choose from.

  17. #17
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, will try that when I get home.

  18. #18
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i am assuming this is for learning purposes, because i really don't see any reason to force scar to do this... Mozilla does it for you if you set it to clear private information in the options. :P

    also, i suggest you read through the WHOLE scar manual. it is long...but once you have read it you will have a MUCH better understanding of scar5. that's what i did almost 5 years ago when i was 11. that is how i first started script, once i looked through that manual it was so simple to write basic programs like what you are asking. actually there are scripts not programs :P.

    everything you have asked so far is described in detail in the manual AND google. -.-
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  19. #19
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The reason I am creating the delete history part is because some of my friends are anal about there history... My Mozilla is already set to delete history when it closes.

  20. #20
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    So why can't they do that as well?

  21. #21
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't know I told them to suck it up lol

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •