Jump to content
Sign in to follow this  
cappy2112

HotKEy Help

Recommended Posts

cappy2112

I want to set Ctrl-X and Ctrl-C hotkeys, but can't find any example in the help for HotKey(), Send(), or in the appendix, on how to set a hotkey using Ctrl and another ascii character (in my case, x or c)

Would someone show me what I'm missing?

Share this post


Link to post
Share on other sites
SmOke_N

I want to set Ctrl-X and Ctrl-C hotkeys, but can't find any example in the help for HotKey(), Send(), or in the appendix, on how to set a hotkey using Ctrl and another ascii character (in my case, x or c)

Would someone show me what I'm missing?

Did you look at Send Key List? There's a long list of the keys that can be used for Send()/HotKeySet().


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Valuater

I want to set Ctrl-X and Ctrl-C hotkeys, but can't find any example in the help for HotKey(), Send(), or in the appendix, on how to set a hotkey using Ctrl and another ascii character (in my case, x or c)

Would someone show me what I'm missing?

then use this script

$search = "send"
Run("C:\Program Files\AutoIt3\Autoit3Help.exe")
WinWaitActive("")
Send("!s")
Send($search)
Send("!l")
Send("!d")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
cappy2112

Did you look at Send Key List? There's a long list of the keys that can be used for Send()/HotKeySet().

Yes, but most are single keys, except for ctgrl-break.

I didn't see any for Ctrl + an alpha key

Share this post


Link to post
Share on other sites
cappy2112

then use this script

$search = "send"
Run("C:\Program Files\AutoIt3\Autoit3Help.exe")
WinWaitActive("")
Send("!s")
Send($search)
Send("!l")
Send("!d")

8)

! is alt, ehh?

Whats' the $search = "send" and !L !D all about?

Share this post


Link to post
Share on other sites
Valuater

! is alt, ehh?

Whats' the $search = "send" and !L !D all about?

just try the script ( run it in SciTE )

8)


NEWHeader1.png

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.