### Need help (could be ahk bug) Topic is solved

Posted:

**10 Nov 2017, 09:21**Code: Select all

```
if (x1 != 1) {
x = 5
}
x1 = 1
wheelup::
x += 1
if (x > 5) {
x = 1
}
loop {
if (a%x% = 1) {
sendinput %x%
break
}
x += 1
if (x > 5) {
x = 1
}
}
return
wheeldown::
x -= 1
if (x <= 0) {
x = 5
}
loop {
if (a%x% = 1) {
sendinput %x%
break
}
x -= 1
if (x > 5) {
x = 1
}
}
return
```

Code: Select all

```
numpad1::
if (a1 != 1) {
a1 = 1
} else {
a1 = 0
}
```

The following variable name contains an illegal character:

a-1

any help?