Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 VBscript in .wsf support

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Patrick Bricout Posted - Jul 05 2007 : 09:19:03 AM
Hi,

Would it be possible to add the support for .wsf files containing VBscript.
Visual IDE already support it, I'd really love to have VA support.

It should be a major issue as you already support .vbs files

Best regards,
Patrick

Ex:
<job>
<script language="VBScript" src="MyLib.vbs"/>
<script language="VBScript">
' VBScript code goes here.
</script>
</job>
7   L A T E S T    R E P L I E S    (Newest First)
Patrick Bricout Posted - Jul 11 2007 : 06:52:11 AM
I launched Visual 2005, and then back Visual 2003 and now it's fine!
Weird?!?
Anyway thanks.
feline Posted - Jul 10 2007 : 2:40:21 PM
Based on this FAQ entry:

http://docs.wholetomato.com?W328

I simply edited the registry key, to become:

HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet8\\ExtVB = ".vb;.vbs;.dsm;.bas;.cls;.frm;.dob;.wsf;"

so I added .wsf; - note the trailing semi-colon. I did this with all IDE instances closed. When I re-loaded VS2005 I have the VA context and definition fields showing in my test WSF file, just like they are showing in my VBS file.

I did not need to clone any registry keys, since an entry already existed for ".wsf" in the correct part of the registry.

This is using VS2005 and VA 1559
Patrick Bricout Posted - Jul 10 2007 : 09:52:03 AM
cool, one bug less soon.

Any idea why I can't register .wsf to act like .vbs/.vb ?

Thanks
feline Posted - Jul 07 2007 : 3:57:28 PM
I am seeing the same problem with "set" and the alt-m list, thank you for the clear description:

case=7545
Patrick Bricout Posted - Jul 06 2007 : 10:51:06 AM
Just found that problem :
create a blank .VBS a copy/paste the following code
function A()
set a = new foo
end function

function B()
end function

function C()
end function

If I type alt-M, functions A() and C() are listed but B()
but if you remove "set" it works, i think the problem is because set optionnal in VB not in VBS

if I find something else I let you know.

Thanks
Patrick Bricout Posted - Jul 06 2007 : 05:21:30 AM
Thanks for your answer

I'm using Visual .Net 2003 (7.1).

I'm ok with the features.
I'm interested by features like "List Methods in File" which approximately works for VBS files.
I wonder why sometimes for no apparent reasons it doesn't recognize some functions/subs.

I tried modifying the keys :
HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet71\\ExtVB = ...
which was already containing .vbs
and/or ExtHtml

I also tried to add the the extension to Tools|Options|Projects|VC++ Build|C/C++ File Extensions and HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Languages\\File Extensions\\.xxx, but this shouldn't be necessary as Visual already recognise this type of file and highlight it.

without success the VA toolbar with Context/Definition/Goto Implementation only appears for the VBS files.

In addition, do you think that the support for VBS will be added in future released as an improvement (which is a bit different from VB but quite close).

Regards,
feline Posted - Jul 05 2007 : 09:51:52 AM
Based on this FAQ: http://docs.wholetomato.com?W328

you may find that adding ".wsf" to the key:

HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet8\\ExtHtml = ...

for the correct IDE helps. Note that you will need to rebuild VA's symbol databases as described in the FAQ. I have not tried this here, I don't recognise the file extension ".wsf" personally.

If this does do something don't expect miracles. From this page:

http://www.wholetomato.com/support/matrix.asp

we do support VB, but VBScript is a bit different.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000