Delay with the SendInput Windows API: entry to the editor, IE or Notepad is delayed

Hello

We have developed a virtual keyboard (vk) and use the Windows API to display it. Later, we the vk is used to enter the keys to the internet explore.

The problem is the keys take duration display sometimes and sometimes, there is a delay and the key appears only once the following keys is pressed. What is causing this behavior? I used to use the native C++ API, and here's the function that calls the SendInput API:

void CallSendInput (int Vcle, int nKbdState)
{
Inpt of ENTRY = {INPUT_KEYBOARD, {0}};

If (pfKeyPress)
return;

If (nKbdState & 0x01) {inpt.ki.wVk = VK_SHIFT; SendInput (1, & inpt, sizeof (INPUT)) ;}
If (nKbdState & 0x02) {inpt.ki.wVk = VK_CONTROL; SendInput (1, & inpt, sizeof (INPUT)) ;}
If (nKbdState & 0x03) {inpt.ki.wVk = VK_CANCEL; SendInput (1, & inpt, sizeof (INPUT)) ;}
If (nKbdState & 0x04) {inpt.ki.wVk = VK_MENU; SendInput (1, & inpt, sizeof (INPUT)) ;}

inpt.ki.wScan = MapVirtualKey (Vcle, MAPVK_VK_TO_VSC);
INPT. Ki.time = 0;
inpt.ki.dwExtraInfo = 0;
inpt.ki.dwFlags = 0;

inpt.ki.wVk = Vcle;

SendInput (1, & inpt, sizeof (INPUT));
inpt.ki.dwFlags = KEYEVENTF_KEYUP;

SendInput (1, & inpt, sizeof (INPUT));

bKEYUPForced = true;
If (nKbdState & 0x01) {inpt.ki.wVk = VK_SHIFT; SendInput (1, & inpt, sizeof (INPUT)) ;}
If (nKbdState & 0x02) {inpt.ki.wVk = VK_CONTROL; SendInput (1, & inpt, sizeof (INPUT)) ;}
If (nKbdState & 0x03) {inpt.ki.wVk = VK_CANCEL; SendInput (1, & inpt, sizeof (INPUT)) ;}
If (nKbdState & 0x04) {inpt.ki.wVk = VK_MENU; SendInput (1, & inpt, sizeof (INPUT)) ;}

}

I'd appreciate the solution to this.

Hello

Your message is beyond the scope of these Microsoft Community forums. It is better suited for the MSDN Developer audience. Please click on the following link and post your question in the appropriate forum.

MSDN forums: Index

http://social.msdn.Microsoft.com/forums/en-us/categories

MSDN forums:

http://social.msdn.Microsoft.com/forums/en-us/home#category=usingforums&filter=AllTypes&sort=lastpostdesc&content=content

Concerning

Tags: Windows

