Code: Select all
if x in A,b,cD, ...
I want to 'source out' static variables to a list
Code: Select all
ValuesForX = A,b,cD, ...
Code: Select all
if x in ValuesForX
It works in Python, but I cannot get it to work in AutoHotkey...
Code: Select all
if x in A,b,cD, ...
Code: Select all
ValuesForX = A,b,cD, ...
Code: Select all
if x in ValuesForX
Code: Select all
ValuesForX = A,b,cD
x = cD
If x in %ValuesForX%
MsgBox, 64, Success, It worked!
Code: Select all
x = ValuesForX
If x in ValuesForX,ValuesForY,ValuesForZ,TheseAreLiteralStringsNotVariables
MsgBox, 64, Success, It worked!
Code: Select all
if x in %list%
{
Send xxx
}
else
{
Send yyy
}
return
Code: Select all
list = a,b,c
x = a
if x in %list%
{
Send xxx
}
else
{
Send yyy
}
Code: Select all
global list
x =
Z::
%list% = A,b,cD
<if x in %list%>
<if x not in %list%>
return
Code: Select all
list = a,b,cD
Code: Select all
x = A
list = A,b,cD
z::
If x in %list%
Send xx
Else Send yy
Return
Code: Select all
If x != %list%
Code: Select all
x = A
list = A,b,cD
z::
If x not in %list%
Send xx
Else Send yy
Return
Users browsing this forum: NinjoOnline and 267 guests