Jump to content

script wont stop


chie
 Share

Recommended Posts

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

Yes i posted it in support but i got no replies

Thank 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...