DNnlee Posted January 12, 2011 Posted January 12, 2011 (edited) I've wrote a autoit script that does what i wanted to do. modified it to controlsendsending keys "2" or "w" or "{Enter}" seems fine without the ID or class.sending "Left" or "Right" doesn't seem to be working.i removed/edited out a lot of the more complicated part of the script so you dont have to waste time reading everything.basically even this wont get ControlSend "left" to work.i thought of sending {ASC} keys, but couldn't find the code for "left" or "right" arrow keysalso thought of sending "NumPadRight" key... but i guess the newer version of AU3 removed that function?? script doesn't recognize it as a keyi need advice/ alternative methods on how to send right/left key to a window that's not active, other than what i have already tried.HotKeySet("{ESC}", "bye") $title= "irrelevant " while 1 sleep(1000) ControlSend($title,"","","2") sleep(1000) ControlSend($title,"","", "{Right}") sleep(1000) ControlSend($title,"","","w") sleep(1000) ControlSend($title,"","","{Enter}") sleep(1000) ControlSend($title,"","", "{Left}") WEnd Func bye() Exit EndFunc Edited January 12, 2011 by DNnlee
Newb Posted January 12, 2011 Posted January 12, 2011 (edited) 01 Left mouse button02 Right mouse button04 Middle mouse button (three-button mouse)05 Windows 2000/XP: X1 mouse button06 Windows 2000/XP: X2 mouse button08 BACKSPACE key09 TAB key0C CLEAR key0D ENTER key10 SHIFT key11 CTRL key12 ALT key13 PAUSE key14 CAPS LOCK key1B ESC key20 SPACEBAR21 PAGE UP key22 PAGE DOWN key23 END key24 HOME key25 LEFT ARROW key26 UP ARROW key27 RIGHT ARROW key28 DOWN ARROW key29 SELECT key2A PRINT key2B EXECUTE key2C PRINT SCREEN key2D INS key2E DEL key30 0 key31 1 key32 2 key33 3 key34 4 key35 5 key36 6 key37 7 key38 8 key39 9 key41 A key42 B key43 C key44 D key45 E key46 F key47 G key48 H key49 I key4A J key4B K key4C L key4D M key4E N key4F O key50 P key51 Q key52 R key53 S key54 T key55 U key56 V key57 W key58 X key59 Y key5A Z key5B Left Windows key5C Right Windows key60 Numeric keypad 0 key61 Numeric keypad 1 key62 Numeric keypad 2 key63 Numeric keypad 3 key64 Numeric keypad 4 key65 Numeric keypad 5 key66 Numeric keypad 6 key67 Numeric keypad 7 key68 Numeric keypad 8 key69 Numeric keypad 9 key6A Multiply key6B Add key6C Separator key6D Subtract key6E Decimal key6F Divide key70 F1 key71 F2 key72 F3 key73 F4 key74 F5 key75 F6 key76 F7 key77 F8 key78 F9 key79 F10 key7A F11 key7B F12 key7C-7F F13 key - F16 key80H-87H F17 key - F24 key90 NUM LOCK key91 SCROLL LOCK keyA0 Left SHIFT keyA1 Right SHIFT keyA2 Left CONTROL keyA3 Right CONTROL keyA4 Left MENU keyA5 Right MENU keyBA ;BB =BC ,BD -BE .BF /C0 `DB [DC \DD ] Edited January 12, 2011 by Newb I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now