Sign Up |  Live StatsLive Stats    Articles 34,879| Comments 154,841| Members 17,230, Newest IronSingh25| Online 305
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

 
 
  
  
Sikh Philosophy Network » Members Lounge » Information Technology » How do I detect a Ctrl-E keystroke?

How do I detect a Ctrl-E keystroke?

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 25 USD (6%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
detect if toolbar is displayed SF Information Technology 2 28-Jul-2006 08:22 AM
keystroke log on XP ryan Information Technology 1 28-Jul-2006 08:15 AM
Trouble with Ctrl+Break bdtmike Information Technology 0 28-Jul-2006 08:12 AM
Detect if change since last save Bob Information Technology 1 04-Nov-2005 15:20 PM


Tags
detect, ctrle, keystroke
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:09 AM
Nathan's Avatar Nathan
Guest
 
Posts: n/a
   
   
How do I detect a Ctrl-E keystroke?

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I understand detecting the "E" part of this, but how do I capture a Cntrl-E?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10079-how-do-i-detect-ctrl-e.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
I want to be able to type data in a field, but have a window pop up on when
Cntrl-E is pressed. The help file said to use acCtrlMask, but that seems to
give the same value regardless of whether it is down or not. I'm confused.

Thanks,

Nathan

*








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:09 AM
Pieter Wijnen's Avatar Pieter Wijnen
Guest
 
Posts: n/a
   
   
Re: How do I detect a Ctrl-E keystroke?

use the Form's KeyDown Event (set KeyPreview to Yes) - or - the Control's
KeyDown Event

HTH

Pieter

"Nathan" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
news:E45E768D-712C-4DF7-BC4D-819B40B34491@microsoft.com...
>I understand detecting the "E" part of this, but how do I capture a
>Cntrl-E?
> I want to be able to type data in a field, but have a window pop up on
> when
> Cntrl-E is pressed. The help file said to use acCtrlMask, but that seems
> to
> give the same value regardless of whether it is down or not. I'm
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
> confused.
>
> Thanks,
>
> Nathan



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:09 AM
Nathan's Avatar Nathan
Guest
 
Posts: n/a
   
   
Re: How do I detect a Ctrl-E keystroke?

That part I understand, but how do I determine that the control key is down
too? The user could press E during normal operation within this field and I
only want the dialog triggered on Ctrl-E.

Thanks

Nathan

"Pieter Wijnen" wrote:

> use the Form's KeyDown Event (set KeyPreview to Yes) - or - the Control's
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
> KeyDown Event
>
> HTH
>
> Pieter
>
> "Nathan" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
> news:E45E768D-712C-4DF7-BC4D-819B40B34491@microsoft.com...
> >I understand detecting the "E" part of this, but how do I capture a
> >Cntrl-E?
> > I want to be able to type data in a field, but have a window pop up on
> > when
> > Cntrl-E is pressed. The help file said to use acCtrlMask, but that seems
> > to
> > give the same value regardless of whether it is down or not. I'm
> > confused.
> >
> > Thanks,
> >
> > Nathan

>
>
>

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:09 AM
Pieter Wijnen's Avatar Pieter Wijnen
Guest
 
Posts: n/a
   
   
Re: How do I detect a Ctrl-E keystroke?

there's an unique integer value associated with the key-combo (keycode ,
shift)
69, 0 (normal e)
69,2 (ctrl+e)

hth

Pieter

code sample

Private Sub Text0_KeyDown(KeyCode As Integer, Shift As Integer)
Debug.Print KeyCode, Shift
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
End Sub



