Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 02:39:38 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  My First Plugin - Function, Forms And General Troubbles
Pages: « 1 2   Go Down
Print
Author Topic: My First Plugin - Function, Forms And General Troubbles  (Read 1417 times)
0 Members and 2 Guests are viewing this topic.
iceblu3710
Active Member

Offline Offline

Posts: 24


View Profile
« Reply #10 on: January 02, 2010, 08:26:24 PM »

Bahaha I got sick of that hook library and used something else.

Here is a working project that detects key events globally and displays a msgbox with the key data. Put the compiled dll and KeyHook.dll in the plugins folder and check it out.

its a great little library, add the KeyHook.lib to your project and include KeyHook.h (very well documented) and away you go.


* Iceblu3710_CustomPlugin_v2.zip (413.08 KB - downloaded 78 times.)
Logged
rcrabb
Active Member

Offline Offline

Posts: 154




View Profile
« Reply #11 on: January 02, 2010, 08:53:06 PM »

Nice. I took a look and it seem easier than the other. Keep posting your progress. Im interested to see what you do with it.
Logged

Ryan
iceblu3710
Active Member

Offline Offline

Posts: 24


View Profile
« Reply #12 on: January 04, 2010, 04:18:02 PM »

So im playing with the Trajectory Planner and bloody hell its confusing how you access member variables... For example here is an encoder counter that is in both the Engine and in MAchPlanner:

Engine->Encoders[4].Count[0] = MPG1_Count;
MainPlanner->MPG.Encoders[4]->Count[0] = MPG1_Count;

What is the rhyme & reason for member addressing?

I know you access class/struct/union members directly (.) and access objects with pointers (->) but in the 2nd example how is there a pointer to Count when thats a member of the encoder structure?? Then in later compilers I need to use (::). Anyone care to explain to me this setup or have a good tutorial or web explanation on all this??

NOTE: BSOD = Funny memories
« Last Edit: January 04, 2010, 05:28:03 PM by iceblu3710 » Logged
Pages: « 1 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!