Skizmata Posted May 7, 2009 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.
Skruge Posted May 7, 2009 Posted May 7, 2009 Send("{LEFT 7}") [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
martin Posted May 7, 2009 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.
Skizmata Posted May 7, 2009 Author 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.
bwochinski Posted May 7, 2009 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...
Skizmata Posted May 8, 2009 Author Posted May 8, 2009 All work very well! Thanks again, perfect for the demo I'm doing. AutoIt changed my life.
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