AutoHotkey Community

It is currently May 27th, 2012, 6:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: January 18th, 2011, 12:58 pm 
Offline

Joined: January 18th, 2011, 12:53 pm
Posts: 2
Script for DCS Black Shark or DCS A-10C...need help...
This script works when testing in windows 7, using notepad..
When i start DCS and try to use it, it doesnt work...

I have problem using this autohotkey script..Idea is that i would like to use my external numerical usb keyboard as simplified programmable unit with 20 keys to program for different flight simulators...The problem is when using autohotkey utility, DCS does not detect my programmed keys...

This is my *.ahk script. It should transfer keys 7,8,9,+,4,5,6,- to be used as yaw/pitch/altitude/ dampeners and as 4 targeting modes...

numpad7::send q
numpad8::send {LAlt}s
numpad4::send v
numpad5::send n
numpad9::send {LShift}b
numpadsub::send {LShift}p
numpadadd::send {Lalt}h
numpad6::send {LShift}p

But when i press any button it just isnt programmed as edited in above script. Can somebody help me to fix this. Am i missing some commands in my script?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2011, 8:38 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
You should try the options in FAQ-Games.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2011, 8:49 pm 
Offline

Joined: January 18th, 2011, 12:53 pm
Posts: 2
Thanks i tried....but i cant make it work...Tried sendplay, but it doesnt work...anybody, help please...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2011, 3:58 am 
Offline

Joined: January 18th, 2011, 9:58 am
Posts: 14
Did you try sendinput instead of send?

Also, is this game online? Not sure what dcs is.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2011, 4:28 pm 
Thanks, will try sendinput as soon as i get home...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2011, 10:52 am 
Tried sendinput it doesnt work...What next?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2011, 9:38 am 
Offline

Joined: April 28th, 2011, 9:32 am
Posts: 1
I'm having a hard time getting this to work as well, what I have found is this:

What I am trying to do is map a snap view to one button. To get the snap view in this example you press Numpad0 and then Numpad1.

I am using the middle mouse button for this script.

So, what does work is:
MButton::Numpad0

Also this works:
MButton::Numpad1

Also this works

MButton::
{
Send {Blind}{Numpad0}
}




What does NOT work though is

MButton
{
Send {Blind}{Numpad0}
Send {Blind}{Numpad1}
}



It sends the first key {Numpad0} but never the second.


I have tried Send {Blind}{Numpad1} by itself, and it doesn't work either.

Have tried SendPlay, SendEvent and SendInput but they don't work with either key, only Send {Blind} seems to, and only with {Numpad0}.

But both keys work in a direct remap.

Any ideas?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 8th, 2011, 12:06 am 
Offline

Joined: December 26th, 2006, 6:52 pm
Posts: 13
Location: Paris, France
Hi, hreich, we also meet outside from ED-DCS forums. ;)

I've just got some AHK script working for DCS-A-10C Mission Editor and I had do deal with some time-related issue from within the editor's Launcher .exe process. (Thread: ME - AutoHotkey utilities)

This issue is probably related to what I read in these posts. In this case, my solution may apply here too...

... It's all about using SetKeyDelay in order to slow AutoHotkey down a little. In my case, SetKeyDelay, 100 was good.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Bing [Bot], JSLover, sjc1000 and 64 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