xcxooxl Posted August 31, 2007 Share Posted August 31, 2007 i want to build somthing that will work only when im talking to somone on ICQ/MSN but when you open a conversion windows it goes by this nickname - Message and the first part of the name is always changing so how i can make it target the window by the last part? or like "*anything* - Message" Link to comment Share on other sites More sharing options...
John117 Posted August 31, 2007 Share Posted August 31, 2007 (edited) Maybe an adaptation of this $sText = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\", "Window Title") Edited August 31, 2007 by Hatcheda Link to comment Share on other sites More sharing options...
xcxooxl Posted August 31, 2007 Author Share Posted August 31, 2007 Maybe an adaptation of this$sText = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\", "Window Title")I dont understand how this can help me Link to comment Share on other sites More sharing options...
xcxooxl Posted August 31, 2007 Author Share Posted August 31, 2007 bump please i realy want to finish with this Link to comment Share on other sites More sharing options...
Nahuel Posted August 31, 2007 Share Posted August 31, 2007 Use Opt("WinTitleMatchMode",2) It makes it match any substring in the title. So you'll only have to use "Message" Link to comment Share on other sites More sharing options...
muhmuuh Posted August 31, 2007 Share Posted August 31, 2007 AutoItSetOption("WinTitleMatchMode", 2) WinWaitActive("- Message") ? I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. Link to comment Share on other sites More sharing options...
xcxooxl Posted August 31, 2007 Author Share Posted August 31, 2007 thank you its working now Link to comment Share on other sites More sharing options...
xcxooxl Posted August 31, 2007 Author Share Posted August 31, 2007 sorry for the double but now i got other problem i need it will detect for MSN and ICQ in the same time and MSN window names goes like this NickName - Conversation and also i want that it will always work i mean after doing the action i need it to keep detecting windows and such like return the action over and over agien and not only 1 time and exit script Link to comment Share on other sites More sharing options...
muhmuuh Posted August 31, 2007 Share Posted August 31, 2007 (edited) AutoItSetOption("WinTitleMatchMode", 2) while 1 If WinExists("- Message")Then do icq stuff If WinExists("- Conversation")Then do msn sutff HotKeySet("^s", "Stop") wend func Stop() Exit 0 EndFunc Press ctrl+s to stop the script Edited August 31, 2007 by muhmuuh I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. Link to comment Share on other sites More sharing options...
flip209 Posted August 31, 2007 Share Posted August 31, 2007 $msn = winwaitactive= " - converastion" While 1 if $msn = 1 then (run your process) sleep (1000) wend ????? " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
xcxooxl Posted August 31, 2007 Author Share Posted August 31, 2007 10x agien now i need to hide the window with SW_HIDE but while hiding i want it to type somthing like "Auto msg im busy! talk with me later and please do not respond to this msg " Link to comment Share on other sites More sharing options...
flip209 Posted August 31, 2007 Share Posted August 31, 2007 Well you could do Send("Auto msg im busy! talk with me later and please do not respond to this msg " & {enter}) if the text area is active. " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
muhmuuh Posted August 31, 2007 Share Posted August 31, 2007 (edited) If WinExists("- Message")Then WinActivate("- Message") WinWaitActivate("- Message") send("wazaaaa{ENTER}") WinSetState("- Message", "", @SW_HIDE) EndIf Same for MSN Edited August 31, 2007 by muhmuuh I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. Link to comment Share on other sites More sharing options...
flip209 Posted August 31, 2007 Share Posted August 31, 2007 If WinExists("- Message")Then WinActivate("- Message") WinWaitActivate("- Message") send("wazaaaa{ENTER}") WinSetState("- Message", "", @SW_HIDE) EndIf Same for MSN lol wazaaaaaaaaaaaaaaaaaaaa to you " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
xcxooxl Posted September 1, 2007 Author Share Posted September 1, 2007 ty for all the help i got another problem.. every time when i get a message it send the automsg but if its the same person it also does that.. i want it to remember to who it send and if it alrdy send to somone so in the second time it will just hide the window Link to comment Share on other sites More sharing options...
qazwsx Posted September 1, 2007 Share Posted September 1, 2007 you could write the names to an ini file. Look up wingettitle stringtrim, stringinstrg, iniwrite, and iniread. Now just get the title of the window, then use stringtrim to take off the - conversation and write the name to an ini file. Then before you send a message check if that name exists. 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