This website is more dead than a corpse!
I know I posted about this a while ago, but I need help to figure a few things out.
So you can help me work out a few problems, i've added the runescape launcher to this post as a download.
I've recently discovered how to open programs using DarkBasic Pro, but I can't get it to open the Runescape launcher.
I've tried doing it like this but nothing happens.
execute file "JagexLauncher.exe","","C:\Users\username\jagexcache\jagexlauncher\bin",1
do
loop
end
Then I remembered, DarkBasic Pro can use DLLs, so I added all the DLLs that runescape uses so now my code looks like this.
Load DLL "awt.dll",1
Load DLL "fontmanager.dll",1
Load DLL "freetype.dll",1
Load DLL "hpi.dll",1
Load DLL "java.dll",1
Load DLL "jawt.dll",1
Load DLL "jpeg.dll",1
Load DLL "jsound.dll",1
Load DLL "jsoundds.dll",1
Load DLL "jvm.dll",1
Load DLL "msvcp100.dll",1
Load DLL "msvcr100.dll",1
Load DLL "net.dll",1
Load DLL "nio.dll",1
Load DLL "unpack.dll",1
Load DLL "verify.dll",1
Load DLL "zip.dll",1
Load DLL "zlib1.dll",1
execute file "JagexLauncher.exe","","C:\Users\username\jagexcache\jagexlauncher\bin",1
do
loop
end
But when I do that, I keep getting errors like "Runtime Error 9703 - DLL already exists at line 12" Of course the DLLs exist, I can't use the Runescape launcher without them!
Once Runescape has loaded, how can I make my program auto-type my password for me?
I also need to know how to make my program auto-type the up arrow for like 2 seconds, so the program can alter my screen position and interact with the bank properly.
I know the DarkBasic Pro commands to make the mouse move and click by itself....
function mouse_click(x as integer, y as integer)
`clicks the mouse at x,y
load dll "user32.dll",1
call dll 1,"SetCursorPos",x,y
call dll 1,"mouse_event",0x2,0,0,0,0 : `leftmouse down
call dll 1,"mouse_event",0x4,0,0,0,0 : `leftmouse up
delete dll 1
`other values
`LEFTDOWN = 0x2
`LEFTUP = 0x4
`MIDDLEDOWN = 0x20
`MIDDLEUP = 0x40
`RIGHTDOWN = 0x8
`RIGHTUP = 0x10
endfunction
.... but I don't know how to make it repeat a list of commands for a specific amount of time and stop.
After a 6 hour loop (the amount of time a character can stay logged in before being auto-logged out) I'd like the program to close the Runescaoe launcher, wait 5 minutes and reopen it to start the process all over again!
The 5 minute wait is because when you're auto-logged out, you can't log back in for 5 minutes and the Runescape launcher needs to be reloaded sometimes.
The process will be like this:
Runescape launcher opens
Mouse moves and clicks the maximize button
Mouse moves and clicks the password box
Password is typed in
Mouse moves and clicks login button
Mouse moves and clicks the server button
Mouse moves and clicks the compass
Up arrow key is pressed
Mouse interacts with my bank and inventory for 6 hours then stops when logged out
Runescape launcher closes
Wait 5 minutes
Loop
Once I can make DarkBasic Pro open the Runescape launcher (and close it when I'm done) and type my password in, I'll try and expand the code so you can help we with any further problems I may have.
I'm hoping someone can help me work out these few things. Like I said, I can do the mouse commands just fine, but I can't figure out how to do the other little things just yet.
Edit: Forgot to add the Runescape installer, oops!
I speak English, I don\'t speak DarkBASIC!