Jump to content

trouble with a basic script


codeX
 Share

Recommended Posts

Hello, newb here with a question.

I really dont need anything fancy here, i've tried myself but cant seem to get it right.

All i need is a script to loop the pressing of the fkeys 1-12 with a 2 second interval in between each.

I've written it in notepad and saved it as a .au3 but get errors off the first line?

Send({F1})

Sleep(2000)

Send({F2})

Sleep(2000)

Send({F3})

Sleep(2000)

Send({F4})

Sleep(2000)

Send({F5})

Sleep(2000)

Send({F6})

Sleep(2000)

I dont know how to loop it either.

Can someone please help me out?

Thanks

Link to comment
Share on other sites

all send keys must be in quotes

it should be send("{f1}")

i make that mistake sometimes

if you are sending strings that you saved as a variable you can do that without quotes

$greetings = "hello"

send($greetings)

but otherwise yeah - use quotes

you knwo there is a tool in the editor program that allows you to record your actions - its a macro recorder - very handy for beginners

Link to comment
Share on other sites

Hello, newb here with a question.

I really dont need anything fancy here, i've tried myself but cant seem to get it right.

All i need is a script to loop the pressing of the fkeys 1-12 with a 2 second interval in between each.

I've written it in notepad and saved it as a .au3 but get errors off the first line?

Send({F1})

Sleep(2000)

Send({F2})

Sleep(2000)

Send({F3})

Sleep(2000)

Send({F4})

Sleep(2000)

Send({F5})

Sleep(2000)

Send({F6})

Sleep(2000)

I dont know how to loop it either.

Can someone please help me out?

Thanks

go to help and search "pause" you will see hotkeyset()

use that to run your script

8)

NEWHeader1.png

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...