Sign in to follow this  
Followers 0
cig

First Time Writer help please...

12 posts in this topic

Hi,

I am a First time Writter on Macro Script using Auto it. I hit a Dead Rock, I trying to make it press "TAB" key by itself. Following is what I tried in the script and none worked can anyone tell me how should I wrote to get the macros to press "TAB" Key?

Send("{TAB 1}")

Send({TAB})

Send{TAB}

Send("TAB")

can someone teach me how to type it correctly? Thank You.

Sincerely,

Cig

Share this post


Link to post
Share on other sites



Send("{TAB}")

heheh almost got it

Share this post


Link to post
Share on other sites

Send('{TAB}')
Make sure the area you want to send it to has focus.


[center]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.[/center]

Share this post


Link to post
Share on other sites

Send("{TAB}")

I tried that one too forgot to type it in...

Send('{TAB}')

this one I need to try... haven't try this

Share this post


Link to post
Share on other sites

maybe you should try Controlsend, what is the paticular window title your sending this to?

Share this post


Link to post
Share on other sites

Send("{TAB}")

I tried that one too forgot to type it in...

Send('{TAB}')

this one I need to try... haven't try this

It's going to give you the same results with a single quote as a double quote, it's just a habbit of mine to use single quotes. Send{"{TAB 1}") works also... But as I said, you "must" make sure the window you want to send it to has focus, or you won't see it happening... If it is a control you want to send it to or a specific window and now control, then you could do:
ControlSend('Window Name', '', 'Control ID', "{TAB}")
Or
ControlSend('Window Name', '', '', "{TAB}")

[center]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.[/center]

Share this post


Link to post
Share on other sites

It's going to give you the same results with a single quote as a double quote, it's just a habbit of mine to use single quotes. Send{"{TAB 1}") works also... But as I said, you "must" make sure the window you want to send it to has focus, or you won't see it happening... If it is a control you want to send it to or a specific window and now control, then you could do:

ControlSend('Window Name', '', 'Control ID', "{TAB}")
Or
ControlSend('Window Name', '', '', "{TAB}")

Arrr.. I see... sorry first time Writter what's a "control ID"?

Share this post


Link to post
Share on other sites

ControlSend('Window Name', '', '', "{TAB}")

Tried that with the window name, but it still doesn't work I actually tested in Notepad and it works. Can I ask what did I do wrong?

Share this post


Link to post
Share on other sites

whats the window name

Share this post


Link to post
Share on other sites

whats the window name

Oh is a Japanese Game

Window name "大航海時代Online"

Share this post


Link to post
Share on other sites

Oh is a Japanese Game

Window name "大航海時代Online"

can anyone teach me how to write the script for "TAB" in a game?

Share this post


Link to post
Share on other sites

Welcome to the forums!

Your window has to be active in order for that Send function to work as planned.

Please read the help file and look up the Send, ControlSend, and WinActivate functions.

Get the full AutoIt Install, and run the AutoIt Window Info Tool (Au3Info.exe)

Select your game window and move the mouse around to see if the tool identifies any controls you can interact with.

Good luck!


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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