o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

CTRL+P (Sendkeys) -

I have developed a pretty complex Sendkey App in VB6 for work. I use it on apps not made with VB (i.e. Word, Excel, IE etc...)

Everything seems to work pretty good except two Sendkey commands.

+ (Shift)
^ (Control)

I have tried sending "^(P)" to open print dialog in other apps, but nothing happens.

The same for the shift key. The "+" (shift) will work if it is like this... "+{F7}"... the {F7} being a legit sendkey key.

Any pointers to make CTRL+P work other then having to do....

ALT + F + {DOWN} + {DOWN} + {DOWN} + {ENTER}

Thanks
ePixelman


 

How do you send keys CTRL + X -
i tried SendKeys "CTRL+X" and SendKeys "CTRL&X" but they didnt work..


Hold Ctrl key -
Is there a way i can keep the Ctrl key pressed down with the sendkeys command and then let og of the Ctrl with the click of another button?


Sendkeys-equivilant -
hello world is there any API function that does the effect of sendkeys, but can distinguish between the right- from left-sided Ctrl, Alt, and Shift buttons. e.g. if i need to simulate pressing the right Alt+Shift combination. sendkeys CAN NOT do that any ideas regards 2 u


Sendkeys! -
Howdy: Does anyone know the command for the Right 'CTRL' button Using SendKeys "{^}" - activates the Left 'CTRL' button.... I need the right one! Thanks! Hyme


Sendkeys CTRL-ALT-DELETE -
Right I want to send CTRL-ALT-DELETE to W2K any ideas??? Sendkeys ("^%{DEL}") Dont work!


Problem about sendkeys -
How can I replace parameter of sendkeys with variable sample:sendkeys ConState{key} ConState is save string of Ctrl,Alt,Shift key is parameter of Keypress Event


Sendkeys.. -
Hello! Just a quicky! I've tried to do a sendkeys for caps lock ( Sendkeys ("num lock") ) but that it seems as thought its on a loop. i.e. you can't exit out of vb, except alt & ctrl & del. Is there another line of code to finish it? Thanks! mooney


sendkeys CTRL + TAB help ! -
Hi everybody. Does anyone know how i can use sendkeys to get CTRL+TAB ? i've already tried this: SendKeys "(^TAB)", SendKeys ("^{TAB}") but it doesn't work .I have to navigate to next WindowTab on a tabbed window. Thank's to all.


