kloyenz Posted December 14, 2004 Share Posted December 14, 2004 hello, i wanna run autoit in the background until i press het hotkey but i have a function now: $i = 1 While $i <= 0 sleep ("10000") WEnd but autoit simple stopts after 1 second. What else can i use to keep autoit running until i press the hotkey ? Link to comment Share on other sites More sharing options...
MHz Posted December 14, 2004 Share Posted December 14, 2004 While 1 Sleep(1000) WendThat should do it. Link to comment Share on other sites More sharing options...
sugi Posted December 14, 2004 Share Posted December 14, 2004 You tell AutoIt to loop while $i is smaller or equal to 0. But you set $i to 1 right before that. An endless loop is easy to get: While 1 .... WEnd Link to comment Share on other sites More sharing options...
CyberGlitch Posted December 14, 2004 Share Posted December 14, 2004 This will run indefiently, pauseing every second. Then have your hotkey press code do whatever you want. While 1 Sleep(1000) WEnd Link to comment Share on other sites More sharing options...
kloyenz Posted December 14, 2004 Author Share Posted December 14, 2004 ok just found it but another problem i want autoit to send something like that <a href="bla.html"> but it gives an error at the " how can i send " in an sentence ? Link to comment Share on other sites More sharing options...
sugi Posted December 14, 2004 Share Posted December 14, 2004 $x = '<a href="bla.html">' 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