Jump to content

WSH Compilation Error


Liv
 Share

Recommended Posts

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

Link to comment
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 ...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...