Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > simulated cursor-key-up/down key-press changed ?

Reply
Thread Tools

simulated cursor-key-up/down key-press changed ?

 
 
polen.t2006@freenet.de
Guest
Posts: n/a
 
      10-11-2007
Hi,

in the past it worked well to send from own program a simulated Key-
press of the Cursor-up key Taste to another program, that in the other
prgram the selection of an item in a listfield moves one step up/down:

sendmessage(wnd,WM_KEYDOWN,VK_UP,0);
sendmessage(wnd,WM_KEYUP,VK_up,0);

Now its not working anymore somehow (software-update), albeit e.g. a
simulated double-click still works by using

sendmessage(wnd,WM_lBUTTONDBLCLK,0,0);


I always used 0 as last parameter.


The MSDN (http://msdn2.microsoft.com/en-us/library/ms912654.aspx)
says

WM_KEYDOWN nVirtKey = (int) wParam; lKeyData = lParam;

lKeyData:
Specifies the repeat count, context code, previous key-state flag,
and transition-state flag, as shown in the following table ...


Does new programs have different handling ("Standards") ? And instead
of using 0 one have to specify lKeyData in detail, that vk_up will be
understood ? I mean, the couble-click is still working as in the past

Any Ideas?

Thanks a lot,

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changed state to up changed state to down FastEthernet LINEPROTO-5-UPDOWN surrealarmada@gmail.com Cisco 3 03-07-2007 06:06 PM
scroll position is changed when style is changed? mxbrunet Javascript 1 11-03-2006 03:40 AM
xmlDocument.Save "
" getting changed changed to "&#10" st@jpa.co.jp ASP .Net 1 10-11-2005 01:30 PM
Simulated Tests? jack tinker MCSE 4 04-01-2005 05:19 PM
Problem: global variable with a 2d dynamic array simulated using a collection class within a singleton object stan k. Java 1 09-23-2003 03:48 PM



Advertisments