SRL Archive - OSR Help

Web History


Death12652

2010-05-12 09:31:36

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?

Craig`

2010-05-12 13:20:37

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.

Death12652

2010-05-12 15:22:32

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

Craig`

2010-05-12 15:39:38

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

Death12652

2010-05-12 19:27:02

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

Also for the CCleaner I have this…


procedure Clear_History;
begin
OpenFile(CCleaner, False);
end;

but I get this


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.

i luffs yeww

2010-05-12 22:29:32

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

Death12652

2010-05-12 23:03:19

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.

Coh3n

2010-05-12 23:19:51

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).

{.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).

Death12652

2010-05-13 00:44:57

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

i luffs yeww

2010-05-13 03:06:16


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.

Death12652

2010-05-13 08:53:28

That doesn't work this is what I have


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.

Coh3n

2010-05-13 08:57:28

From: death12652
That doesn't work this is what I have


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?

Death12652

2010-05-13 09:30:56

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.

Coh3n

2010-05-13 09:34:12

From: death12652
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. :p

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

Death12652

2010-05-13 11:55:18

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?

Coh3n

2010-05-13 11:57:00

From: death12652
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.

Death12652

2010-05-13 12:00:57

Thanks, will try that when I get home.

g0tp0t

2010-05-13 12:08:06

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. -.-

Death12652

2010-05-13 17:55:37

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.

i luffs yeww

2010-05-13 19:18:53

So why can't they do that as well? :)

Death12652

2010-05-16 13:17:10

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