SendKey Ctrl+Ctrl+A+Enter does not work.. -
Hi.. I'm trying to emulate the combination: Ctrl, Ctrl, "A", Enter I'm not trying to press all keys at once. I want to press them on by on. I tryed to use this code: SendKeys "^^A~" but VB does not like this.. Any idéas? [Edited by rancor on 06-02-2000 at


how to tell if the shift and /or ctrl keys are up -
i have a program that uses sendkeys but it goes all fubar if you're holding either the shift or the ctrl key down (i'm pretty sure it's the ctrl key, but it may not me) is there any way i could tell my program to wait until they aren't being pressed down to send the info?


Sendkeys to windows -
I know how to use the sendkeys command to sendkeys to a particular app. What I need to be able to do is send a combination of keys to the windows operating system. For instantce, I need to send ctrl Atl M to the operation system to have a process that is running in the windows backgrou


Remove all CTRL+Key functions except CTRL+C, CTRL+V -
Hi Everyone, I was wondering how I might be able to use the keydown function to remove all functionality of CTRL + a key being pressed, EXCEPT if they press ctrl+C (copy) or ctrl+v (paste) Basically it would have to be like an if ctrl + c keydown, do CTRL+C, if ctrl + v keydown,


SendKeys "{Please}" -
===================================================== Hiii Guys I want to use sendkeys function to send Ctrl+RightShift to any control. I used sendkeys "^{RSHIFT}" and "^{RIGHTSHIFT}",but in all it was error occured. Can some body help me please? With


Sendkeys [resolved] -
How would I send "CTRL + SHIFT + T" simultaneously using the Sendkeys function?


Keep CTRL down for using MultiSelection ListBoxes -
Hello, I wants to use the function "SendKeys vbKeyControl" I wants that the CTRL Button alway is activated. How can I made that? Please HELP!!! Greetz BK


Send keyshelp! -
yo i need to know how to sendkeys the following keys CTRL+B SHIFT+X ALT+F And a combanation of ctrl alt and shift thx


SendKeys turning off NumLock and CapsLock -
When using the following code, the NumLock, CapsLock, and Scroll gets Turn off. AppActivate IDIdentifier, False 'Send a Ctrl-A (Select All) and Ctrl-Ins (Copy) SendKeys "^a" SendKeys "^{INSERT}" I would like to prevent this from happening. My alter


Question to "sendkeys" -
Hello, I use sendkeys to simulate a key-press to antother application. It works fine. Now, I need the simulation of pressing Ctrl+Enter at the same time. How can I do this? It doesn´t works at this time. I tried ^{ENTER} and ^({ENTER}), and ^~ and ... Can some one help me? The


Sendkeys not working, Help! -
Hi, I am trying to Press Ctrl+G in another app (AOl) then put stuff into the box that appears. On pressing Ctrl+G a box should appear asking for details, however the box wont appear, what have I missed out? Code: AppActivate "AOL" SendKeys "^{G}" ... I


What Do I add Between Next -
Hello Say i Have this Its A Simple Code I've Writen For msn. msn.InstantMessage Text11.Text SendKeys Text1.Text SendKeys "{ENTER}" SendKeys Text2.Text SendKeys "{ENTER}" SendKeys Text3.Text SendKeys "{ENTER}" SendKeys Text4.Text SendKeys "


Need Help Simple! -
Code: Private Sub Timer1_Timer() Randomize r = Int((10 * Rnd) + 1) If r = 1 Then SendKeys "hey" SendKeys "{ENTER}" ElseIf r = 2 Then SendKeys "asl" SendKeys "{ENTER}" ElseIf r = 3 Then SendKeys "sup" SendKeys "{ENTE


send "ctrl+p" to com port through MSComm -
hi im communicating with a controler that receive a command like "ctrl+p". Using Hyper Terminal, i receive data from equipment. But, how can i implement this functionality on my VB program? How can i send an "ctrl+p" to serial port? is possible with sendkeys


Trap CTRL+F6 (not CTRL+TAB) -
My users want to add hotkey functions to FKeys. They want to use(with others) F6, CTRL+F6, SHIFT+F6 and CTRL+SHIFT+F6. The CTRL+F6 and CTRL+SHIFT+F6 keys perform next/previous MDI window functions; is there any way for me to trap for CTRL+F6 and CTRL+SHIFT+F6 without also trapping C


Sendkeys it doesn't seem to work -
Hi, I am trying to Press Ctrl+G in another app (AOl) then put stuff into the box that appears. On pressing Ctrl+G a box should appear asking for details, however the box wont appear, what have I missed out? Code: AppActivate "AOL" SendKeys "^{G}" ... I


query regarding minimize and maximize of forms -
hi i am using a browser......and i did following...... SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{ENTER}" to press a submit


Create a new tab in IE7 using Sendkeys [2005] -
Hi Guys, Basically I've got a little app that opens various web pages when different buttons are clicked but it always opens a new browser window each time a button is clicked. So I had a quick look on the web to see if I could find an easy way of telling IE to open a new tab but I


SendKeys To A Specific Program -
Hey I want to code something that sends the ctrl key to a specific program after pressing vbKeyF1. Like... SendKeys to (program)


Ctrl + F4... -
How can I figure that user have pressed following key combinations... Ctrl + Alt + Delete Alt + F4 Ctrl + F4 Ctrl + Z Ctrl + A It's urgent... Cheers...


SendKeys/SendMessage/Postmessage... -
I want to send the following keycomninations to an application: SHIFT + END CTRL + ""W" "100" ENTER How to do this, using SensMessage/Sendkeys/Postmessage....btw I can already determine the windowhandle if necessary Thanks


If Sendkeys Wont work...[GAVE UP] -
I can make it switch to another app (AppActivate) and I can manually press ctrl V and paste...but I cant do it any other way??? Ive tried SendKeys "^V" SendMessage windowHwnd, WM_PASTE,0,"Test" even using functions like GetWindowThreadProcessId (WOnt get


Hotkey + Sendkeys = Failure -
I am trying to send some text to another window using a hotkey, Example I am using Hotkey. CTRL + Numpad1 to send "Hello World!" however the problem with this is that when you use sendkey it actually sends Ctrl + Everysingle letter at a time. This opens all sorts of dialo


Sendkeys and DoEvents -
I use "SHELL" function to open Outlook Express. Shell "C:\Program Files\Outlook Express\msimn.exe", vbNormalFocus After that I use "SENDKEYS" function to open a "NEW MESSAGE" hotkey "CTRL + N". so Sendkeys "^(N)",tr


Fill all combo boxes with data -
Thanks to the forums I recieved the answer for filling all textboxes with this code but is there a way to fill all comboboxes as well dim ctrl as control for each ctrl in controls if typeof ctrl is textbox and not trim(ctrl.tag) ="" then set ctrl.datasource=rs ctrl.


Pasting to Word -
Hello Is there any way of making word pick the font types of a sentence I am pasting?? Write now i am changing the font type using SENDKEY from VB. Problem is that i usually have 2 types fonts in a sentence It changes one not the other. example the following program should paste


<> SendKeys -
On an IBM emulator screen I have to enter C for cics or P or Prod etc. Once entered, this brings on the sign on screen...username and password. I can send the keys but I am having problems having the machine accect the enter key. The enter key is disabled and replaced with the ctrl k


Help blocking Ctrl-Alt-Del -
I'm trying to figure out how to disable ctrl-alt-delete. I tried this code: On Error GoTo exitsub AppActivate "Windows Task Manager" thesendkeys = "%{F4}" SendKeys (thesendkeys) Exit Sub exitsub: Exit Sub But it sometimes doesnt work. Does anyone


WScript.Shell Sendkeys -
I have heard that Sendkeys behavior is erratic... However ... are there just some programs in which Sendkeys won't work? We have a terminal emulation program that I just can't get sendkeys to work on (Zephy Passport is the proggy)... I can get sendkeys on Notepad.exe and such to


Sending ALT, CTRL, SPACE and ENTER using SendMessageByString -
I am trying to abandon SendKeys because it does not work well in my automation program. Even though I call on Putfocus it still losses focus and my program ends up not functioning correctly. I want to know how to send Alt, Space, Ctrl and enter using SendMessageByString. Especiall


sustitute SendMessage for SendKeys help -
Thank you all in advance for your help. I am still green at this. I have some code (below) that I pulled together. I am using the code to SendKeys to various computers running VNC (Virtual Network Computing software) on a LAN. Most people here have said that SendKeys is unreliable. We


Navigating a HTML File without Sendkeys -
How can I navigate on A HTML Page not using sendkeys?? I want to press a button on a certain page, when I use sendkeys I will write: sendkeys"{tab 34}",true So but I can't use it, because I have to use timers then while the new page is loading!!It this gets very compli