Jump to content

Recommended Posts

Posted

I'm trying to make a macro to Press and hold Control and hit X. Can anyone help with this?

I know how to send X alone, but not while holding control.

Posted

Hi and welcome to the forum!

Try it like this, it will send a ctrl+x.

Send("^x")
Ty, but sorry I forgot, how do you send Control as it is? I thought it was {CTRL} but I guess it isn't.
Posted

{LCTRL} Left CTRL key

{RCTRL} Right CTRL key

Check out Send Key List on the help file to find the other keys. It's a good resource.

Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic]
Posted (edited)

{LCTRL} Left CTRL key

{RCTRL} Right CTRL key

Check out Send Key List on the help file to find the other keys. It's a good resource.

Okay i'm unsure of what I did wrong, so this code will probably look terrible to you guys, since i'm new, but this doesn't work for me. :P

send("{LCTRL}^v", 1)

Ty for all the help btw, but that's my code and it just types it all out. Help? Pweeze?

Edit: Nevermind I got it wow I feel stupid.

Didn't realize he was saying ^ represented Cntrl and I had the text sent as Flag 1 which was raw numbers, lol ty for the help guys appreciate it.

Edited by jpres

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
×
×
  • Create New...