Sign in to follow this  
Followers 0
monte

winwait

4 posts in this topic

Hello, I need some help here, please. My script hangs after execution and doesn't finish. Notepad opens and gets activated but the text never gets written, and I have to kill the script process. Thanks.

run("notepad")
winwait("Untitled")
winactivate("Untitled")
send("sometext")
[\code]


            
        

        
            
                

    
        
            
        
    


            
        

        
            
                
                
                
            
            
                
            
        
        
    

    
        
            Share this post
            
Link to post
            
            
            

            
                Share on other sites
                

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

            
        
    


    

                    
                        





(adsbygoogle = window.adsbygoogle || []).push({});




                    
                
                    
                    
                    






    
    
        
NegativeNrG   

    
        
    
             0
    
        
    

        
            
                Prodigy
            
            

            
                

    
        
    

            
            Active Members
            
            
                

    
        
    
             0
    
        
    

                165 posts
                
                

            
        
    
    
        


    

    
        
            
            
                
            
            
        

        
    #2 · 
            Posted 
            
            
            
        
    

    


            
        
            umm, it works fine for me, try adding a loop.

run("notepad")
winwait("Untitled")
winactivate("Untitled")
send("sometext")

While 1
   Sleep(50)
WEnd

[size=20]My File Upload[/size]Register at my site and upload.

Share this post


Link to post
Share on other sites

Try modifying your script to language you use on your Windows. By default the code is working on English Windows. In polish version it will be "Bez tytułu - Notatnik" instead of "Untiled". Check what name of Window you have when you open new Notepad window.


My little company: Evotec (PL version: Evotec)

Share this post


Link to post
Share on other sites

thanks, that worked.

Share this post


Link to post
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
Sign in to follow this  
Followers 0