Sign in to follow this  
Followers 0
Liv

WSH Compilation Error

3 posts in this topic

In a VBScript I use the following:

WinSetState("Untitled -", "", @SW_HIDE)

When trying to run this script, WSH says "Compilation Error Microsoft VBScript - illegal chariacter. Error code 800A0408".

So, @ is an illegal character ...

How can I then Hide, Minimize, Maximize .... Any clues?

THX in advance, Liv

Share this post


Link to post
Share on other sites



It would be something like oAutoit.SW_HIDE and oAutoit.WinSetState


Who else would I be?

Share this post


Link to post
Share on other sites

It would be something like oAutoit.SW_HIDE and oAutoit.WinSetState

<{POST_SNAPBACK}>

Thank you ... Thank you .... so much. Yes - it works. The syntax is:

ret = ax.WinSetState ("MingDeMong","",ax.SW_Minimize)

so.Popup ret

so ... don't use @-character as suggested in the online tutorial ...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0