kloyenz 0 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 ? Share this post Link to post Share on other sites
MHz 80 Posted December 14, 2004 While 1 Sleep(1000) WendThat should do it. Share this post Link to post Share on other sites
sugi 0 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 Share this post Link to post Share on other sites
CyberGlitch 0 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 Share this post Link to post Share on other sites
kloyenz 0 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 ? Share this post Link to post Share on other sites
sugi 0 Posted December 14, 2004 $x = '<a href="bla.html">' Share this post Link to post Share on other sites