WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: spl on March 20, 2024, 06:31:12 AM

Title: New Version
Post by: spl on March 20, 2024, 06:31:12 AM
Nice. I like it. Had to go back to an old USB drive to resuscitate my Avatar. Funny that as I type this I get a darker font, but when reading it font is lighter and a little harder on the eyes. [not a complaint]
Title: Re: New Version
Post by: td on March 20, 2024, 05:39:53 PM
We are working on a short timeline so we haven't performed a lot of fine-tuning yet. I would have to brush up on PHP skills to hack syntax coloring into the forum's source code so it could be quite a while. I have a WIL script somewhere that implements WIL script BBC syntax coloring so if I can only find it, I will post it here. 
Title: Re: New Version
Post by: kdmoyers on March 25, 2024, 09:19:05 AM
This is cool!  Reminds me of Win XP, my favorite version of Windows.
Title: Re: New Version
Post by: oldone1 on March 25, 2024, 11:18:38 AM
I am just coming back to Winbatch after being hospitalized. I was using
Winbatch on my XP machine which has stopped running. I am now using a
Windows 10 Home laptop. I purchased the latest  version, but when I
installed it(32 bit version), the default program for double clicking a
WBT was NOTEPAD.  I was able to change this to winbatch.exe via a
Settings option for default apps. I was wondering if this was normal as
I did not see anything about this in the installation instructions.

Thank you for any assistance.  If this is in the wrong section, I apologize.
Title: Re: New Version
Post by: td on March 25, 2024, 01:34:35 PM
That is not normal. The setup.exe executable creates file associations for the ".wbt" file extension in the registry. Setup.exe has been tested on Windows 10/11 and in our experience works as just described.

Not sure why it didn't work that way for you but at least you are knowledgeable enough to correct the problem. Did you notice anything unusual while the setup program was performing the installation?
Title: Re: New Version
Post by: ChuckC on March 26, 2024, 01:14:16 PM
What happened to the option to view only unread threads?
Title: Re: New Version
Post by: oldone1 on March 26, 2024, 06:38:42 PM
I did not see anything quirky during the install.  However,after the install completed, I noticed that there was a new directory in
program files named Winbatch in addition to the one in program files (86) where all of the installation files were placed. There was a
sub directory named System created under the Winbatch directory. 
This sub directory was empty.  However, some DLL's were added when I installed some extenders. Possibly that was done because some of the
extenders had 64 bit versions.  I have not yet tried to execute any of my saved wbt's from my old XP machine.  If I come across any  problems I will be asking more questions.  Thanks for the timely response   
Title: Re: New Version
Post by: td on March 27, 2024, 07:18:11 AM
The subdirectory "system" is where all the files that make WinBatch go live. The bulk of the files are under the "Program Files(x86)" directory with the 64-bit specific files under "Program Files". If you do not have files in the "Program Files(x86)" version of the "System" folder, something went radically wrong with your installation. You need to reinstall WinBatch+Compiler.
Title: Re: New Version
Post by: td on March 27, 2024, 08:17:25 AM
Quote from: ChuckC on March 26, 2024, 01:14:16 PMWhat happened to the option to view only unread threads?

Click the "Unread posts" menu item after the date, under the forum logo.
Title: Re: New Version
Post by: oldone1 on March 28, 2024, 05:54:01 PM
I checked the Program (x86) System Directory and all of the stuff was there.  I did execute some of my old XP WBTs and with minor  changes due to differnt folders, they all worked.  However, each execution had a UAC verification appear. Since this machine is a single user machine and I am a protected admin, I was able to execute my wbt script.   I read some stuff about UAC and manifest, but I do not know enough about these things.  My old XP machine did have UAC but I only did a brief investigation  and I was always able to accept elevation. This a very minor annoyance that I can live with.  After reading stuff  about UAC and manifests, I realized that changing extensions could stop the verification from appearing.  This would not be a good solution due to the fact that have scripts written in vbscript and autoit  that invoke wbts using the wbt extension. As always thanks for responding.
Title: Re: New Version
Post by: td on March 28, 2024, 10:51:31 PM
You will have to either change the scripts that call your WinBatch scripts to the correct extension or change your system's UAC setting.
Title: Re: New Version
Post by: JTaylor on April 14, 2024, 07:10:08 PM
In case it is helpful, I had some time today and looked up a JS Syntax coloring script, here is the code I fixed to do WinBatch coloring.  You can easily add other languages.  All the others you probably would want are already configured.  This probably needs a little tweaking as I only added the Functions from the main help file.  Tried to make it look like it does in WinBatch Studio.  I know you mentioned PHP but figured JS would work as well.

https://prismjs.com

I am happy to produce some PHP code, as I have time, if that is required.

Jim

Quote from: td on March 20, 2024, 05:39:53 PMWe are working on a short timeline so we haven't performed a lot of fine-tuning yet. I would have to brush up on PHP skills to hack syntax coloring into the forum's source code so it could be quite a while. I have a WIL script somewhere that implements WIL script BBC syntax coloring so if I can only find it, I will post it here. 
Title: Re: New Version
Post by: td on April 15, 2024, 08:29:06 AM
I appreciate the offer. We do have PHP code for syntax coloring. The problem is integrating that code into the forum in all the required places. The issue isn't the difficulty but the tedium and finding the time to perform it.

I am not familiar with the Javascript you mentioned. I will need to check it out. It may be useful in another context.
Title: Re: New Version
Post by: JTaylor on April 15, 2024, 11:53:50 AM
Understood.  Hopefully it will prove useful.  While no expert it looks like they did a nice job.

Jim