Thank you, Kevin!
Your code works!
But my intention was different.
What i need is - if Notepad is already running, and its window is resized/moved, leave it as it is. But if it's not running - launch it, and move its window to a certain position.
So, your code simplification removes part of functionality I need.
Anyway, somehow your code works with w variable, and my code only works with full window specification, doesn't work with w.
All I need is to figure out why
Your code works!
But my intention was different.
What i need is - if Notepad is already running, and its window is resized/moved, leave it as it is. But if it's not running - launch it, and move its window to a certain position.
So, your code simplification removes part of functionality I need.
Anyway, somehow your code works with w variable, and my code only works with full window specification, doesn't work with w.
All I need is to figure out why
