AutoHotkey Community

It is currently May 27th, 2012, 12:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: January 31st, 2009, 10:56 am 
Offline

Joined: September 26th, 2007, 11:18 pm
Posts: 101
I want to automate pressing of

a combination of numblock keys (with numlock off):

send, {numpadins down numpadclear numpadins up}

(zero acts as a "shift" - press it and hold, and then another key - here 5)




to trigger a function performed by a similar but simpler program Bomes Midi translator. The key combination makes it do a useful function. Unfortunately, its code is compiled, so I cannot modify it directly, that's why I hope in ahk.


but it does not work as expected, is there anything wrong with the send command?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2009, 11:39 am 
Offline

Joined: January 8th, 2009, 11:36 pm
Posts: 42
yes... it should be:

Code:
send, {numpadins down}{numpadclear}{numpadins up}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2009, 5:22 pm 
Offline

Joined: September 26th, 2007, 11:18 pm
Posts: 101
in any word processor it apparently does work.

but Bomes midi translator patch is a hotkey app itself. maybe that's why it does not accept other hotkeys?

I have tried to lower its priority - don't know if it makes sense at all, but does not work here.

Any way to make ahk feed another hotkey application?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2009, 8:34 pm 
Offline

Joined: January 8th, 2009, 11:36 pm
Posts: 42
Ah, you might need a small delay in between...


sendinput {numpadins down}
sleep 40
sendinput {numpadclear}
sleep 40
sendinput {numpadins up}
sleep 40


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2009, 3:35 pm 
Offline

Joined: September 26th, 2007, 11:18 pm
Posts: 101
I meant slowing down the other one :)

But I realize this other one could be akh script compiled.

Any way to make one script trigger hotkeys in another one, both being active simultaneously?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], chaosad, Exabot [Bot], Google Feedfetcher, jrav, Yahoo [Bot] and 18 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