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?
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?
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.
Okay I will try that, and yes I am using windows and so will they be.
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
So does anyone know how to do the constants I mean saving them in a separate script?
Also for the CCleaner I have this...
but I get thisCode:procedure Clear_History; begin OpenFile(CCleaner, False); end;
Any help with both would be greatly appreciated or a better way to delete history would be nice.Code:Successfully compiled (43 ms) File access error Successfully executed
Last edited by Death12652; 05-13-2010 at 01:16 AM. Reason: Need Help
I believe you have to give the full path to the .exe.
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.
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.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
well there is the shortcut ctrl+shift+del would the keydown(# + # + #); work?
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.
That doesn't work this is what I have
It says Successfully Executed and opens the website but that's it. it doesn't do anything.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;
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
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.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
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?
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Thanks, will try that when I get home.
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!!!!
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.
So why can't they do that as well?![]()
I don't know I told them to suck it up lol
There are currently 1 users browsing this thread. (0 members and 1 guests)