473,320 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Ghost keys

31
When I got SendKeys function on VB6, can I put it send the keys if the window isn't open, like I watch someone else sites while my macro says something on other site? If yes can you send the function code?
Sep 14 '07 #1
3 1048
Killer42
8,435 Expert 8TB
Sorry, but can you try to explain in more detail what you mean?
Sep 14 '07 #2
When I got SendKeys function on VB6, can I put it send the keys if the window isn't open, like I watch someone else sites while my macro says something on other site? If yes can you send the function code?
Translation attempt

Can I SendKeys to a form while the form does not have focus? If yes, can you show me an code example?

or,

Can I sendkeys while I am doing something else?
Sep 14 '07 #3
Killer42
8,435 Expert 8TB
Translation attempt

Can I SendKeys to a form while the form does not have focus? If yes, can you show me an code example?

or,

Can I sendkeys while I am doing something else?
Sounds like a reasonable attempt at a translation. A lot of the time, I just don't have the time (or inclination) to try and work out what such a brief question means. We try to get people to post detailed, clear questions. This is not only for our own benefit, but that of anyone who comes searching for answers in the future.

Anyway, if it's the former question, then I would say "no". SendKeys does not send them to anywhere in particular. It simply says to Windows "this key was pressed". What happens then is effectively what would have happened if you did actually press the key. In other words, whoever has the focus will receive it.

To send things to a particular application/window, I think you need to use the Windows SendMessage API functions.
Sep 15 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Roger Shrubber | last post by:
I have a page with images that the user can drag from one frame to another. I need them to see a "ghost image" of the image they are dragging, while the original stays put. I use the onmousemove...
2
by: otisim | last post by:
I have a test environment that we rebuild servers on a regular basis. To streamline the process we use ghost. We will be installing SQL on the servers and want to build a ghost image with that...
2
by: Peter Flickinger | last post by:
I have been using a label with the TreeView control - to simulate the ghost image of a node during drag/drop (so that a ghost of the node appears to be floating next to the cursor on a drag/drop)....
2
by: Peteroid | last post by:
When the application I'm working on is run it creates a panel with a Paint event customized to draw primitives (circles, rectangles, etc.), places the panel on a form, and then launches the form....
1
by: Tim Marshall | last post by:
Does anyone else get "ghost" VB editor windows appear on their computers when developing in Access 2003? These are VB editor windows with no menu items and a grey empty background. I usually...
1
by: Howard Kaikow | last post by:
It was my expectation that a sub using the usual recursive FindFirstFile/FindNextFile would be able to walk the directory tree on any logical volume. I am finding that this may not be the case...
0
by: bbcrock | last post by:
I do not have a link to point you to at this time, sorry. It's an internal application. I have some JS code that hides the current div, sets the tabnumber passed in as the current tab number,...
1
by: bbcrock | last post by:
I do not have a link to point you to at this time, sorry. It's an internal application. I have some JS code that hides the current div (group1Tab1), sets the tabnumber passed in as the current...
2
by: Geolas | last post by:
Hi, new to this community.I am not really sure if this was the right place, because this community seem to be for developers really. Well my question is, as the topic states, how to create a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.