I tried something like this, but it doesn't work:
Code: Select all
dz := WinGetTransparant "A"
If (dz > 254) {
WinSetTransparant 200, "A"
}
else {
WinSetTransparant 255, "A"
}
Any help is appreciated
Code: Select all
dz := WinGetTransparant "A"
If (dz > 254) {
WinSetTransparant 200, "A"
}
else {
WinSetTransparant 255, "A"
}
Code: Select all
dz := WinGetTransparent("A")
Code: Select all
MouseGetPos ,, &MouseWin
dz := WinGetTransparent(MouseWin)
If (dz := 255) {
WinSetTransparent 200, "A"
return
}
If (dz := 200) {
WinSetTransparent 255, "A"
}
gregster wrote: ↑14 May 2024, 13:54For comparisons in expressions, use =, and not the assignment operator := (which wouldn't check but overwrite the value of the variable).
Code: Select all
MouseGetPos ,, &MouseWin
dz := WinGetTransparent(MouseWin)
If (dz = 255) {
WinSetTransparent 200, "A"
} else {
WinSetTransparent 255, "A"
}
Users browsing this forum: mikeyww and 44 guests