Jump to content

Help with script


houldy
 Share

Recommended Posts

Hello,

I'm new here and I'm using this program first time.

I need a script which still press Q on my keyboard, with pauza of 1 minute.

And also got funny question.

If I have 2 users on my computers, on 1 user i will run autoit and start script, will it still be working?

Link to comment
Share on other sites

  • Developers

Let me guess:

you want this for a game.

you haven't open the helpfile.

you haven't search the forum for the answer.

you want somebody to code it all for you.

Am I close? :)

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

HotKeySet("q", "Wait") 

while 1
sleep(100)
Wend

func Wait()
sleep(60*1000)
Endfunc

this will let the script sleep 1 minute if you press q and it will keep being active since it will stay in an endless while loop.

gl.

but like jos says.. try to look in the helpfile and look if you understand the script i just gave you since you wont get a free script all the time.

autoit is pretty simple ( i learned coding the basics like this in a couple of hours)

Edited by cageman
Link to comment
Share on other sites

Just tried it in notepad and it doesn't work. I quess my script stop, but im not sure. When I tried it to use in game it wasn't working too, and also blocked this hotkey.

What I'm doing wrong?

Should I first open notepad and next start script, and to keep it working should I press Q?

Link to comment
Share on other sites

  • Developers

I am pretty sure you wanted the script to press the Q for you in stead of it working as a Hotkey...

What about you first try to understand how to script in AItoIt3 and what the posted script does?

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...