Similar Questions

  • Send the report by email with the editor? and Task Manager...

    Hi, I have a big doubt, I try to send an E-mail with a report, first of all, I try to send with the editor, it comes to configurations of.

    Configuration of delivery

    ! http://LH3.ggpht.com/_V2lpPpulbm0/SLWM-4TLiJI/AAAAAAAACag/xZ5w57zkRnM/S800/bi%20Publisher.PNG!

    E-mail configuration

    ! http://lh5.ggpht.com/_V2lpPpulbm0/Slwm_PKsjVI/AAAAAAAACak/baCeaA9kV_s/S800/bi%20Publisher2.PNG!

    Send configuration parameters

    ! http://lh5.ggpht.com/_V2lpPpulbm0/SlwroVMXh4I/AAAAAAAACao/0-UaglX4N5Y/s512/configuracionparametros.PNG!


    But when I submit... I have an error: 'Deliver a STARTTLS comand first', * this * error means that Gmail server suporteront not?
    You know some Mail Company to Rrealize some tests.

    ! http://LH3.ggpht.com/_V2lpPpulbm0/SLWM-8g_LJI/AAAAAAAACac/1CeWNWZLL18/s640/errorpublisher.PNG!

    But... It is necessary to set up Job Manager? Why is it necessary to set up Task Manager, and Publisher is the same? or each of them is being used for something different, all forms, I post my Job Manager configuration too.

    ! http://LH4.ggpht.com/_V2lpPpulbm0/SLWM-X7idrI/AAAAAAAACaU/eq_N_Rloqjs/s576/SchedulerConfiguration.PNG!

    Thanks to all and sorry for the Spam Images(I think You comprehension better me)
     . i have an error: "Must issue a STARTTLS command first",this error means that Gmail Server not suporter?  
    

    Yes gmail will not support to send emails of this... because our accounts are free...

    Try with your credentials of the company e-mail, that it will work.

     It is neccesary configurate Job Manager? why is necessary configurate Publisher and Job manager, is the same? or Each one is in use for a different thing 
    

    BI Publisher will not use the e-mail manager job settings... If so, why we need configure the settings of mail in BIPublisher itself?

    Two things are different...

    Thank you
    Saichand.V

  • Problem with the editor attribute PULLDOWN

    When we use the Editor menu attribute drop-DOWN we know the following behavior.

    We have a definition of the content with a non-binding string attribute which is an attribute of pulldown editor configured with queryassetname.

    When its use in the contributor interface following the chronology of the events:

    (1) content > new asset

    (2) assign a value in the launch menu displayed by the editor attribute of pulldown

    (3) save

    (4) modify the same assets and try to put a value empty in the attribute that is assigned pulldown attribute Editor, but it is not possible because there is no possible empty selection to leave blank the value of the attribute as it was by default.

    Thanks for any help in advance.

    Pedro

    Hi Pedro,

    There is a default created for the problem you describe: Bug 17562306 - menu DEROULANT ATTRIBUTE EDITOR not IS NOT HAVE WHITE VALUE for the OPTIONAL ATTRIBUTES.
    However this applies only when you use name QUERYASSETNAME instead of element tags to populate the attribute PullDown.

    I just did a quick test to create a new attribute to dropdown using element tags and it worked fine when I set a single value, saved and then set empty. See screenshots

    I was able to find a workaround for the active query name, it is to add value, then you can use it as a vacuum. See below:

    Add a null value line in the query of the assets of the query result.  In this way, there will be a null value to select in the drop-down menu to remove the value.

    for example SELECT name as the value of the status of Content_C WHERE<>"VO" UNION (SELECT NULL FROM DUAL) ORDER BY VALUE asc NULLS FIRST

    Of workaround seems to work for the attributes of optional or required string using this attribute of menu editor drop-DOWN with a resource request.

    Let me know you have questions.

    Best regards

    Guillermo.

  • Help with the editor in excess

    Half of the text that is not displayed. There is a red box with + sign where it ends (editor in excess, right?). By pressing Ctrl + Y and clicking inside the box change the screen to reveal all of the text, with the red vertical line in the part that is hidden. I see no sign "#", which has been mentioned elsewhere in this issue. What should do?

    Owen,

    Silas

    -There are 500 pages in the identity document that I put in place to fill. I have inserted/place only 20 is not due to lack of available pages

    -Size margin should stay as it is and the text block fits well within margins horizontally.

    A - ha. This is the way the most obvious problem.

    ID expected proportionally to the size of the block of text on the fly when the text is imported, shouldn't it?

    Nope. Who doesn't, never did. If you place a file, the cursor displays a 'charge' State. You can draw a new framework when the cursor is loaded, or you can click on a framework of existing text to place the text "in".

    The problem is that you have already created many pages. Which tells InDesign that you already made up your mind where all the text needs to go, so he's like, "I arise you know what you're doing" and leaves the rest for you.

    Try the following, preferably with a new document, so you can see what is happening:

    1. create a new document. Do not bother about the number of pages - leave it as "1". Do not add blocks of text no more.

    2. call the Place dialog box, select your Word document, and then click OK in the dialog box. The cursor appears 'burden '.

    3 press and hold the SHIFT key and click once near the upper left corner of your margins. When he was close enough to the corner point (no precision pixels necessary, but you must be "somewhere near"!), InDesign automatically creates the new block of text within your margins. In addition, however, since you held the SHIFT key when you click on (did you, haven't you?), it will add as many sheets as necessary to place the entire file.

    If you change your text and get a new marker "in excess" in the end, because your text is no longer in the available frameworks, all you need to do is the following:

    1. with the black arrow, click once on the red marker overset. The cursor will move to the "State".

    2. Add one page, through the hand, the Pages panel menu, or with the default shortcut key Cmd + Shift + P (I think that's the one).

    3 shift + click the load slider to the top left of this new page. Again, InDesign creates a new default text box, fill it with text and adds more pages when necessary.

    Personally, I do not trust the function "automatically add and remove Pages" of CS5, which can be turned on and off in the preferences. but I do not use CS5 at all, then you can try as well if it works for you.

  • Change formsweb.cfg on the fly with the editor?

    Hi all

    I discovered, that it is possible to change to formsweb.cfg using your favorite editor without to start/stop OAS.

    After changing formsweb.cfg that I just have to point my browser to a non existing configuration, this forces OAS to read formsweb.cfg.
    Even after the restart of OAS, the changes were still present. (you may know that change formsweb.cfg and stop OAS will overwrite formsweb.cfg with the previous configuration)

    Someone knows this "feature"?
    Experiences?

    Concerning
    Michael

    BTW: this also works for OC4J

    I can't.

    Of course, you can, however what I have described is what happens to me (and still happened) on any version.

    If you change an existing configuration, it will not work.

    Try this: on an existing config change the connection string to a bad and start the URL of the browser. You will get an error. Now change the string to the correct connection, using an editor and attempt to restart the URL without leaving the browser. It work? (for me it does).

  • Dreamweaver with the same format as Notepad ++

    I am programmer handcoder XHTML and I work with Notepad ++, I'm migrating to Dreamweaver because it has many excellent tools and auto-completion system. My problem its that I want to have the same colors and format such as Notepad ++ because are great and I can change everything! I'm frustrated. For example, I want all ATTRIBUTES in RED and all the TAGS in BLUE, but the use of Dreamweaver and UNIQUE color for: anchor the IMAGE HTML TAGS and HTML TAGS and HTML FORM TAGS! and it looks like crap. For example, if you want a different font for the COMMENT TAGS you can not change this. Anyway, if you are a developer of DW, take a look at the style of Notepad Editor ++. Have a nice style color very important if you want to use this tool every day! :)
    Thank you!

    Hi Murray,

    Please, enter to DW and access Regime coloring Edit for HTML in the preferences, then:

    (1) how can I use a different font style to HTML comments? DW uses 'Courier New' and I want one use a different font. I can't change that.

    (2) how can I maintain the red color to the ATTRIBUTES and blue color for the TAGS in color Style for the following list: anchor tags HTML form tags HTML, Image HTML tags and HTML Table tags.

    I can't change the colors like this:

    <>Color: #0000FF (red)

    CBC Color: #FF0000 (blue)

    = Color: #000000 (back)

    'image' Color: #8000FF (Fuchsia)

    width Color: #0000FF (red)

    = Color: #000000 (back)

    "15" Color: #8000FF (Fuchsia)

    /> Color: #000000 (back)

    It allows only a single color for all the IMG tags. Same thing for A FORM and TABLE

    That's how I want the colors, it looks better to me than the colors of DW and I'm not the only one.

    http://Notepad-plus.sourceforge.NET/commun/screenshots/scrsh_lexerXML.gif

    http://Notepad-plus.sourceforge.NET/commun/screenshots/scrsh_lexerHTML.gif

    http://Notepad-plus.sourceforge.NET/commun/screenshots/scrsh_lexerSQL.gif

    Thank you!

  • Editing editing migrated iPhoto photos in the Photos app with the tool

    Photos that I edited in iPhoto, with the "Editor" tool look well in the Photos app, but when we try more editing editing areas previously published is all very pixelated. Help!

    To work around the problem, go to the original and redo your changes

    LN

  • Textfield to switch text display are dynamically with the html editor

    Hello

    I have a page element that the user can type in. Sometimes
    the user would rather have html editor but sometimes
    It is a text box so that they can type in the text
    explicitly with the html tags.
    Is it possible to have a button to switch
    the display type of textfield to text are with the editor html on the fly? Thank you.

    Suni

    Suni,

    If you don't mind submit page, you can then use conditional logic. Add two elements to the form: point of selection, the text box, HTML editor. Use the selection element to allow the end user to choose, then use the attribute conditional display of each item to show/hide the.

    You could do this with JavaScript, but it will take more work.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

  • Problem in the editor of opening in Oracle 11 g release 2

    HII all

    I have install Oracle 11 g release 2 on my 32-bit windows OS.

    But I have a little problem while opening Editor

    (1) whenever I type ed in sql prompt I have error

    Failed to create the save the file "afiedt.buf".

    How ever I tried with the editor command set

    That is, define_editor = "Notepad"; the command runs successfully, but still I get the same error while typing ed

    (2) my second problem is that I'm not able to select whatever it is to copy and paste the same

    Click on the right button of the mouse does not work also for paste

    Please suggest any solution soon...

    1 > right click on the shortcut of sqlplus.

    2 > you'll see ADVANCED. Click on it...

    3 > there is a run as Administrator option. Tick Mark It. So, OK, Ok. Then run the SQL MORE.

  • spacing of lines in the editor

    Hi, this problem is with the editor of dw - not the actual pages.

    When I opened a page already created, dw for some reason any opens the editor of each line on all other lines.

    So let's say that I made a page in pspad. I have

    line 1 < doctype >
    line 2 < html >
    line 3 < head >
    line 4 etc etc.

    But dw opens this file like this:

    line 1 < doctype... >
    line 2
    line 3 < html >
    line 4
    line 5 < head >
    line 6
    line 7 etc etc.


    How can I change this so that the Editor opens the line for line, all the other lines?

    EricDG wrote:
    > When I open a page already created, dw for some reason any opens the editor with
    > each line on all other lines.

    This is probably caused by the line break type used by one of the other
    Editor or Dreamweaver. To change the type of line break in open Dreamweaver
    Preferences in the Edit menu (or menu Dreamweaver on Mac).
    Select the Code Format in the category on the left line and set list
    type of break of LF (Unix). According to the line breaks used by the other
    Editor, you can choose one of the other options, but LF (Unix)
    is the one who should normally be used.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • I am trying to install Windows XP and during the process, a message appears with the title "RUNDLL__Error in iesetup.dll Missing entry: IEAccessSysInst. The process then stops and I cannot make progress.

    I am trying to install Windows XP and during the process, a message appears with the title 'RUNDLL '.
    "Error in iesetup.dll Missing entry: IEAccessSysInst.  The process then stops and I cannot make progress.

    Do not install an operating system is usually caused by (in order of probability):

    1. you are trying to install with other devices connected to the computer. Unplug them before trying to make an installation.

    2. "" "" defective installation media. "" Check the CD/DVD installation for scratches, tasks. Try another machine.

    3. bad optical drive. Test with another CD/DVD bootable or Exchange for a well-known work.

    4. faulty RAM. Test with Memtest86 + www.memtest.org . You will download the .iso image file to create a bootable cd. Burn the file with the third party burning software *-as an image, not in the form of data. Then start with the media that you did (you may need to change the boot priority in your BIOS so that the optical drive is the first boot device). The test runs immediately. The test run for an hour or two--at least that errors are seen immediately. If you get any errors, replace the RAM.

    * It is not necessary to have a third party burning software in Windows 7 since Win7 natively allows to burn an .iso. Other operating systems require it. A good free choice ImgBurn comes from www.imgburn.com .

    5. bad hard drive. Test with a diagnostic utility downloaded from site of the disc mftr... You create a bootable CD with the files you download. Burn the file with the third party burning software *-as an image, not in the form of data. Boot with the CD that you have done and do a full test of the reader. The physical tests fail, replace it.

    * It is not necessary to have a third party burning software in Windows 7 since Win7 natively allows to burn an .iso. Other operating systems require it. A good free choice ImgBurn comes from www.imgburn.com .

    6. other hardware components are faulty. MS - MVP - Elephant Boy computers - don't panic!

  • Minor problem with the New Installation of Windows 7 on my Inspiron E1705/9400 - two entries for "Base system device" under "Other devices" with yellow exclamation point

    Hello

    First of all, let me tell you about my system.   It is of a laptop Inspiron E1705/9400 with the Core 2 Duo T7400 processor clocked at 2.16 GHZ.   It has 2 GB of RAM and a hard drive on the Hitachi Travelstar nine 500 GB (7200 RPM).   It also has the GeForce Go 7900 GS video card.    Previously, it had Windows XP Professional (32 bit) and worked well.   But, I have three computers in my home and Home Office and would they work better together on my wired home network, so I'm upgrading all three to Windows 7.   My two desktops (a Dimension XPS 420 and the other Dimension XPS 430) seem like they will be no problem to upgrade to Windows 7.   But, this laptop was not on the list of Dell Windows 7 compatibility.   However, the Windows 7 Upgrade Advisor that I have downloaded and run seemed to say that it was OK to do a clean install of Windows 7 32-bit and he had only a few minor issues, where it says search the drivers updated from the manufacturer.   Initially, the laptop came with a 100 GB hard drive.   For my use, which becomes very small, so I decided to get the exact same 7200 RPM drive 500 GB size.   This will allow me to do a clean install of the 32 bit Windows 7 OS on the new hard drive and not have to wipe the old disk to do so.   I can just keep the old HD and paste it back whenever I need to get something out of it.

    So, here's my minor problem.   After the transfer of some elements off the coast of the old hard drive, I installed the new 500 GB drive and installed a cleaning of the 32-bit version of Windows 7.    I'm happy to announce that I have not had virtually no problems with installation and everything seems to work fine.   He seems a little more zippy than before and I have not met so far that doesn't seem to work.   I went through most of features and almost everything is superb.   But there is a minor problem, showing in Device Manager.   At least, I think it's a minor problem, but maybe someone can give me feedback to know if she is or not.

    In the Device Manager list, there is a category called "other devices" now and the icon shows a little white circle with an exclamation mark.    When you expand this category, you see two identical entries that say "Base system device" and the icon has a yellow circle with an exclamation mark inside.     I know from experience that it is not a good thing to see items in the device manager that have a yellow circle with an exclamation point.   I clicked on both of them and neither one really tells you what the device is, or who did what is site you would go to a driver.    On the general tab, it has the following information:

    -Device type Other devices

    Reference of the manufacturer- Unknown

                         Location     -         Bus PCI 3, device 1, function 3


    Under device status, it says the following:

                           The drivers for this device are not installed. (Code 28)

    There is no driver selected for the item or a set of device information

    To find a driver for this device, click Update driver.

    Each of the entries seem to be almost the same thing... but not exactly.   The other has the location

    list PCI Bus 3, device 1, function 2... instead of function 1.   This seems to be the only difference.

    I tried the button to update the driver, but that doesn't seem to work.   No matter if you say it looks like your

    computer or to look for a new driver from the internet, it does not find anything.     As I said at the beginning,

    the system seems to work very well... but, given that I don't know what this device is or does, I might be missing something.

    He drives me crazy just have these yellow circles with exclamation point hanging out in my device manager.

    I could really use some help here.    Any ideas or help would be greatly appreciated.

    Thank you

    Bryan Ray (Richmond, WILL)

    BTW, I just downloaded and installed the driver pack from this ftp location and it worked, even for Windows 8.1 - 64 bit.

    Thanks Steve!

    Roger

  • Delay in an executable LabView 10 starting with the present mapped drives in Windows 7.

    I am running windows 7 on a network peer-to-peer without internet access with an executable version of LabView 10.  Executables mapped access folders on the network and works very well once it is up and running.  The problem is the time required to run the executable when the mapped drives are present.  It takes about 65 seconds to start and now, windows displays the message "not responding".  But it always starts.  If the mapped drives are disconnected, the executable file starts in 5 seconds.  The same executable running under windows with the same mapped drives THAT XP doesn't have this problem.  Any ideas?

    Hello Rgenaway,

    Probably, it is simply a matter of Windows than a problem of LabVIEW. The difference between the time it takes to start when the drives are present and absent could be due to both the application and the readers need to connect and start communicating.

  • Play with the Windows 7 color scheme will affect my TV on different entries or overall?

    Hello, I have a Samsung LED Tv connected to my PC. Asked me to change my color scheme I did. Play with the color scheme of Windows 7 will not affect my TV in any way other than the PC itself. I want to assure you that it don't mess with any setting on my TV or other inputs for my TV, like the brightness, color, etc.

    Hello

    Thanks for posting the request in the Microsoft community forums!

    The problem description, I understand to be aware if the Windows 7 mess with any settings on Samsung LED Tv. color correct me if I'm wrong.

    We look at this, it seems that the settings on Samsung LED Tv will not get affected by the arrangement of color of computer.

    We know if you need help with the Windows operating system. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

  • How can I eliminate the websites stored in the window bar 'about: home' with the yellow star at the end of the right hand. I don't want this meemory store.

    I use Windows XP. I get a list of web sites visited previously when I enter data in the navigation toolbar (topic: home... with the yellow star at the end of the right hand of it). I don't want to get this list of web sites due to privacy issues. I can't understand how to remove.
    I get a page of search of AVG, after that I entered the stuff in Google that I don't particularly want to.

    Entries in the bar location drop-down list with a yellow star (blue on Mac) at the right end of the bookmarks and Scripture cannot be cleared from the location bar menu drop down with the delete key.

    You can delete this an item marked with a bookmark that appear in the list, if you open this url in a tab and click on the yellow star in the address bar.

    This will open the "Edit this bookmark" dialog box and you can click on the delete button to delete the bookmark if you want to delete such an entry marked with a bookmark.

Maybe you are looking for

  • Can I use charger property on a main sequence to load the properties in the subsequence?

    Hi, I tried to use the shipper of the property to load limits and variabels local values in subsequences of the main sequence. I can export all properties for my main sequence and all subsequences in the export function within selecing . When I try t

  • Deleting a large file of 117 GB

    I stupidly created a large video file of 117 GB on my drive C on Vista.  I need to remove it, but after 42 hours I am stll get "calculate." What can I do?

  • Pro 8600 first page prints fast rest slow printing

    Hello! If I print 25feuilles he quickly made them, but after a few batches of 25 the first page of all the 25 print quickly and then the next 24 all go to the same speed and much more slowly. I print leaves page in color in draft mode (Flyers). Is th

  • Print blackBerry Smartphones to go

    My impression of go never worked. page hangs after I get my blackberry id and I have never to paginate on computer where I'm supposed to enter code to connect the computer with the blackberry... would like to have this feature... What can I do? am fr

  • Floppy 720K read problems with Windows 7

    I use an A reader on the desktop that reads the 720 KB diskettes for an older embroidery machine that I use.  I had to upgrade to Windows 7 for an upgrade of my embroidery digitization program, and now it does not appear that the reader reads the 720