01-21-2019, 03:53 AM
try this change code a little to find whatever is after the :
Function Get_SSIDandPassword
Function Get_SSIDandPassword
str wlpassword wlname cl="cmd.exe /C NETSH WLAN SHOW INTERFACE | findstr /r ''^....SSID''"
RunConsole2 cl wlname
wlname.trim
findrx(wlname "^.+\:(.+)$" 0 1 _s 1)
_s.trim
wlname=_s
out wlname
cl=F"cmd.exe /C netsh wlan show profile name={wlname} key=clear | findstr Key"
RunConsole2 cl wlpassword
wlpassword.trim
findrx(wlpassword "^.+\:(.+)$" 0 1 _s 1)
_s.trim
wlpassword=_s
out wlpassword