"Nathan" wrote in message
news:EE78963E-2B55-4526-9522-1CC1061F164B@microsoft.com...
> That part I understand, but how do I determine that the control key is
> down
> too? The user could press E during normal operation within this field and
> I
> only want the dialog triggered on Ctrl-E.
>
> Thanks
>
> Nathan
>
> "Pieter Wijnen" wrote:
>
>> use the Form's KeyDown Event (set KeyPreview to Yes) - or - the Control's
>> KeyDown Event
>>
>> HTH
>>
>> Pieter
>>
>> "Nathan" wrote in message
>> news:E45E768D-712C-4DF7-BC4D-819B40B34491@microsoft.com...
>> >I understand detecting the "E" part of this, but how do I capture a
>> >Cntrl-E?
>> > I want to be able to type data in a field, but have a window pop up on
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
>> > when
>> > Cntrl-E is pressed. The help file said to use acCtrlMask, but that
>> > seems
>> > to
>> > give the same value regardless of whether it is down or not. I'm
>> > confused.
>> >
>> > Thanks,
>> >
>> > Nathan

>>
>>
>>



Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:10 AM
kunyi's Avatar kunyi
Guest
 
Posts: n/a
   
   
Re: How do I detect a Ctrl-E keystroke?


"Nathan" дÈëÓʼþ
news:EE78963E-2B55-4526-9522-1CC1061F164B@microsoft.com...
> That part I understand, but how do I determine that the control key is

down
> too? The user could press E during normal operation within this field and

I
> only want the dialog triggered on Ctrl-IF.
>
> Thanks
>
> Nathan
>
> "Pieter Wijnen" wrote:
>
> > use the Form's KeyDown Event (set KeyPreview to Yes) - or - the

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
Control's
> > KeyDown Event
> >
> > HTH
> >
> > Pieter
> >
> > "Nathan" wrote in message
> > news:E45E768D-712C-4DF7-BC4D-819B40B34491@microsoft.com...
> > >I understand detecting the "E" part of this, but how do I capture a
> > >Cntrl-E?
> > > I want to be able to type data in a field, but have a window pop up on
> > > when
> > > Cntrl-E is pressed. The help file said to use acCtrlMask, but that

seems
> > > to
> > > give the same value regardless of whether it is down or not. I'm
> > > confused.
> > >
> > > Thanks,
> > >
> > > Nathan

> >
> >
> >



Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:10 AM
Rick Wannall's Avatar Rick Wannall
Guest
 
Posts: n/a
   
   
Re: How do I detect a Ctrl-E keystroke?

  Donate Today!  
Make a form with two text boxes on it to run this code:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

Me.Text0 = KeyCode
Me.Text2 = Shift

End Sub

Set KeyPreview to yes on the form. using KeyDown or KeyUp you can test
KeyCode (in the event signature) to see the value of Shift.

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
1=shift key
2=control key
4=alt key

You can get combinations, for example 3 = control+shift.

HTH


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Recent Discussions
sikhism Fools Who Wrangle Over...
Today 04:33 AM
912 Replies, 77,828 Views
sikhism Benti Chaupai - Keertan...
Today 04:28 AM
10 Replies, 203 Views
sikhism Meditate - How, What,...
Today 03:54 AM
38 Replies, 1,111 Views
sikhism Is Hindu/Sikh a Valid...
Today 02:20 AM
82 Replies, 1,437 Views
sikhism Undercover Mosque
Today 01:10 AM
0 Replies, 24 Views
sikhism Incidental Happiness...
Yesterday 23:00 PM
0 Replies, 35 Views
sikhism Amazing truth!
Yesterday 22:20 PM
0 Replies, 48 Views
sikhism Black money: Indians...
Yesterday 21:40 PM
1 Replies, 42 Views
sikhism Sikh temple brawl a...
Yesterday 20:33 PM
0 Replies, 49 Views
sikhism Turban Cloth
Yesterday 20:32 PM
3 Replies, 98 Views
sikhism A village where every...
Yesterday 19:12 PM
0 Replies, 40 Views
Why have Sikhs Changed...
Yesterday 18:12 PM
34 Replies, 1,168 Views
Scientists cure cancer,...
By Kamala
Yesterday 14:09 PM
7 Replies, 123 Views
Any Japji Sahib videos...
By Kamala
Yesterday 13:02 PM
6 Replies, 79 Views
SGPC Recruitment Scandal
Yesterday 04:09 AM
0 Replies, 54 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 04:36 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.42605 seconds with 30 queries