Code: Select all
Msgbox sh=%sh%`nsw=%sw%`nscreenheight=%a_screenheight%`nscreenwidth=%a_screenwidth%
Code: Select all
sw := A_screenwidth
I'm still not sure what caused sw=0 in the first place. If the above works good enough for you then you can just remove the line starting with "Msgbox sh= ..." that we added and save and keep using the BookCrop.ahk file.
But if you'd like to help troubleshoot the cause of the problem some more then go to this Autohotkey forum post and copy and paste the code there to a blank notepad file and save as test.ahk and then run it. A box should pop up that looks something like this: Check if there is a line named "Width" and one named "Height" in the list. Or do the lines have words in German? If so what would the equivalent of "Width" and "Height" be in the list?