Closed ghost closed 6 years ago
To run a node js bot you must get in the script directory with a command prompt and type node bot.js
im getting this now
Error: Could not execute GraphicsMagick/ImageMagick: gm "convert" "screenshot.jpg" "-crop" "351x233+606+334" "answers.jpg" this most likely means the gm/convert binaries can't be found
at ChildProcess.
Please look at previous issues 😉
i did however the link you provided was for mac
What did you added to your PATH on windows ?
what do you mean by path? also im installing graphics magick to see if it works
There's a PATH field in you environment variables, the paths you put in are the paths your cmd will look to execute your commands
where would i find environment variables? also after installing magick i got this
Screenshot done Answers resized node-tesseract: Running 'tesseract answers.jpg C:\Users\AppData\Local\Temp\tmp-7696XTtI7VD7bu61' node-tesseract: Preprocessor cleanup { Error: Command failed: tesseract answers.jpg C:\Users\AppData\Local\Temp\tmp-7696XTtI7VD7bu61 'tesseract' is not recognized as an internal or external command, operable program or batch file.
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
killed: false, code: 1, signal: null, cmd: 'tesseract answers.jpg C:\Users\AppData\Local\Temp\tmp-7696XTtI7VD7bu61' }
Download this https://github.com/tesseract-ocr/tesseract/wiki/4.0-with-LSTM#400-alpha-for-windows Then add these 2 paths to the Path system environmental variable ( Open Control Panel » System » Advanced » Environment Variables) C:\Program Files (x86)\Tesseract-OCR C:\Program Files (x86)\Tesseract-OCR\tessdata
it asks for a variable value, what should i put
Install the tesseract-ocr exe and add this to your PATH: ;C:\Program Files (x86)\Tesseract-OCR;C:\Program Files (x86)\Tesseract-OCR\tessdata
Don't forget the first semicolon
it wont let me click ok till i add a value
You shouldn't create a new variable but add it to the existing PATH variable
so it should like like this now
yes, sorry but you can remove the semicolon before the paths, I thought you where using Windows 7 but in Windows 10 you do not need the semicolon
thank it works!
you're welcome 🙂
question, what program did you use to find the cordinates
Didn't used it but http://www.adminsehow.com/wp-content/uploads/2012/03/MousePos.exe looks easy to use
I get this error when opening bot.js