I can't seem to figure out the sendkey for ctrl 5. I've tried the following and none work.
Sess0.Screen.SendKeys ("{^5}")
Sess0.Screen.SendKeys ("(^5)")
Sess0.Screen.SendKeys ("^5")
anyone able to post how to use the ctrl then 5 key? thx
one way that might work is to open the macro recorder within your EXTRA session and simulate the key press you want by doing it manually. Then view the code for the macro you just made and the code for the keystrikes you want should be there. Also, when you say you're using this in excel, do you mean its written in VBA or you are trying to do the ctrl+5 sequence in excel
if im not mistaken, doesnt the control key just move the cursor down a line in the extra session. one first glance, it seems like you are trying to move the cursor down a row and then send the 5 key to the field the cursor moved to....is this correct or no, if not, please explain what you are using the ctrl key to do in the extra session. if it is correct you can avoid the ctrl key altogether by using the Sess0.Screen.MoveTo 10, 2 command. 10 is the row and 2 is the column you want the cursor moved to, you might have to do some screen mapping but that isint too hard
i was lookin over your codes again, am i mistaken or do you need to surround keys like pressing enter wrapped in <Enter>. since this isint an actual character you are sending does wrapping it in <> help....as in
Code:
Sess0.Screen.SendKeys ("<^5>")
personally i do not use the ctrl key in my sessions because we use the page up/f1-12 keys to navigate through the screens
I've looked all over the next and there really doensn't seem to be a clear answer. There's a lot of questions about it, but not a real solution that i've found. Everyone goes bacak to use ^ as ctrl
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.