Sign in to follow this  
Followers 0
Skizmata

Highlighting Text With "{LSHIFT DOWN}"

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



Send("{LEFT 7}")

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Thanks! You guys are amazing this is why autoit will eventually rule the world, the community!

Thanks again!


AutoIt changed my life.

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

All work very well! Thanks again, perfect for the demo I'm doing.


AutoIt changed my life.

Share this post


Link to post
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
Sign in to follow this  
Followers 0