Skizmata Posted May 7, 2009 Share Posted May 7, 2009 Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("Test String.") Send("{LSHIFT DOWN}") Send("{LEFT 7}") Send("{LSHIFT UP}") Why dosn't this highlight the text? Thanks, I apologize if this has been asked before I was unable to find it with search. AutoIt changed my life. Link to comment Share on other sites More sharing options...
Skruge Posted May 7, 2009 Share Posted May 7, 2009 Send("{LEFT 7}") [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
martin Posted May 7, 2009 Share Posted May 7, 2009 Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("Test String.") Send("{LSHIFT DOWN}") Send("{LEFT 7}") Send("{LSHIFT UP}") Why dosn't this highlight the text? Thanks, I apologize if this has been asked before I was unable to find it with search. I don't know but this works Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("Test String.") for $n = 1 to 7 send("+{LEFT}") Next Send("{LSHIFT DOWN}") followed by another Send stops the final Send("{LSHIFT UP}") working on 3.2.12.1 which is one the computer I tried it on, and I have to press the Left Shift key to release it. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Skizmata Posted May 7, 2009 Author Share Posted May 7, 2009 Thanks! You guys are amazing this is why autoit will eventually rule the world, the community! Thanks again! AutoIt changed my life. Link to comment Share on other sites More sharing options...
bwochinski Posted May 7, 2009 Share Posted May 7, 2009 I use something similar to select text, the following code works fine: Send("{RIGHT 14}") Send("{SHIFTDOWN}") Send("{RIGHT 52}") Send("{SHIFTUP}") I assume the difference is using the specifically named {SHIFTDOWN} and {SHIFTUP} commands... Link to comment Share on other sites More sharing options...
Skizmata Posted May 8, 2009 Author Share Posted May 8, 2009 All work very well! Thanks again, perfect for the demo I'm doing. AutoIt changed my life. 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