Phenom 0 Posted October 12, 2010 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
Mison 1 Posted October 12, 2010 $pid = Run (@AutoItExe&" foo.au3") Sleep(3000) ProcessClose($pid) Hi ;) Share this post Link to post Share on other sites
Phenom 0 Posted October 12, 2010 $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
AlmarM 22 Posted October 12, 2010 (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 October 12, 2010 by AlmarM MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
Juvigy 49 Posted October 12, 2010 Put #NoTrayIcon in the beginning of your script Share this post Link to post Share on other sites