N1cE221 Posted August 21, 2016 Share Posted August 21, 2016 hello i have a little question ...how i can use/run this cod.. i became in every line an error, whats wrong ? var autoItX3 = new AutoItX3(); int Width = Screen.PrimaryScreen.Bounds.Width;// getting width of desktop int Height = Screen.PrimaryScreen.Bounds.Height; // getting height of desktop if (Keyboard.IsKeyDown(keyToHold)) // for example Keys.Alt { autoItX3.PixelSearch(Width / 2 - 20, Height / 2 , Width / 2 - 4, Height / 2 + 1, 13581886, variance); // variance - i usually use 45-60 if (autoItX3.error != 1) { autoItX3.MouseClick("Left"); autoItX3.Sleep(new Random().Next(1, 10)); } if (Control.MouseButtons != MouseButtons.Right) { autoItX3.PixelSearch(Width / 2 - 25, Height - 125, Width, Height - 124, 15845740, 20); // for "no scope" with shotgun and etc. if (autoItX3.error != 1) { autoItX3.MouseClick("Left"); autoItX3.Sleep(new Random().Next(1, 10)); } } } Link to comment Share on other sites More sharing options...
Developers Jos Posted August 21, 2016 Developers Share Posted August 21, 2016 Maybe you can explain first how you are running this and what the errors are? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
N1cE221 Posted August 21, 2016 Author Share Posted August 21, 2016 so i just put the code in the scite and then i save it and if i want to (run/convert to an .exe) it, then comes Line 5 ERROR { Link to comment Share on other sites More sharing options...
Developers Jos Posted August 21, 2016 Developers Share Posted August 21, 2016 Save it as *.au3? Well, the shown code isn't AutoIt3 syntax, so why do you expect it will work? Jos 3 hours ago, N1cE221 said: shotgun .. and seeing this I assume you found it somewhere on a Game forum, so please read our forumrules on this topic as well. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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