chandlerethan
2012-01-03 02:43:56
If you are unable to download programs to your computer, stop reading now.
Anyways, to do this you will have to download a program called autohotkey, which you can find @ http://www.autohotkey.com/. Autohotkey is a scripting program (not for Runescape, just doing things for you in general, it's not another botting community either so I'm not advertising) that can automate tasks on your computer. All you have to do is run the macro that I will give the source code of below so you won't have to write it, and download a picture that the macro needs to run, and when it sees the update picture on the screen, it will close out smart, and rerun the script. This is a lot safer compared to the "Crash smart" method, although I do commend him on figuring that out. The only real drawback is, you must have smart as the front screen and must have Simba directly under it. Although, if you learn Autohotkey language (which isn't hard) then you can modify this to your liking). But anyways, download the pic below… lol, here is the code for the macro:
EDIT: I am in the process of writing a macro to handle multiple scripts at a time. :P Until then enjoy this haha
<- this is the pic you need to download.
Step 1.
Download and install Autohotkey from
http://www.autohotkey.com/download/
Step 2.
Save the above picture to your desktop, and name it login.png (make sure it's a .png format. THIS IS IMPORTANT OR THE SCRIPT WONT WORK.
Step 2.
Open up notepad and paste the code into notepad, Edit the variables (At the bottom of this tut I have explained how. (scriptDirectoryWithFullScriptName and updatePicDirectory) to fit your computer, and save as: update.ahk
(SAVE AS TYPE: ALL FILES. THIS IS IMPORTANT)
Step 3.
Open up and run your script.
Step 4.
Enjoy 24/7 botting like the old days with a few exceptions. :P
Explanation of editing the variables.
To find out the directory of your script and the pic you downloaded (assuming you're running Windows(TM)), right click the picture you downloaded, and the script, and select properties. then it should say "Location" to the left. Copy the location (not the actual word), and paste it into the respective variable names.
ANY QUESTIONS? FEEL FREE TO POST YOUR QUESTIONS HERE. IF A MOD FINDS THIS INAPROPRIATE, please Delete it, don't infract me.
Anyways, to do this you will have to download a program called autohotkey, which you can find @ http://www.autohotkey.com/. Autohotkey is a scripting program (not for Runescape, just doing things for you in general, it's not another botting community either so I'm not advertising) that can automate tasks on your computer. All you have to do is run the macro that I will give the source code of below so you won't have to write it, and download a picture that the macro needs to run, and when it sees the update picture on the screen, it will close out smart, and rerun the script. This is a lot safer compared to the "Crash smart" method, although I do commend him on figuring that out. The only real drawback is, you must have smart as the front screen and must have Simba directly under it. Although, if you learn Autohotkey language (which isn't hard) then you can modify this to your liking). But anyways, download the pic below… lol, here is the code for the macro:
EDIT: I am in the process of writing a macro to handle multiple scripts at a time. :P Until then enjoy this haha
<- this is the pic you need to download.
;Anything after a ";" is a comment. :P
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
loginPicDirectory := "the directory of the login pic goes here. EX: C:\Users\Chandler\Desktop\pics\"
scriptDirectoryWithFullScriptName := "The directory of the script goes here, be sure to include the name of the script followed by .simba C:\Users\Chandler\Desktop\script.simba"
Sleep 7000 ;this makes the script sleep for 7 seconds before it begins so that you can check to make sure the script works before going afk, change if needed
loop 999999999{
ImageSearch loginX, loginY, 0, 0, A_ScreenWidth, A_ScreenHeight, *20 %loginPicDirectory%login.png
; What this does is searches for the login image you stated in the "loginPicDirectory" variable starting at 0x, 0y
; and ending in the max x and y of your computer screen. (which is your max resolution) with a color tolerance of 20.
if (ErrorLevel = 2){
; An error level of 2 means it couldn't conduct the search, prolly cuz you didn't put the right picture directory.
MsgBox Dude, the loginPicDirectory variable is prolly wrong... look again.
} else if (ErrorLevel = 1){
; This means it can't find the pic, and we want it to sleep so it won't interrupt anything and wont repeat a billion times a minute.
Sleep 300000
; 300,000 milliseconds / 1,000 = 300 seconds
} else {
; It found the update icon, now it's going to restart the script.
Process, Close, Simba.exe
Run %scriptDirectoryWithFullScriptName%
Sleep 10000
; Opens the script and sleeps for 10 seconds
Send {F9}
Sleep 300000
; Presses the F9 key which starts the script and then sleeps for 5 minutes so that it doesnt repeat the process when the login appears while S.M.A.R.T. is signing you in.
}
}
Esc::ExitApp
; This means if you press the Escape key, then it will exit out of the macro.
Step 1.
Download and install Autohotkey from
http://www.autohotkey.com/download/
Step 2.
Save the above picture to your desktop, and name it login.png (make sure it's a .png format. THIS IS IMPORTANT OR THE SCRIPT WONT WORK.
Step 2.
Open up notepad and paste the code into notepad, Edit the variables (At the bottom of this tut I have explained how. (scriptDirectoryWithFullScriptName and updatePicDirectory) to fit your computer, and save as: update.ahk
(SAVE AS TYPE: ALL FILES. THIS IS IMPORTANT)
Step 3.
Open up and run your script.
Step 4.
Enjoy 24/7 botting like the old days with a few exceptions. :P
Explanation of editing the variables.
To find out the directory of your script and the pic you downloaded (assuming you're running Windows(TM)), right click the picture you downloaded, and the script, and select properties. then it should say "Location" to the left. Copy the location (not the actual word), and paste it into the respective variable names.
ANY QUESTIONS? FEEL FREE TO POST YOUR QUESTIONS HERE. IF A MOD FINDS THIS INAPROPRIATE, please Delete it, don't infract me.