Jump to content

simple question


Recommended Posts

i'm trying to press simple keys over and over again, for my web browser so the program can click on certain links over and over again

i wrote the code here

Send("{TAB 15}")

{ENTER}

Send("{TAB 36}")

{ENTER}

Send("{TAB 30}")

{ENTER}

that's my total code just repeat for around 3 times

but it won't work.. when i try to run it in .exe error comes out

any help plz ^^"

by the way how do i specify it so it knows which browser tabbing at?

Link to comment
Share on other sites

  • Moderators

i'm trying to press simple keys over and over again, for my web browser so the program can click on certain links over and over again

i wrote the code here

Send("{TAB 15}")

{ENTER}

Send("{TAB 36}")

{ENTER}

Send("{TAB 30}")

{ENTER}

that's my total code just repeat for around 3 times

but it won't work.. when i try to run it in .exe error comes out

any help plz ^^"

by the way how do i specify it so it knows which browser tabbing at?

Your syntax is almost right... you haven't told the interpreter what to do with {ENTER} though.

Send("{TAB 15}{ENTER}")
Send("{TAB 36}{ENTER}")
Send("{TAB 30}{ENTER}")oÝ÷ ØZ+jëh«bë£"&m²è zËmâjíߺw-í«jvÞ~§v)ííöÛJÞæ¬zíè^âáÓÒb¢é]iËnjYr©¶¬¢w¥wºÚ"µÍÙ[
    ][ÝÞÕPM_^ÑST^ÕPÍ^ÑST^ÕPÌ^ÑSTI][ÝÊ

But you may want to stick to the 3 lines, and actually may end up sticking a Sleep(xxx) after the Send commands, I've found that they can happen quite quick. (or play with the Opt + SendKeyDelay)

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Your syntax is almost right... you haven't told the interpreter what to do with {ENTER} though.

Send("{TAB 15}{ENTER}")
Send("{TAB 36}{ENTER}")
Send("{TAB 30}{ENTER}")oÝ÷ ØZ+jëh«bë£"&m²è zËmâjíߺw-í«jvÞ~§v)ííöÛJÞæ¬zíè^âáÓÒb¢é]iËnjYr©¶¬¢w¥wºÚ"µÍÙ[
    ][ÝÞÕPM_^ÑST^ÕPÍ^ÑST^ÕPÌ^ÑSTI][ÝÊ

But you may want to stick to the 3 lines, and actually may end up sticking a Sleep(xxx) after the Send commands, I've found that they can happen quite quick. (or play with the Opt + SendKeyDelay)

o ok thnx
Link to comment
Share on other sites

how do u do alt tab?

is it this?

Send("^{TAB}")

No, that is control Tab:

The help file:

The "Send" command syntax is similar to that of ScriptIt and the Visual Basic "SendKeys" command. Characters are sent as written with the exception of the following characters:

'!'

This tells AutoIt to send an ALT keystroke, therefore Send("This is text!a") would send the keys "This is text" and then press "ALT+a".

N.B. Some programs are very choosy about capital letters and ALT keys, i.e. "!A" is different to "!a". The first says ALT+SHIFT+A, the second is ALT+a. If in doubt, use lowercase!

'+'

This tells AutoIt to send a SHIFT keystroke, therefore Send("Hell+o") would send the text "HellO". Send("!+a") would send "ALT+SHIFT+a".

'^'

This tells AutoIt to send a CONTROL keystroke, therefore Send("^!a") would send "CTRL+ALT+a".

N.B. Some programs are very choosy about capital letters and CTRL keys, i.e. "^A" is different to "^a". The first says CTRL+SHIFT+A, the second is CTRL+a. If in doubt, use lowercase!

'#'

The hash now sends a Windows keystroke; therefore, Send("#r") would send Win+r which launches the Run dialog box.

Therefore:

Send("!{Tab}")

Read the help file more thoroughly, you will find 95% of the answers in there and best of all, you will get the answers much quicker. Don't be afraid to ask a question, just make sure you take the time to look for the answer yourself before asking it, otherwise the answer doesn't seem worth that much and you never end up familiarizing yourself with the helpfile.

-The Kandie Man

Edited by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Link to comment
Share on other sites

  • Moderators

where can i find the 3.2.2.0 help file?

If you've downloaded 3.2.2.0 Autoit, look in the AutoIt folder for the help .chm?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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