complicated Posted April 8, 2018 Share Posted April 8, 2018 Good day, I am new to forums as well as Auto IT. Here is what should be a very simple script for a game I'm playing: #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> HotKeySet("R", "_SL") Func _SL() Send ("{F11 down}") MouseWheel($MOUSE_WHEEL_DOWN, 1) Sleep(Random(20, 50, 1)) MouseWheel($MOUSE_WHEEL_UP, 1) Send ("{F11 up}") But for some reason I am receiving the following errors: "C:\Users\complicated\Desktop\SL.au3"(24,1) : error: syntax error "C:\Users\complicated\Desktop\SL.au3"(24,1) : error: Statement cannot be just an expression Has anyone any ideas as to why I am receiving these errors? Thank you in advance. - CL Link to comment Share on other sites More sharing options...
Developers Jos Posted April 8, 2018 Developers Share Posted April 8, 2018 5 minutes ago, complicated said: Here is what should be a very simple script for a game I'm playing: @complicated, Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. (there is also a link in my signature) Please read them now particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. 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