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 

Send does not work with all programs. Is OSC possible?

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



Joined: 22 Apr 2007
Posts: 1454

PostPosted: Fri May 04, 2007 9:05 am    Post subject: Send does not work with all programs. Is OSC possible? Reply with quote

Me again!

I'm still trying to get some things to work with Glovepie. I want my AHK exe to be able to communicate with Glovepie, and so far I haven't tried this, only the other way round (Glovepie sending information to my AHK exe).

I can't seem to get a simulated keypress to be detected in Glovepie (only a real one). Glovepie link...

http://carl.kenner.googlepages.com/glovepie_download

Quick test code for AHK...

Code:
#NoEnv
#SingleInstance, Force


loop
{
}

F12::
sendinput b
Return


and then example code in glovepie...

Code:
if keyboard.B
say "worked"
endif


Now, if I run that Glovepie script and press B then it'll say "worked", however, if I press F12 then it should also press B and buffer out the F12 I've pressed.

So...Is it possible to have Glovepie see the keys pressed by AHK, and if not, then why not?

If it's not possible to communicate with key presses then I was also wondering whether OSC (open sound control) could be used to send data between them, as Glovepie supports this, but I can't find anything on it in AHK
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 7698
Location: Germany (but I only speak English)

PostPosted: Fri May 04, 2007 4:14 pm    Post subject: Reply with quote

you might need a different sendmode for GP, otherwise make sure the keyboard hook directive is at the top of your ahk script
_________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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