James Posted December 4, 2006 Share Posted December 4, 2006 Im making an auto replier, but for some reason it doesnt want to activate a minimized window. ;-------------------------------------- ; ; Name: MSN Reply ; Author: Touch en Stride ; ;-------------------------------------- $away = "I am away at the moment, I will be back shortly." ; What to Send WinActivate("- Conversation") Send($away) It doesnt want to work though Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Joon Posted December 4, 2006 Share Posted December 4, 2006 You could use WinSetState with @SW_RESTORE. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 4, 2006 Developers Share Posted December 4, 2006 Im making an auto replier, but for some reason it doesnt want to activate a minimized window. ;-------------------------------------- ; ; Name: MSN Reply ; Author: Touch en Stride ; ;-------------------------------------- $away = "I am away at the moment, I will be back shortly." ; What to Send WinActivate("- Conversation") Send($away) It doesnt want to work though Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
James Posted December 4, 2006 Author Share Posted December 4, 2006 Hmm, Joon: That doesnt activate the right window. JdeB: I don't know where I put that one. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Joon Posted December 4, 2006 Share Posted December 4, 2006 Hmm, Joon: That doesnt activate the right window.JdeB: I don't know where I put that one.Typically, Opt goes on the top of your script. Link to comment Share on other sites More sharing options...
James Posted December 4, 2006 Author Share Posted December 4, 2006 Right, well do I need to add anything else? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
James Posted December 4, 2006 Author Share Posted December 4, 2006 Thanks to everyone who helped me, I have finally got it working! Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Developers Jos Posted December 4, 2006 Developers Share Posted December 4, 2006 (edited) JdeB: I don't know where I put that one.Have you even tried to look it up before typing your reply ? ... But let me ask the question anyways... : What do you think: Before or After the WinActivate? Edited December 4, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
James Posted December 4, 2006 Author Share Posted December 4, 2006 Before Now, I have another problem. What would I do, if the window doesnt exist? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
AzKay Posted December 4, 2006 Share Posted December 4, 2006 If WinExists("- Conversation") Then ... # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
James Posted December 4, 2006 Author Share Posted December 4, 2006 I fixed it just before you sent that. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
realkiller Posted December 5, 2006 Share Posted December 5, 2006 (edited) i fixed the code for you While 1 $Gesprek = "hi iam not there" Opt("WinTitleMatchMode", 2) If WinExists("- Gesprek")Then WinActivate("- Conversation") ControlSend("- Conversation", "", "DirectUIHWND1", $Gesprek&"{ENTER}{ESC}") EndIf WEnd Edited December 5, 2006 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now