You can always involving an external script language
like VBScript with his popup() method.
You can create and call this VBScript from XYplorer too.
Example proof of concept:
Code: Select all
//User Settings:
$text = readfile("<xydata>\<xyini>",,1050);
$waitSec = 10;
//=====================================================
//=====================================================
// Code:
// - - -
//Prepare each line for VBS:
$out="";
foreach($line, $text, "<crlf>"){$out = $out . chr(34) . $line . chr(34) . " & vbCRLF _<crlf> & ";}
$out = replace($out, "&", "", ,strlen($out) -3, 1);
// - - -
//Create the VBS file:
$VBS = <<<HEREDOC
text = $out
SET WS = CreateObject("WScript.Shell")
'//WshShell.Popup strMessage [,intSecondsToWait] [,strTitle] [,intType]
WS.popup text, $waitSec
HEREDOC;
writefile("%tmp%\tempVBS.vbs", $VBS);
// - - -
//Execute the VBS:
run ("wscript ""%tmp%\tempVBS.vbs""");
// - - -
//delete [recycle=1], [confirm], [itemlist]
//delete 1, 0, "%tmp%\tempVBS.vbs";
//=====================================================
//=====================================================
The same without HEREDOC syntax:
Code: Select all
//User Settings:
$text = readfile("<xydata>\<xyini>",,1050);
$waitSec = 10;
//=====================================================
//=====================================================
// Code:
//
//Prepare each line for VBS:
$out="";
foreach($line, $text, "<crlf>"){ $out = $out . chr(34) . $line . chr(34) . " & vbCRLF _<crlf> & ";}
$out = replace($out, "&", "", ,strlen($out) -3, 1);
//
//Create the VBS file:
$VBS = "text = $out" . "<crlf>";
$VBS = $VBS . "SET WS = CreateObject(""WScript.Shell"")" . "<crlf>";
$VBS = $VBS . "'//WshShell.Popup strMessage [,intSecondsToWait] [,strTitle] [,intType]" . "<crlf>";
$VBS = $VBS . "WS.popup text, $waitSec" . "<crlf>";
writefile("%tmp%\tempVBS.vbs", $VBS);
//
//Execute the VBS:
run ("wscript ""%tmp%\tempVBS.vbs""");
//delete [recycle=1], [confirm], [itemlist]
//delete 1, 0, "%tmp%\tempVBS.vbs";
//=====================================================
//=====================================================
HTH?
.