AutoHotkey / AutoHotkeyDocs

Documentation for AutoHotkey
https://autohotkey.com/
375 stars 746 forks source link

Update Gui.htm #702

Closed iPhilip closed 2 months ago

iPhilip commented 2 months ago

I am not sure if you saw my latest comment about this issue. In my opinion, the current language is ambiguous.

If you disagree, feel free to comment or close this PR.

Ragnar-F commented 2 months ago

In retrospect, I am concerned that "created by the same script" may lead to confusion. For example, take the above script where a WordPad window is created using Run 'Wordpad.exe', , , &PID. A user may assume that, because the WordPad window was created in the same script, it should work. In fact, it won't.

I would encourage you to reconsider and use "as long as the owner has the same Process ID". A link to a part of the documentation describing what a Process ID is might help those who don't know what it is.

Then it would be an incorrect assumption. The window is created by WordPad, not the script. The script only runs WordPad.

I will combine both phrases to reduce confusion.

iPhilip commented 2 months ago

Thank you