Jump to content

Where is 'Direction' Commands?


Gonji
 Share

Recommended Posts

I tried to find 'Up Arrow' or 'UP' command and do not work. I couldn't find it.

Send ("{ENTER}") ; Enter menu

Sleep (0550) ; Sleep

Send ("{UPARROW}") ; <--- Tried to up arrow, not numpad.

Sleep (0550) ; Sleep

Send ("{ENTER}") ; Enter menu

Sleep (0550) ; Sleep

Send ("{ESCAPE}") ; Exits open windows

Anyone can help which command for UpArrow, DownArrow, LeftArrow and RightArrow, do not want to use numpad please.

Thank you

Link to comment
Share on other sites

Just grabbed this from the help file I hope it helps...

{UP} Cursor up

{DOWN} Cursor down

{LEFT} Cursor left

{RIGHT} Cursor right

That should be the arrows you are looking for.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

Just grabbed this from the help file I hope it helps...

That should be the arrows you are looking for.

JS

<{POST_SNAPBACK}>

Exactly what I did 'UP' first then I added UPARROW. I wonder why it dont work. Maybe my WindowXP fault?
Link to comment
Share on other sites

What program are you trying to send('{UP}') to?

I should think it would work fine in XP.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

I dont understand what it is that you are trying to do. Send a command to a 'yes'? :-/ Sorry I just want to understand because that should have worked for you.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

Guest Auzmoden

Looks to me like you're working on the same script I am. I'm working on a fishing bot for Final Fantasy XI. The one I have though, uses the mouse to click a button on the screen. The script is a little incorrect though, and seems to click on the wrong place. I'm going to try and change the cords so it clicks in the correct spot but would rathor use the "up arrow" key to select the correct button in the "in-game" menu list.

Heres a section of the script where the changes need to be made:

Func autosort() 
Sleep(9000); 
AutoItSetOption("SendKeyDelay", 0235); 
Send ("!i"); 
Sleep(0250); 
Send ("{NUMPADADD}"); 
Sleep (0250); 
Send ("{ENTER}"); 
sleep(0250); 
MouseMove(1209,122,10);      <===This is the inccorect part
sleep(0250); 
Send ("{ENTER}"); 
sleep(0250); 
Send ("{ESCAPE}"); 
sleep(0250); 
Send ("{ESCAPE}"); 
Sleep (0250); 
EndFunc

If anyone knows of a way to change this so the up arrow key is used inplace of a MouseMove I'm sure many of use would be greatful for any info on this. Thanks guys.

Link to comment
Share on other sites

Guest Auzmoden

Just to clarify, if the game will not respond to any key presses from autoit, then it has hooked the keyboard, and you will not be able to send keys at all.

<{POST_SNAPBACK}>

It responds to key presses, we (at least me) are trying to figure out how to use the up arrow key (not on the keypad as in the game these control movement) in place of the MouseMove.
Link to comment
Share on other sites

Guest Auzmoden

I'll give it a shot. Thanks man, I appreciate the help.

EDIT: I just tryed {UP} in the script and it works great! Thanks for the info! Heres what the code looks like now:

Func autosort() 
Sleep(9000); 
AutoItSetOption("SendKeyDelay", 0235); 
Send ("!i"); 
Sleep(0250); 
Send ("{NUMPADADD}"); 
Sleep (0250); 
Send ("{ENTER}"); 
sleep(0250); 
Send ("{UP}");     <===This was MouseMove(1209,122,10);
sleep(0250); 
Send ("{ENTER}"); 
sleep(0250); 
Send ("{ESCAPE}"); 
sleep(0250); 
Send ("{ESCAPE}"); 
Sleep (0250); 
EndFunc
Edited by Auzmoden
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...