AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Up and Down hotkeys not working for Onenote 2007

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Hotfoot



Joined: 14 Sep 2005
Posts: 21

PostPosted: Thu Feb 15, 2007 6:04 am    Post subject: Up and Down hotkeys not working for Onenote 2007 Reply with quote

I use the below hotkey combinations regularly and they work for all my programs. Recently, I installed Microsoft Onenote 2007 but strangely the 'up' and 'down' hotkeys do not work within Onenote 2007. I was wondering if someone knows why and has a workaround solution. I'm using Windows XP SP2. Thanks in advance.

Capslock & i:: Send,{up}
Capslock & j:: Send,{left}
Capslock & k:: Send,{down}
Capslock & l:: Send,{right}
Back to top
View user's profile Send private message
adamrgolf



Joined: 28 Dec 2006
Posts: 440

PostPosted: Thu Feb 15, 2007 6:13 am    Post subject: Reply with quote

have you tried the different Send Modes
Back to top
View user's profile Send private message
Hotfoot



Joined: 14 Sep 2005
Posts: 21

PostPosted: Fri Feb 16, 2007 7:38 am    Post subject: Reply with quote

Thanks. I didn't know about the different Send commands or modes. I found that 'SendPlay' worked for me.
Back to top
View user's profile Send private message
adamrgolf



Joined: 28 Dec 2006
Posts: 440

PostPosted: Fri Feb 16, 2007 7:40 am    Post subject: Reply with quote

No problem, glad to help.

Adam
Back to top
View user's profile Send private message
jak



Joined: 28 Feb 2006
Posts: 159

PostPosted: Mon Jun 18, 2007 2:16 pm    Post subject: Reply with quote

wow, I have the exact same problem with onenote (and I use almost exactly the same shortcut keys for cursor control in all my programs). Great to see i'm not the only one. I will try sendplay. Thanks!
Back to top
View user's profile Send private message
jak



Joined: 28 Feb 2006
Posts: 159

PostPosted: Mon Jun 18, 2007 2:35 pm    Post subject: Reply with quote

hi guys - question -- While sendplay works for me too, in terms of allowing cursor up/down via hotkeys, when I press the shift key along with the hot key, the text does not get highlighted right away. There is a 'one key press delay'. For example:

a) I'm using, for example: "lctrl & i::sendplay {blind}{up}"
b) using send instead of sendplay, this works for me everywhere except in onenote 2007. In onenote 2007 I have to use sendplay. However:
c) Suppose I have two lines of text. I place the cursor at the end of the text. I press and hold the shift key, and then press "lctrl and i". Normally this should highlight both lines because the shift key was pressed. However, it does not highlight both lines. On the first press of "lctrl & i", the cursor moves up, but the lines dont get any highlighting. On the SECOND PRESS of "lctrl and i" (with shift key still held down), THATS WHEN it starts highlighting the text. If I keep hitting "lctrl & i" it keeps highlighting the text as it moves upwards thru the text.

So my question is - why does not highlight the text on the very first hotkey press? Why does it only start highlighting AFTER the SECOND press? Isnt {blind} supposed to do it from the very first press? That IS how it works with "Send" and "SendInput", so why not with "SendPlay"?

Thanks!
Back to top
View user's profile Send private message
jak



Joined: 28 Feb 2006
Posts: 159

PostPosted: Tue Jun 19, 2007 12:46 am    Post subject: Reply with quote

got a workaround of sorts. In order for sendplay to recognize the shift key on the very first press, I had to do it the long way, like this:

Code:
;up
rwin & i::
getkeystate, state, shift, P
if state = D
{
Sendplay {blind}{shift down}{Up}{shift up}
return
}
else
sendplay {blind}{Up}
return



;down
rwin & k::
getkeystate, state, shift, P
if state = D
{
Sendplay {blind}{shift down}{down}{shift up}
return
}
else
sendplay {blind}{down}
return
Back to top
View user's profile Send private message
nick_guest
Guest





PostPosted: Thu Nov 13, 2008 12:32 pm    Post subject: Reply with quote

Hotfoot wrote:
Thanks. I didn't know about the different Send commands or modes. I found that 'SendPlay' worked for me.


I encountered the same problem the 'up' and 'down' hotkeys doesn't work within OneNote 2007. I tried to use 'sendplay' as you said to solve this problem but i couldn't write a correct script.

Could you or someone else help me? Thanks a lot in advanced!

the script of below doesn't work.
Capslock & i:: Sendplay,{up}
Capslock & j:: Sendplay,{left}
Capslock & k:: Sendplay,{down}
Capslock & l:: Sendplay,{right}
Back to top
Fakie
Guest





PostPosted: Sun Mar 22, 2009 11:47 am    Post subject: Reply with quote

I second that SendPlay as suggested doesn't work at least with OneNote 2007 SP1. Does anybody know how to work around this problem?
Back to top
AgeKay



Joined: 22 Nov 2008
Posts: 7

PostPosted: Fri Apr 08, 2011 9:14 pm    Post subject: Reply with quote

I have the same problem in OneNote 2010, but your workaround works great. Thanks, jak!

jak wrote:
got a workaround of sorts. In order for sendplay to recognize the shift key on the very first press, I had to do it the long way, like this:

Code:
;up
rwin & i::
getkeystate, state, shift, P
if state = D
{
Sendplay {blind}{shift down}{Up}{shift up}
return
}
else
sendplay {blind}{Up}
return



;down
rwin & k::
getkeystate, state, shift, P
if state = D
{
Sendplay {blind}{shift down}{down}{shift up}
return
}
else
sendplay {blind}{down}
return
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group