AutoHotkey Community

It is currently May 26th, 2012, 11:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: February 15th, 2007, 7:04 am 
Offline

Joined: September 14th, 2005, 5:21 am
Posts: 21
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}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2007, 7:13 am 
Offline

Joined: December 28th, 2006, 9:46 am
Posts: 440
have you tried the different Send Modes


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2007, 8:38 am 
Offline

Joined: September 14th, 2005, 5:21 am
Posts: 21
Thanks. I didn't know about the different Send commands or modes. I found that 'SendPlay' worked for me.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2007, 8:40 am 
Offline

Joined: December 28th, 2006, 9:46 am
Posts: 440
No problem, glad to help.

Adam


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 3:16 pm 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 3:35 pm 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 1:46 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2008, 1:32 pm 
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}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2009, 12:47 pm 
I second that SendPlay as suggested doesn't work at least with OneNote 2007 SP1. Does anybody know how to work around this problem?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2011, 10:14 pm 
Offline

Joined: November 22nd, 2008, 2:38 am
Posts: 7
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, BrandonHotkey, Exabot [Bot], Google Feedfetcher, Yahoo [Bot] and 52 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group