chie Posted November 4, 2006 Share Posted November 4, 2006 1. Run Script 2. Open Internet explorer 3. Press a & this what should happen if u press a: Search window will appear & program should search for word "pink apple" & if this word was not found then it will press escape & if this word was found then it will press tab. & this is what is happening if u press a: Search window will appear & program keeps sending this into the search input box: pink pplepink pplepink pplepink pplepink pplepink pplepink pplepink pple ETC... USING: AutoIt Version 3.2.0.1 SciTE Version 1.71 Win XP HotKeySet("a", "START") While 1; Need to keep the program running until you press the hotkey Sleep(10) WEnd Func START() ;~ Search for pink apple ;~ ------------------------------------------------------------------------- send("^{f}") Sleep(1500) send("pink apple") Sleep(1500) send("{enter}") Sleep(1500) ;~ If Not found window will appear press ESC ;~ ------------------------------------------------------------------------- if WinActive("Microsoft Internet Explorer") then ; Sleep(1500) send("{esc}") Else ;~ If pink apple was found press TAB ;~ ------------------------------------------------------------------------- send("{tab}") EndIf EndFunc Link to comment Share on other sites More sharing options...
GaryFrost Posted November 4, 2006 Share Posted November 4, 2006 you didn't tell it to stop this should be in support SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Uten Posted November 4, 2006 Share Posted November 4, 2006 Try with hotkeyset("x","START") Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
chie Posted November 4, 2006 Author Share Posted November 4, 2006 this should be in supportYes i posted it in support but i got no repliesThank you. it took me 2 days & now i understood why was it was going crazy. Link to comment Share on other sites More sharing options...
GaryFrost Posted November 4, 2006 Share Posted November 4, 2006 Yes i posted it in support but i got no repliesThank you. it took me 2 days & now i understood why was it was going crazy.what you do in a that case is *bump* the thread SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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