As promised an example to make a command that can be used to change line width during add connect.
axlCmdRegister("ns_clwidth", 'ns_clwidth, ?cmdType "general")
defun( ns_clwidth (clwidth)
axlShell(sprintf(nil "setwindow form.mini;FORM mini acon_line_width %f; setwindow pcb" atof(clwidth)))
now a funckey can be made like funckey l ns_clwidth
during add connect the user can write "l .1" (remember the space between l and the paramter which in the example is .1) and it will change the line width to 0.1 design units.
if not using l as a funckey for anything a series of shortcuts could be made like
funckey l1 ns_clwidth 0.1
funckey l2 ns_clwidth 0.2
funckey l3 ns_clwidth 0.3
now during add connect press l2 to change the line width to 0.2 design units.