1.

Solve : VBScript min.max?

Answer»

I have a program that I want it to minimize it SELF then maximize it self 2 times using a loop how can I do this?

Tan_ZaQuote

I have a program that I want it to minimize it self then maximize it self 2 times using a loop how can I do this?

Not sure what you're referring to. VBScript does not have any native support for windows. If you use the cscript engine, the script runs within the cmd shell. If you use the wscript engine, the script runs inside windows without an entry on the taskbar.

If you create an object that SUPPORTS windows, then you'd need to use that object's properties to minimize and maximize the window.

Perhaps if you showed us the script we could be more helpful. he could be referring to full blown VB.

If that's the CASE, one would need to toggle the WindowState property.Well the code is not very important because it is just the very start of a new program right so then what happens next is that it MINIMIZES it self, then it restores it self back into what it was when it started. This I think runs in the command line.

'cscript min_max.vbs' is how I run it.

If you still can't help me with that information I'll show the code.

Tan_ZaQuote from: Tan_Za on January 08, 2009, 04:24:32 PM
Well the code is not very important because it is just the very start of a new program right so then what happens next is that it minimizes it self, then it restores it self back into what it was when it started. This I think runs in the command line.

'cscript min_max.vbs' is how I run it.

If you still can't help me with that information I'll show the code.

Tan_Za

VBScript doesn't handle windows, as Sidewinder stated.

do you want it to minimize the console window?yes that it what I ment...

If it was possible to minimize a msg DIALOG that you create?
e.g.

dim msg
msg = msgbox("Don't click ok, ok...")

just an example,
Tan_ZaMessageboxes are dialog windows- they cannot be minimized.

And minimizing the console window, I don't know if that's possible.hmm, that makes things a little worse meh I'll get used to it...
Perl looks like a better language to learn anyway.

Tan_ZaQuote from: Tan_Za on January 08, 2009, 05:02:52 PM
hmm, that makes things a little worse meh I'll get used to it...
Perl looks like a better language to learn anyway.

Tan_Za

Perl doesn't have window management either, at least not intrinsically. I believe there are some PPM's in development (probably done now) that implement both OLE interop and window creation/management.

problem being they aren't cross-compatible with any Linux Window management systems. But I doubt that was a concern anyway since VBScript isn't on Linux either.Yes I realized that and it doesn't really matter because to do this I just used C to do this via making my own window and messing with it.

Tan_Za


Discussion

No Comment Found