Biting Bee wrote:
I would like to create an external program (Visual Shortcuts)
How can I send my externel shortcuts to Flacon?
I use vb6 or vb.net
keybd_event send to falcon?
Here's a download link to a C# project I made for the guys at Viperpits that will send keystrokes to Falcon, given a callback name.
http://www.viperpits.org/smf/index.php? ... ttach=2540
Even though it's written in C# you can use it in your VB.NET project.
Just extract the .ZIP file to a folder on your machine, then in Visual Studio, go to the Solution Explorer, right-click on your solution, and select Add/Existing Project. Browse to the folder where you unzipped the .ZIP file, and select the FalconCallbacksSender.csproj file. This will add the project to your solution.
Then in your VB.NET project, you need to add a reference to the FalconCallbacksSender project. In Solution Explorer, right-click on your VB.NET project, then select Add Reference. Choose the Projects tab and select FalconCallbacksSender from the list.
Now you're ready to use it in your code.
Here's some example VB code...
Code: Select all
Dim KeyDelayTime As Integer = 50 'amount of time, in milliseconds, to wait between keystrokes
Dim sender As New FalconCallbacksSender.FalconCallbacksSender(KeyDelayTime)
'wait for Falcon to be running
Dim Handle As IntPtr
While Handle = IntPtr.Zero
Handle = FalconCallbacksSender.FalconCallbacksSender.GetFalconWindowHandle()
Application.DoEvents()
End While
'send a callback to Falcon
sender.SendCallbackToFalcon("SimHsiModeInc") ''for example, send the SimHsiModeInc callback to increase the HSI Mode setting
The callback sender will look up your current callsign and will read in the associated keystrokes.key file, so it knows what keystrokes are associated with a specific callback in Falcon. You can then just invoke the callback by name (i.e. "SimHsiModeInc") instead of hard-coding the specific keystrokes into your code.