Jump to content

Newer SysTray_UDF.au3


Recommended Posts

Hello Guys,

I've got one of my old useful scripts, that closes down unnecessary processes and items in the tray first, then launches certain programs. I need to modify it now and it appears that SysTray_UDF.au3 #include is not valid anymore. Does anyone know if I can find the updated SysTray_UDF.au3?

Thanks,

Dirk.

#include "SysTray_UDF.au3"

Opt("SendCapslockMode",0)
Send("{NUMLOCK off}")
Send("{CAPSLOCK off}")
Send("{SCROLLLOCK off}")
;------------------------------------------------------------------------------------
;SYNERGY TO THE MAIN SCREEN
;------------------------------------------------------------------------------------
Send("{CTRLDOWN}{3}{CTRLUP}")
Send("{CTRLDOWN}{3}{CTRLUP}")
;------------------------------------------------------------------------------------
; CLOSE AutoIt.exe PROCESS IF RUNNING
;------------------------------------------------------------------------------------
Global $aPL = ProcessList("AutoIt.exe")
For $iCC = 1 To $aPL[0][0]
    ProcessClose($aPL[$iCC][1])
Next

;------------------------------------------------------------------------------------
;CLOSE ALL IE WINDOWS THAT ARE OPEN
;------------------------------------------------------------------------------------
Global $aPL = ProcessList("iexplore.exe")
For $iCC = 1 To $aPL[0][0]
    ProcessClose($aPL[$iCC][1])
Next
ProcessWaitClose("iexplore.exe")
;------------------------------------------------------------------------------------
;CLOSE ALL FILE FOLDERS OF EXPLORER and ITSELF WHERE THE SCRIPT IS IN
;------------------------------------------------------------------------------------
Opt("WinTitleMatchMode",4)
$WinList=WinList("classname=ExploreWClass")

For $a=1 to $WinList[0][0]
    WinClose($WinList[$a][0])
Next
$WinList1=WinList("classname=CabinetWClass")

For $b=1 to $WinList1[0][0]
    WinClose($WinList1[$b][0])
Next
;------------------------------------------------------------------------------------
;CLOSE ALL INSTANCES OF SHOOT
;------------------------------------------------------------------------------------
ProcessClose("shoot.exe")
ProcessWaitClose("shoot.exe")
;------------------------------------------------------------------------------------
;KILL 3 PROCESSES AND 3 TRAY ICONS IF THEY ARE ACTIVE - GFKeys , TrackIR , Snapper
;------------------------------------------------------------------------------------
$st_process = "GFKeys.exe"; change this if needed
_SysTrayIconRemove(_SysTrayIconIndex($st_process))
; Note that only the icon was removed; process still should be running
ProcessClose("GFKeys.exe")
ProcessWaitClose("GFKeys.exe")
$st_process = "TrackIR.exe"; change this if needed
_SysTrayIconRemove(_SysTrayIconIndex($st_process))
; Note that only the icon was removed; process still should be running
ProcessClose("TrackIR.exe")
ProcessWaitClose("TrackIR.exe")
$st_process = "Snapper.exe"; change this if needed
_SysTrayIconRemove(_SysTrayIconIndex($st_process))
; Note that only the icon was removed; process still should be running
ProcessClose("Snapper.exe")
ProcessWaitClose("Snapper.exe")
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...