Hi! I wrote a hotkey script based on mouseclicks for myself and coworkers which works great, but one coworker has a new monitor with a higher resolution and it requires me to change the position of one of the clicks. I wanna make my script detect the screen width and if it's 1920, do one thing, if it's another do another thing. I can't seem to get it to work. When I try the code below I get the message "Width is 1920 and it wasn't equal". What's wrong with my variable or if statement? Any help would be greatly appreciated. Here's my sample code

problem is ure double-dereferencing A_ScreenWidth when you do percent signs within the context of an expression ..... := %....%. this means it looks for a variable named 1920 (which is undeclared, and hence blank) and tries to fetch its value
u can fix this by replacing the expression assignment with a traditional/legacy assignment: