jpres Posted March 1, 2009 Share Posted March 1, 2009 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. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 1, 2009 Share Posted March 1, 2009 (edited) Hi and welcome to the forum! Try it like this, it will send a ctrl+x. Send("^x") Edited March 1, 2009 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jpres Posted March 1, 2009 Author Share Posted March 1, 2009 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. Link to comment Share on other sites More sharing options...
muncherw Posted March 1, 2009 Share Posted March 1, 2009 {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] Link to comment Share on other sites More sharing options...
jpres Posted March 1, 2009 Author Share Posted March 1, 2009 (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. 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 March 1, 2009 by jpres 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