comeonbaby Posted April 18, 2008 Share Posted April 18, 2008 I have a script to activate window in yahoo when i chatting but i don't understand why it doesn't work?? $i = 0 Do AutoItSetOption("WinTitleMatchMode", 4) $handle = WinGetHandle("classname=YSearchMenuWndClass",""); here is yahoo version 8.x If @error Then $handle = WinGetHandle("classname=ATL:00758E58",""); here is yahoo version 9.0 ; Send some text directly to this window's edit control WinActivate("class=ATL:00758E58","")// i dont understand here why i get correct class why it doesn't focus?? ControlSend($handle, "","[CLASS:YIMInputWindow; INSTANCE:1]","Testing.....") ControlSend($handle, "","[CLASS:YIMInputWindow; INSTANCE:1]","{ENTER}") Sleep(5000) $i = $i + 1 EndIf Until $i = 10Please help me about this. Link to comment Share on other sites More sharing options...
d4rk Posted April 18, 2008 Share Posted April 18, 2008 why don't you use WinActivate() ? [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
comeonbaby Posted April 18, 2008 Author Share Posted April 18, 2008 I am not sure about your question ??? But i want to use WinActivate() function beacuse i want when i click on a window that send a string on it only.If i don't do that it's send every window when i open from begin chat.But i don't understand why that function doesn't work? please tell me why? Link to comment Share on other sites More sharing options...
d4rk Posted April 18, 2008 Share Posted April 18, 2008 ah, sorry, i even didn't look at your codes how about Opt("WinTitleMatchMode",2) WinActivate(" - Instant Message") [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
comeonbaby Posted April 18, 2008 Author Share Posted April 18, 2008 It doesn't work.By anyway thank you.Somebody please help me? Link to comment Share on other sites More sharing options...
d4rk Posted April 18, 2008 Share Posted April 18, 2008 It doesn't work.By anyway thank you.Somebody please help me?You won't receive any help without giving a clearly explanation, what's exactly do you want?i had a project which include this problem and i think i can help you sold it [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
comeonbaby Posted April 18, 2008 Author Share Posted April 18, 2008 Uhm but i never get any problem with my script.It doesn't alert anything.My problem is i'm coding a script for auto insert a string when a window focused.It work on yahoo version 8 or later.Please reread my question.Why you said i don't specify what my problem ? Link to comment Share on other sites More sharing options...
d4rk Posted April 18, 2008 Share Posted April 18, 2008 Uhm but i never get any problem with my script.It doesn't alert anything.My problem is i'm coding a script for auto insert a string when a window focused.It work on yahoo version 8 or later.Please reread my question.Why you said i don't specify what my problem ?yes, i read your post but can't find a clue what you really want ... about your script , do you want when an instant message window appear, your script will send a message to it ? While 1 opt("WinTitleMatchMode",2) if WinWaitActive(" - Instant Message") Then send("Chao,hien tai toi khong co mat o day, vui long de lai tin nhan ... {enter}") endif wend [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
comeonbaby Posted April 18, 2008 Author Share Posted April 18, 2008 Oh great! thank you very much.So can you leave your yahoo ID, i have a many problem want to ask you. Link to comment Share on other sites More sharing options...
d4rk Posted April 19, 2008 Share Posted April 19, 2008 Oh great! thank you very much.So can you leave your yahoo ID, i have a many problem want to ask you.it's in my profile [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys 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