scripTerroz Posted December 13, 2009 Share Posted December 13, 2009 I have no experience with this program, im am simply following insturctions from someone on the internet. I am having unknown problems, that many users are dumbfounded by. I enter the edited script, copyed from the internet, and i save. then i click run. but an error pops up saying, "Line 55(file "C:\documents and settings\----\My document\auto kill.au3")://move mouse to monster, check monster's HP colorError: unterminated string. Now, i looked into the script and heres where the problem seems to be,//------------------------------------------------------------------------------//-------------------------------- [ sub programs ] --------------------------------//----------------------------------------------------------- [ auto attack monster ]Sub attackmonsterVBSCall FindColorEx(x-60,y-30,x+60,y,"3737C5",0,0.6,mx,my)//move mouse to monster, check monster's HP color<<<HERES THE ERROR, RIGHT HERE VBSCall Shape=GetCursorShape(0)//check mouse cursorIf mx>=0 and my>=0 or Shape=1439279395Delay 50LeftClick 1EndIfDelay 300Rem runIfColor 384 42 1E42EA 2IfColor 384 44 0993FB 2//if found monster's HP barDelay 10KeyPressH key 1Delay 10key=key-1Gosub pickitemsIf key<113key=115EndIfDelay ysGoto runEndIfEndIfReturn attackmonsteri tried singlespacing instead of double but i get the same error, unless im doing it wrong, but w/e SOMEONE PLEASE HELP ME Link to comment Share on other sites More sharing options...
smcombs Posted December 13, 2009 Share Posted December 13, 2009 (edited) what language are you even using? Obviously its VB but this is for autoit? Edited December 13, 2009 by smcombs Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 (edited) what language are you even using? Obviously its VB but this is for autoit?Ok,so like i said i have no experience with this i just started today. appernetly its for autoit. im using autoit v3, i have no idea what language it is.. sorry for the lack of information, but i to was cutted short on information so im doing the best i can. im just wondering whats wrong with the script. its for a game,( confedential XD ) but ya..BTW, THIS IS JUST A PARTION OF THE SCRIPT, THE PART WITH THE ERROR. Edited December 13, 2009 by scripTerroz Link to comment Share on other sites More sharing options...
dantay9 Posted December 13, 2009 Share Posted December 13, 2009 (edited) You can't run this from SciTE using autoit. The code is in VB. Edit: AutoIt v8??? Edited December 13, 2009 by dantay9 Link to comment Share on other sites More sharing options...
smcombs Posted December 13, 2009 Share Posted December 13, 2009 Ok yeah this is like VB or something. And its impossible for me to convert that guys code, as well as not knowing the game environment. Let's see what we can do here: $color = 0xFFFFFF $coords = pixelsearch(0,0,1024,786,$color,0,0,$handle) If Not @error Then ControlClick("","",$handle,"left",2,$coord[0],$coord[1]) EndIf Of course you may need to change the area in which pixelsearch is doing its search. That is based on a game client with 1024x786 resolution set. That would search for a pure white pixel in the client and then double click it if it finds it. You can use the window info tool to find out what color you need and just plug it in Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 You can't run this from SciTE using autoit. The code is in VB.Edit: AutoIt v8??? OOPS V3 Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 Ok yeah this is like VB or something. And its impossible for me to convert that guys code, as well as not knowing the game environment. Let's see what we can do here: $color = 0xFFFFFF $coords = pixelsearch(0,0,1024,786,$color,0,0,$handle) If Not @error Then ControlClick("","",$handle,"left",2,$coord[0],$coord[1]) EndIf Of course you may need to change the area in which pixelsearch is doing its search. That is based on a game client with 1024x786 resolution set. That would search for a pure white pixel in the client and then double click it if it finds it. You can use the window info tool to find out what color you need and just plug it in SO CAN I GIVE YOU THE FULL SCRIPT? then can you edited it for me to make it work with no errors and then send it back to me? Link to comment Share on other sites More sharing options...
dantay9 Posted December 13, 2009 Share Posted December 13, 2009 No. We will help you, but nobody is going to do the work for you. If that is how you want to do it, go to rentacoder.com Link to comment Share on other sites More sharing options...
smcombs Posted December 13, 2009 Share Posted December 13, 2009 Lol, no way. You want to learn to code figure it out. AutoIt isnt that hard to learn and like I had to you need to learn it for yourself. We will give u some guidance here, but u need to figure the rest out Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 (edited) No. We will help you, but nobody is going to do the work for you. If that is how you want to do it, go to rentacoder.com???? im so confused tho, you guys are talking, but im not understanding anything, im sorry for being so clueless. maybe i shouldnt be messing with this, but i realy want to get it to workand HAHAHA very funny. lol rent a coder. btw i'm 14 sorry for troubling you all. Edited December 13, 2009 by scripTerroz Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 Lol, no way. You want to learn to code figure it out. AutoIt isnt that hard to learn and like I had to you need to learn it for yourself. We will give u some guidance here, but u need to figure the rest out ok ill try my best Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 Lol, no way. You want to learn to code figure it out. AutoIt isnt that hard to learn and like I had to you need to learn it for yourself. We will give u some guidance here, but u need to figure the rest outcan you give me some sort of link or tutorial on learning how to use scripts and edtis and stuffs. Link to comment Share on other sites More sharing options...
smcombs Posted December 13, 2009 Share Posted December 13, 2009 Use the help file that came with autoit. Its in the start menu program -----> autoit Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 Use the help file that came with autoit. Its in the start menu program -----> autoitk thnx, and btw what was the lil script you had on one of your post? was that the fix, but w/e i didnt even know what to do with that, im so hopeless. Link to comment Share on other sites More sharing options...
scripTerroz Posted December 13, 2009 Author Share Posted December 13, 2009 ehh, looks like im gonna have to read the WHOLE help file.. this time i gotta stick with it i guess. my uncle rick try to get me into visual basics, he gave me a whoel text book on it "visual basics begginer" or somtin and i could not stick with it i gave it back to him, too bad i coulda learned a lot about stuff. Link to comment Share on other sites More sharing options...
smcombs Posted December 13, 2009 Share Posted December 13, 2009 Well, stick with this. I just started to learn programming last year or scripting and programming. Now I have learned alot, but dont mess with VB this is much much much much easier, k. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now