Sign in to follow this  
Followers 0
kloyenz

help

6 posts in this topic

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



While 1
Sleep(1000)
Wend
That should do it. :idiot:

Share this post


Link to post
Share on other sites

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

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

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

$x = '<a href="bla.html">'

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