Sign in to follow this  
Followers 0
Phenom

How to close another script

5 posts in this topic

Let's say in my script I start another script like this:

ShellExecute("foo.au3")

Then let's say later on I want to close this script. What's the code to do that?

Share this post


Link to post
Share on other sites



$pid = Run (@AutoItExe&" foo.au3")
Sleep(3000)
ProcessClose($pid)

That works, but the icon stays in the taskbar. Is there a way to make it go away without having to use the mouse?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try searching the forums on System Tray Refresh.

EDIT: http://www.autoitscript.com/forum/index.php?showtopic=94447&st=0&p=678483&hl=system%20tray%20refresh&fromsearch=1&#entry678483

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

Put #NoTrayIcon in the beginning of your script

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