Traytip, variables, and little help with If arguments
Posted: 23 Jul 2016, 02:43
So, I'm trying to do a very simple test script. I already have the code to set the variables using ImageSearch, but I'm wondering if I can do this somehow..
Or would it be better (and by that, I mean comparatively less code) to just set multiple possible Traytips based on which variable isn't 0?
Also, I have done some scripting work in Lua before.. does ahk have anything that would look like..
Or am I already close? If/Else haven't been kind to me in this program. x_x
Code: Select all
Traytip, Test, "I am seeing " If VariableOne = 1 { %VariableOne% } Else If VariableTwo = 1 { %VariableTwo% } " on screen currently.
Also, I have done some scripting work in Lua before.. does ahk have anything that would look like..
Code: Select all
if(Variable==[amount] { do this } else { do that }