ID:2694182
 
Not a bug
BYOND Version:513
Operating System:Windows 10 Pro
Web Browser:Firefox 89.0
Applies to:Dream Maker
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
The F1 and F2 macros added in this way work, but the winget cannot find them.
Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
/client/verb/loocc()
world.log << "loocc"

/client/verb/reset_macros()
for(var/key in list("F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"))
winset(src, "macro-\ref[key]", "parent=macro;name=[key];command=loocc")
world.log << "[winget(src, "macro-\ref[key]", "command;name;")]"


Expected Results:
command=loocc;name=F1
command=loocc;name=F2
command=loocc;name=F3
command=loocc;name=F4
command=loocc;name=F5
command=loocc;name=F6
command=loocc;name=F7
command=loocc;name=F8
command=loocc;name=F9
command=loocc;name=F10
command=loocc;name=F11
command=loocc;name=F12

Actual Results:
command=;name=
command=;name=
command=loocc;name=F3
command=loocc;name=F4
command=loocc;name=F5
command=loocc;name=F6
command=loocc;name=F7
command=loocc;name=F8
command=loocc;name=F9
command=loocc;name=F10
command=loocc;name=F11
command=loocc;name=F12


Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?

When does the problem NOT occur?

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Workarounds:

As I mentioned in id:2694120 I think the fact that you're using \ref in your macro IDs is a major part of the problem, or likely the entire problem.
If written like this, winget finds F1 F2
/client/verb/loocc()
world.log << "loocc"

/client/verb/reset_macros()
for(var/key in list("F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"))
winset(src, "macro-[key]", "parent=macro;name=[key];command=loocc")
world.log << "[winget(src, "macro.[key]", "command;name;")]"


command=loocc;name=F1
command=loocc;name=F2
command=loocc;name=F3
command=loocc;name=F4
command=loocc;name=F5
command=loocc;name=F6
command=loocc;name=F7
command=loocc;name=F8
command=loocc;name=F9
command=loocc;name=F10
command=loocc;name=F11
command=loocc;name=F12
In response to T6751
But seems its not work, if macro renamed such as "default"

However macros work

/client/verb/loocc()
world.log << "loocc"

/client/verb/reset_macros()
for(var/key in list("F1","F2","F3"))
winset(src, "default-[key]", "parent=default;name=[key];command=loocc")
world.log << "[winget(src, "default.[key]", "command;name;")]"


command=;name=
command=;name=
command=loocc;name=F3


macro "default"


window "mainwindow"
elem "mainwindow"
type = MAIN
pos = 281,0
size = 640x440
anchor1 = none
anchor2 = none
is-default = true
saved-params = "pos;size;is-minimized;is-maximized"
title = "Space Station 13"
statusbar = false
is-maximized = true
icon = 'icons\\ss13_64.png'
macro = "default"
menu = "menu"
elem "mainvsplit"
type = CHILD
pos = 3,0
size = 634x416
anchor1 = 0,0
anchor2 = 100,100
saved-params = "splitter"
right = "rpane"
is-vert = true


window "outputwindow"
elem "outputwindow"
type = MAIN
pos = 281,0
size = 640x480
anchor1 = none
anchor2 = none
background-color = none
saved-params = "pos;size;is-minimized;is-maximized"
titlebar = false
statusbar = false
can-close = false
can-minimize = false
can-resize = false
is-pane = true
outer-size = 654x494
elem "browseroutput"
type = BROWSER
pos = 0,0
size = 640x480
anchor1 = 0,0
anchor2 = 100,100
background-color = #ffffff
is-visible = false
is-disabled = true
saved-params = ""
elem "output"
type = OUTPUT
pos = 0,0
size = 640x480
anchor1 = 0,0
anchor2 = 100,100
is-default = true
saved-params = ""

window "rpane"
elem "rpane"
type = MAIN
pos = 281,0
size = 640x480
anchor1 = none
anchor2 = none
background-color = none
saved-params = "pos;size;is-minimized;is-maximized"
is-pane = true
outer-size = 656x538
inner-size = 640x499
elem "rpanewindow"
type = CHILD
pos = 0,0
size = 640x499
anchor1 = 0,0
anchor2 = 100,100
background-color = none
saved-params = "splitter"
right = "outputwindow"
is-vert = false
elem "hosttracker"
type = BROWSER
pos = 392,25
size = 1x1
anchor1 = none
anchor2 = none
background-color = none
saved-params = ""

window "infowindow"
elem "infowindow"
type = MAIN
pos = 281,0
size = 640x480
anchor1 = none
anchor2 = none
background-color = none
saved-params = "pos;size;is-minimized;is-maximized"
title = "Info"
is-pane = true
outer-size = 656x538
inner-size = 640x499
elem "info"
type = INFO
pos = 0,0
size = 638x475
anchor1 = 0,0
anchor2 = 100,100
is-default = true
saved-params = ""
highlight-color = #00aa00
tab-background-color = none
on-show = ".winset\"rpane.infob.is-visible=true;rpane.browseb.is-visible=true?rpane.infob.pos=130,0:rpane.infob.pos=65,0 rpane.textb.is-visible=true rpane.infob.is-checked=true rpane.rpanewindow.pos=0,30 rpane.rpanewindow.size=0x0 rpane.rpanewindow.left=infowindow\""
on-hide = ".winset\"rpane.infob.is-visible=false;rpane.browseb.is-visible=true?rpane.browseb.is-checked=true rpane.rpanewindow.left=browserwindow:rpane.textb.is-visible=true rpane.rpanewindow.pos=0,30 rpane.rpanewindow.size=0x0 rpane.rpanewindow.left=\""
Yes, this is just your code going wrong.
Lummox JR resolved issue (Not a bug)
But why does it work for F3 F4 and others, but not for F1 F2?
Not sure. I think your other issue might bear more fruit but this one I can't separate from the code problems. At most, if there is an issue it's the same issue under the hood.