jjrr007 Posted September 16, 2016 Share Posted September 16, 2016 I have tried to use send the keys command- hold down alt and press tab. For some reason, this doesn't work Send("!{TAB}") However, the following works: Send("{TAB}") - send just a tab Send("!f")- sends alt and f It doesn't make sense to me why alt tab wouldn't work when the 2 codes above does work. I would greatly appreciate any help with this. Link to comment Share on other sites More sharing options...
l3ill Posted September 16, 2016 Share Posted September 16, 2016 {ALTDOWN}Holds the ALT key down until {ALTUP} is sent My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 16, 2016 Moderators Share Posted September 16, 2016 @jjrr007 I just tested Send("!{TAB}") on both a windows 7 and a windows 10 box, and it worked fine on both with AutoIt 3.3.14.2. How about a little more information as to what OS you're on, what AutoIt version, and just what you're trying to accomplish? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jjrr007 Posted September 16, 2016 Author Share Posted September 16, 2016 Thank you for your responses. JLogan3o13, I'm working on automating a manual data entry from a website. I have create a couple automation projects using this software that had automated mouse clicks and keyboard entries. I am using Windows 8.1 with SciTE-Lite Version 3.5.4 l3ill, I also tried the following code that didn't work Send("{ALTDOWN} {TAB] {ALTUP}") Not sure what I should do? Link to comment Share on other sites More sharing options...
jjrr007 Posted September 16, 2016 Author Share Posted September 16, 2016 I mistyped the last post, I tried Send("{ALTDOWN} {TAB} {ALTUP}") For some reason, it didn't work. O Link to comment Share on other sites More sharing options...
Somerset Posted September 16, 2016 Share Posted September 16, 2016 Are you trying to change programs; is the web browser the only open gui program? Link to comment Share on other sites More sharing options...
jjrr007 Posted September 16, 2016 Author Share Posted September 16, 2016 Excel and command prompt are open as well. Link to comment Share on other sites More sharing options...
Somerset Posted September 16, 2016 Share Posted September 16, 2016 (edited) So you are trying to cycle to a different active program? If you are, you can use autoit it to make them active; not just alt+tab combo. Edited September 16, 2016 by Somerset Link to comment Share on other sites More sharing options...
jjrr007 Posted September 16, 2016 Author Share Posted September 16, 2016 Somerset, I appreciate your time and expertise. Yes, I am trying to cycle to another program to make it active. How do the make the windows active using autoit? Link to comment Share on other sites More sharing options...
jjrr007 Posted September 16, 2016 Author Share Posted September 16, 2016 This works for notepad, but I need one for Excel, Google Chrome and a command prompt. I'm not sure how to do those, and would greatly appreciate any help WinActivate("[CLASS:Notepad]") Link to comment Share on other sites More sharing options...
jjrr007 Posted September 16, 2016 Author Share Posted September 16, 2016 Somerset, I think you just led me to the solution. This worked!!!! WinActivate("[TITLE:GetData]") I just change title to the window name. Thanks!!!! Link to comment Share on other sites More sharing options...
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