Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 VBscript in .wsf support
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Patrick Bricout
New Member

United Kingdom
5 Posts

Posted - Jul 05 2007 :  09:19:03 AM  Show Profile  Reply with Quote
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>

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 05 2007 :  09:51:52 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

Patrick Bricout
New Member

United Kingdom
5 Posts

Posted - Jul 06 2007 :  05:21:30 AM  Show Profile  Reply with Quote
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,
Go to Top of Page

Patrick Bricout
New Member

United Kingdom
5 Posts

Posted - Jul 06 2007 :  10:51:06 AM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

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

case=7545

zen is the art of being at one with the two'ness
Go to Top of Page

Patrick Bricout
New Member

United Kingdom
5 Posts

Posted - Jul 10 2007 :  09:52:03 AM  Show Profile  Reply with Quote
cool, one bug less soon.

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

Thanks
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 10 2007 :  2:40:21 PM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

Patrick Bricout
New Member

United Kingdom
5 Posts

Posted - Jul 11 2007 :  06:52:11 AM  Show Profile  Reply with Quote
I launched Visual 2005, and then back Visual 2003 and now it's fine!
Weird?!?
Anyway thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000