Sign in to follow this  
Followers 0
bellarosa

2 processes and priority setting

1 post in this topic

I'm new to autoit and ive just been messing around for a day. I've been trying to get this to work the messenger part is fine but it doesnt get to the skype part. Any help would be great thx :D .

CODE
HotKeySet ("{F1}", "_exit") ; this is a hotkey to help you execute a function

$var1 = WinWait ( "Skype - davidturner2727" , "", 5)

$var2 = Winwait ( "Windows Live Messenger", "", 5)

while 1

WinWait ( "Skype - davidturner2727" , "", 5)

Winwait ( "Windows Live Messenger" , "", 5)

while $var1 = 1

WinWaitActive( "Windows Live Messenger")

ProcessSetPriority ( "msnmsgr.exe", 2)

ProcessSetPriority ( "livecall.exe", 2)

winwaitclose( "Windows Live Messenger")

ProcessSetPriority ( "msnmsgr.exe", 0)

ProcessSetPriority ( "livecall.exe", 0)

Winwait ( "Windows Live Messenger", "", 5)

WEnd

while $var2 = 1

WinWaitActive( "Skype - davidturner2727")

ProcessSetPriority ( "Skype.exe", 2)

ProcessSetPriority ( "skypePM.exe", 2)

WinWaitClose( "Skype - davidturner2727")

ProcessSetPriority ( "Skype.exe", 0)

ProcessSetPriority ( "skypePM.exe", 0)

Winwait ( "Skype - davidturner2727" , "", 5)

WEnd

wend

Func _exit() ; simple function to exit the script

Exit

EndFunc

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