Guest Rewad Posted February 17, 2005 Share Posted February 17, 2005 Tach I've got a little problem with my code, it's a simpel problem but i don't now ho to fix it. I want do count some operations, so I wrote a code like this: AutoItSetOption ( "SendKeyDelay", 25 ) HotKeySet("{ESC}", "End") Run("Notepad.exe", "", @SW_MAXIMIZE) WinWait("Unbenannt - Editor") WinActivate("Unbenannt - Editor") $timer = 1 While 1 Send( "{"&$timer&"}{ENTER}" ) $timer = ($timer+1) Sleep(500) WEnd Func End() Exit EndFunc He counts to 9 after that he write only the first number of the variable $timer. But he must wrote the whole number, how can I do that? I hope you understand my simple english Thanks for any help Link to comment Share on other sites More sharing options...
SlimShady Posted February 17, 2005 Share Posted February 17, 2005 I tested it like this and it worked here. AutoItSetOption ( "SendKeyDelay", 25 ) HotKeySet("{ESC}", "End") ;Run("Notepad.exe", "", @SW_MAXIMIZE) ;WinWait("Unbenannt - Editor") ;WinActivate("Unbenannt - Editor") $timer = 1 While 1 Send($timer & "{ENTER}") $timer = ($timer+1) Sleep(500) WEnd Func End() Exit EndFunc Link to comment Share on other sites More sharing options...
Guest Rewad Posted February 17, 2005 Share Posted February 17, 2005 yea Thanks for the fast help, it's works great. 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