Sung Posted March 30, 2012 Share Posted March 30, 2012 Hi I´m new here but already have a request^^ sorry can someone help me and write a little code ? i need a bot that do something like this I click with the Right Mouse and then the bot press "A" then i Press R.Mouse again and the bot Press"B" ect it should loop^^ [ R.M -> A -> R.M -> B -> R.M -> A -> R.M -> B ] i only know a little bit about scripting^^ and have no idea how to make it with the mouseclick^^ thx Sung Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 30, 2012 Moderators Share Posted March 30, 2012 Hi, Sung, welcome to the forum. Can you please detail exactly what program you're trying to automate with your script? The term "bot" sends up red flags here, as it usually involves automating games, which is against the forum rules. You can find these rules spelled out very clearly here.If, after you have determined you are not breaking the rules, you would like assistance, I would suggest explaining better what you are trying to do "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Sung Posted March 30, 2012 Author Share Posted March 30, 2012 (edited) hi logan^^ i don´t need it for a game its for my hobby^^ i try to mesh a picture in adobe illustrator^^ but its so damn hardcore boring cause cause after i have the mesh i need to colorate it so i have to chose the point (mouseclick) then press " I " then mouseclick at the picture then press " A " then choose another point^^ and so on ^^I and A isn´t near to each other so its hard to do it with my little hands^^hope u can help me^^the mesh look like that^^ i have to klick every white point ^^ and thenn " i " then click then "a" then next point^^ so it will be much more easy if u can help me^^http://imageshack.us/photo/my-images/716/crazyp.jpg/ Edited March 30, 2012 by Sung Link to comment Share on other sites More sharing options...
VixinG Posted March 31, 2012 Share Posted March 31, 2012 (edited) Hehe it's easy:#include <Misc.au3> Local $now = 0 ; 0 = Bot is pressing A on R.Mouse click ; 1 = Bot is pressing B on R.Mouse click :) While 1 If _IsPressed(02) And $now = 0 Then $now = 1 Sleep(100) Send("{a}") ElseIf _IsPressed(02) And $now = 1 Then $now = 0 Sleep(100) Send("{b}") EndIf WEndI hope I helped! /edit: If the delay is too big or too low, change Sleep(100) to lower (or bigger) value or delete this line.- It's ready to use, you don't need to change any other values.You can edit 'a' and 'b' and (02) for other keys, which you can find here:http://www.autoitscript.com/autoit3/docs/libfunctions/_IsPressed.htmHappy meshing! Edited March 31, 2012 by VixinG [indent=3][/indent] Link to comment Share on other sites More sharing options...
Sung Posted March 31, 2012 Author Share Posted March 31, 2012 thank u soooo much^^ it works perfectly^^ VixinG 1 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