With html table and javascript. Click the SSDI to select it. No need to type:
wprint "SSID: "
textbox networkSSID
textboxID = HTMLID()
html |<script>function selectWifi(ssid){document.getElementById('|
html textboxID
html |').value = ssid;}</script>|
wprint "<br>Password: "
passwordbox networkPW
wprint "<br>"
button "Scan for networks" [doScan]
button "Connect" [connectWifi]
wprint "<br>"
wait
[doScan]
n = wifi.scan()
n = n - 1
n = replace(n,".00","")
html "Number of network found = "
html n
html |<table border="1">|
for x = 1 to n
html |<tr><td onClick="selectWifi('|
html wifi.ssid(x)
html |');">|
html wifi.ssid(x)
html "</td><td>"
html wifi.rssi(x)
html "</td></tr>"
next x
html |</table>|
wait
[connectWifi]
connect networkSSID networkPW
wait
And here with dropdown without javascript.
button "Scan for networks" [doScan]
wprint "<br>"
wait
[doScan]
let listWifis = ""
n = wifi.scan()
n = n - 1
html "Number of network found = "
html n
for x = 1 to n
let listWifis = listWifis & wifi.ssid(x)
let listWifis = listWifis & ","
next x
wprint "<br>Select SSID: "
dropdown listWifis selectedWifi
wprint "<br>Password: "
passwordbox networkPW
button "Connect" [connectWifi]
wait
[connectWifi]
connect selectedWifi networkPW
wait
Hope this helps somebody.
http://jokenkosto.blogspot.com/