GuiDropFiles instead of 1GuiDropFiles for Gui with number 1 Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

GuiDropFiles instead of 1GuiDropFiles for Gui with number 1

28 Jul 2019, 11:06

Hi.
Working with several numbered Gui shows unusual behavior for Gui with number 1.
Using name or number before GuiDropFiles like 2GuiDropFiles for Gui with number 2, 3GuiDropFiles for Gui with number 3 and so on seems to be standard.
But 1GuiDropFiles for Gui with number 1 is not working. Instead using GuiDropFiles for Gui with number 1 is doing the job.
Wouldn't it be more consistent when even a Gui numbered with 1 could use 1GuiDropFiles too, instead of only GuiDropFiles?
This could avoid some misunderstandings. I've lost much time by understanding and testing this unusual agreement.
Script for testing
Einfach nur ein toller Typ. :mrgreen:
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: GuiDropFiles instead of 1GuiDropFiles for Gui with number 1  Topic is solved

28 Jul 2019, 11:14

For windows other than number 1, the window's name or number (if it has one) is used as a prefix for the special labels mentioned above; for example, 2GuiEscape
Source
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: GuiDropFiles instead of 1GuiDropFiles for Gui with number 1

28 Jul 2019, 11:22

This information, you gave, has been hidden very carefully :crazy:
I've needed half an hour or so, to understand by testing :mrgreen:
Now I remember this agreement.
Thanks.
Einfach nur ein toller Typ. :mrgreen:
teadrinker
Posts: 4331
Joined: 29 Mar 2015, 09:41
Contact:

Re: GuiDropFiles instead of 1GuiDropFiles for Gui with number 1

28 Jul 2019, 14:01

Code: Select all

Gui, 1: +Label1Gui
Gui, 1: Show, w300 h300
Return

1GuiDropFiles:
   MsgBox, Gui1
   Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, mikeyww and 178 guests