TheRauchster101 Posted July 13, 2011 Share Posted July 13, 2011 (edited) Trying to replace a movement keystroke in a command with a user-defined variable so that people with a customized key binding can define their own movement keys. I know how to make this work: -zip- But I have no idea how to replace W/A/D with the constants $MoveForward/$MoveLeft/$MoveRight When I try to type in Send("{$MoveForward DOWN}"), or Send($MoveForward DOWN), or any other combination that I can think of, it won't work. Is this possible to do? And if an advanced user could look over the script and see if they can spot any glaring errors, that'd be appreciated. I've been going through this piece by piece, and putting it together in chunks. I have no idea if this is even going to work when I try it. Edited July 13, 2011 by Jos Link to comment Share on other sites More sharing options...
TheRauchster101 Posted July 13, 2011 Author Share Posted July 13, 2011 Side Note: I've already taken care of the syntax errors with declaring the variables for X/Y Co-ords. And the mismatched $Spear/$Spears constant was fixed. When running this, absolutely none of the constants defined by the .ini file worked as I wanted them to. At least, not the keystrokes. Delays seemed to be fine. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 13, 2011 Developers Share Posted July 13, 2011 Please read the forum rules. 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