Jump to content

Recommended Posts

Posted

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]


            
        

        

        
    

    
    

    

                    
                    
                        
                    
                    
                

                    

                    
                    






    

    

    
        
            
                


    
        
    

                
                
                    
                        

                    
                
            
        
        
            
                


NegativeNrG
            
            
                Posted 
                
            
        
    
    
        


NegativeNrG
            
        
        
            
                
                    


    
        
    

                    
                    
                        

                    
                
            
            
                Active Members
                
            
            
                
                    
                        
                            
                                
                            
                                 165
                            
                                
                            
                        
                        
                    
                
            
            
                

            
        
    
    
        



    
        
            
                
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
           
           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.

Posted

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)

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
×
×
  • Create New...