Sign in to follow this  
Followers 0
Bi0haZarD

Question about Minimizing using AutoIt

4 posts in this topic

ok, I want to make a script that auto connectes and Minimizes Ventrilo so that i can add ventrilo to my startup.

For those that haven't used Ventrilo. there is an option to minimize it to the system tray. but when i use my script it puts it down in the taskbar.

taskbar = where normal apps go when you minimize

system tray = small icons by the clock

(just to clear that up)

now.. if i manually hit the minimize button in ventrilo it goes to the system tray. if i use WinSetState then it goes down to the taskbar.

heres my script, yes i know its small and rely's on sending "{space}" to connect. but can't remeber the command off my head to send a certain button lol.

Run("C:\Program Files\Ventrilo\Ventrilo.exe")
sleep(200)
Send("{Space}")
sleep(200)
WinSetState("Ventrilo", "",@SW_Minimize)

Share this post


Link to post
Share on other sites



Kind of clumsy but might this do this job? --

send("!{SPACE}n")

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

hmm didn't think of that. but if i use that it shows up in the taskbar and the system tray lol.

*EDIT*

oops yeap that did it. still had the WinSetState still in my code.

thanks :whistle:

Edited by Bi0haZarD

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

That's odd because all it does is select Minimise from the system menu, which should be equivalent to hitting the Minimise button on the other side.

Is there a button within the window itself that would tray minimise the window?

Edit: Problem solved!

Edited by LxP

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