brandall wrote a way to get the SSID from %WIFII, here's the steps:
1) Variable Split %WIFII , splitter <<<
2) Variable Split %WIFII2 , splitter Mac:
3) Variable Set: %SSID to %WIFII21
4) Variable Clear %WIFII1
5) Variable Clear %WIFII2*, enable pattern match
I run this task upon wifi connected, and %SSID gets set with the AP
name.