Ensuring syntax checking is on when writing scripts

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4090
Joined: 28 Feb 2012 19:27

Ensuring syntax checking is on when writing scripts

Post by klownboy »

Lately I've been using a Customized File Association to ensure Syntax Checking is on when I'm either writing, testing, or modifying scripts.

Code: Select all

"Run XYS Script [Shift]|:openwith" xys>::selectitems <pfaitem>;if (get("Shift")){load "<pfaitem>";} else {savesettings 1;if (getkey("ScriptStrictSyntax", "Settings") == "0") {#758;}openwith "D:\Tools\AkelPad\AkelPad.exe", s;}
It works to ensure Syntax Checking is on but ideally, I'd like to turn it off when I'm done. Although it's not really necessary to turn it back off obviously so I simply leave it on. XYplorer doesn't have something equivalent to AHK's command "WinWaitClose" (EDIT: actually "runwait" may be more appropriate here) which waits until a program close and then will perform an action. Something along those lines would be a nice addition to XYplorer. Though I don't know if it would be possible since it would require monitoring the system to see if that program has closed. Any thoughts?
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

Post Reply