Mapping hardware tools into existing AI tools

I have an interactive board with tools (such as pen or eraser) which I want to integrate with the AI. The typical scenario woulld be as follows: the user lifts the pen from the tray, the pen event will me mapped into selecting Pencil Tool from AI toolbar after which the user can add freehand annotations to the AI document.
Is there an API which would allow me to map abailable hardware tools with relevant AI tools? Is there an example which would demonstrate such integration?

No, there's no example for a pluging listening for external triggers, but I wouldn't be too concerned about that. You'd just need to take one of simpler example plugins (you can probably leave the stuff it does in for now) and then just add your listening code setup to the StartupPlugin() method. Presumably this will involve callbacks of some kind.
Once you have that, you'd do something like this in your callback:
void callback(int id)
  // an application context is needed to 'kick' AI when you come from somewhere unusual, makes sure its all ready to go. Otherwise you get wierd errors
  ai::AppContext context(pluginRef); // you'll need to stick the reference to your plugin in some static global somewhere so you can use this
  char toolName[255] = "";
  MapIdToTool(id, toolName);
  SelectTool(toolName);
void SelectTool(const char* toolName)
  ai::int32 count = 0;
  sAITool->CountTools(count);
  char buffer[255] = "";
  for (ai::int32 i = 0; i < count; i++) {
    AIToolHandle tool = 0;
    sAITool->GetNthTool(i, &tool);
    sAITool->GetToolName(tool, buffer);
    if (0 == strcmp(buffer, toolName) {
      sAITool->SelectTool(tool);

Similar Messages

  • From where we have to take source flatfiles into powercenter designer tool

    U can import the source(Tables / Flatflies etc)  from Source Analyzer Here are tje steps to Import the Flat File Sources   Import the flat file file1.dat definition into the repository. Select SOURCES | IMPORT FROM FILE from the menu. Select file1.dat from the source file directory path.The file should be places in infa_shared --> SrcFiles     Set the following options in the Flat File Wizard: Select Fixed Width and check the Import field names from first line  box. This option will extract the field names from the first record in  the file.  Create a break line or separator between the fields. Once the steps are followed u can click finish .U should be able to see the imported file in the source analyzer which u can u as a source in the mapping.

    Hi I want to know From where we have to take source flatfiles as a source tables into powercenter designer tool in realtime projects in IT Organizations Thanks in advance...

  • Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5

    Hi there
    Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5
    My slide show consists of lots of thumb nails of paintings under a large painting.
    When the small painting thumb nail is clicked the large painting appears.
    I would like to be able to enlarge all areas of the large painting when a zoom tool is placed over areas of the large painting.
    Really appreciate any one help.

    Here's the Dreamweaver forum...
    http://forums.adobe.com/community/dreamweaver/dreamweaver_general

  • Why I can't insert the eject tool into my ipad 4's sim tray

    Hey every one.
    I have an iPad 4 wi-fi cellular
    I want to ejec it's SIM tray but I can't push the eject tool into that tiny hole.It seems like there is no space for it.It just goes straight down and I can't insert it in a 45 degrees angle.
    Someone plz heeelllpppp!
    (Sorry English is not my native language :) )

    Give it a little push. If the tray still doesn't open I'd stop by the Apple Store and let them have a look.

  • I cannot log into the admin tool

    I am unable to log into the admin tool with my username/password to change my wifi name/password. It keeps telling me it doesn't match even though I'm using the username/password on the reciept I was given.

    Hi Vu,
    Have u tried the option of Config Tool?.
    i think u can use config tool for offline administrations.
      i think u have to run the configtool.bat file which is located in the configtool dir , which is in the same directory as of Visual administrator.
    i have not tried this particular problem using config tool.
    please gothrogh this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/49/e98876e9865b4e977b54fc090df4ed/tree.htm
                                     Regards
                                      Kishor Gopinathan

  • Why does dragging on a Touch Screen change the cursor into a Hand Tool?

    Why does dragging on a Touch Screen change the cursor into a Hand Tool? This did not happen in CS 5.5 and I could edit on my touch screen monitor. With Photoshop CS 6, as soon as I start to drag, the cursor changes to a hand cursor. I have look at all of the system options and nothing seems to affect it so I have to assume it is something wrong with Photoshop CS 6.

    Try staying with it for a while.  It is much nicer panning that way.  Give it a flick, and touch the screen again when in the right position. 
    I think it came in with CS4 BTW, but it makes a lot of sense keeping it on the Touch version.

  • Does the frequency selection tool still exist in audition?

    Does this tool still exist in audition? I am sure it was available in soundbooth
    Very useful if you are trying to remove a constant buzzing of a certain frequency from an audio file.

    Thanks for your answer!
    Disappointing that it's gone. Will definitely submit a feature request.
    The frequency selection tool was convenient, especially in the spectral view, because you could manually select one frequency across the entire file, while being zoomed in at only one specific time segment. You always risk forgetting/not catching something at the beginning or end of the file, when doing the manual selection tools, like the rectangle selection. Plus you'll have to be zoomed out all the way, so it's a bit harder to exactly select the frequency you need.
    The automated tools are useful, but in early 2015 I still value the human pattern recognition systems and artistic and aesthetic judgement over that of an AI. (We'll see for how much longer,...)

  • Can't get pencil tool into merge drawing mode

    I have downloaded the trial version of Adobe Executive Suite CS5. In the Flash Professional CS5 program I am trying to do a drawing with the pencil tool.  In the old version of Flash that I have (4.0) if I draw two lines that overlap, I can delete the line past the point where they cross.  In this version I can't do that.  It treats each line I draw as a separate item and won't combine them.  I notice the properties panel says I am in Object mode which would be the reason.  However I can't get it to go to merge mode, which is supposed to be the default.
    Is this because it's the trial version and not all features work in that version?  Or could there be some other reason?
    Thanks for any help anyone can offer.  My email address is [email protected] and I can be phoned at 541 782-5904 (Oregon).
    Ron Coleman

    Thank you.  I tried what you said and the button simply didn't respond.  However I was using the line tool or the pencil tool when I did this. I later tried using the rectangle tool and then it worked.  Once I got it switched back it stayed that way.  I appreciate your emailing me, it's so hard to get answers to problems with Adobe.  I had the old Flash program by Macromedia and I honestly believe it is easier to use than the new one.  But maybe that won't be so once I've spent more time with it.
    Thanks again.
    Ron Coleman

  • Adding a column into existing index

    Can I add a column into existing index?
    or do I need to drop the index and recreate one?
    Thanks.

    but there is no way to add a column to an existing table10:43:24 TEST.SQL>create table test10:43:28 2 (
    10:43:29 3 a number
    10:43:32 4 )
    10:43:34 5 tablespace tools
    10:43:36 6 ;
    Table created.
    Elapsed: 00:00:00.06
    10:43:38 TEST.SQL>alter table test add
    10:43:44 2 b date;
    Table altered.
    Elapsed: 00:00:00.68
    10:43:48 TEST.SQL>desc test
    Name Null? Type
    A NUMBER
    B DATE
    10:43:51 TEST.SQL>drop table test;
    Table dropped.Indeed there is.Yoann.

  • How can i add a new tool in adobe illustrator tool box ?

    Hi,
    I want to create a new tool in Adobe illustrator tool box, which calls another application. I am a beginner in Adobe illustrator plug-in programming.
    Please help me................
    Thanks in advance
    Sreejesh K V

    Much easier with a toolkit but you could use ADO objects,
    get connection, make a SQL object "INSERT record INTO table where  ...." 
    Execute the parameterized query
    Free up record sets data
    close connection when done.
    This is a very simplified version
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • LR5 when I use the crop tool or the brush tool the DONE box that shows up in the bottom corner is gone. How do I get it back?

    When I go into the crop tool (or any other tool) there is usually a DONE box that shows up on the bottom to exit the tool. Recently it disappeared. Now to close the crop I have to use the short cut key or click the tiny little "close" on the side. Is there a way to get the done button back? I updated with the latest software update and also reset all custom setting just incase I changed something accidentally. Any help would be appreciated.  

    Thank you so very much! I must have gone 2 months trying to figure that out… and finally I asked. Such a simple solution too.

  • Coloring issues with magic wand tool and paint bucket tool, leaves uncolored areas near drawn lines

    Photoshop CS6 doesn't color properly.  Whetever I use brush tool or elliptical marquee tool to do the lines (with brush tool I use Hard Round, not soft), it doesn't color the whole area when i fill them with color. This happens with both magic wand tool AND paint bucket tool, there is always a small uncolored area near the lines. I have tolerance on 30,  and anti-alias, contiguous and sample all layers boxes checked. (this setting worked on my old CS3) I have tried tolerance from 0 to 100, no difference. I have also tried unchecking the boxes I just mentioned, still no difference. I hope there is a solution for this, because it is tedious to always go to the Select - Modify - Expand every time I need to color some area. So how do I fix this problem? I use seperate layers for lines and colors, like I have always done with other Photoshop versions. Even in school where they have CS5 those normal settings work.

    Hello Chris,
    I don't think this is a "user error". I think Adobe should be able to program a state of the art paint bucket, which is capable to get this done right.
    Other applications are able to get this done right.
    Please don't fall into a programmer's ignorance ("this is done right by definition") but listen to us artists and improve this unintuitive behavior. Add something like "ignore transparent pixels", because this doesn't even work if you draw on an empty layer.
    Thank you!

  • Add new city into existing Network metadata

    i have one network data model in my database for delhi city i am using Oracle 10 g spatial. how to add one more city into existing network metadata?

    If the column structure is different, how did you load the Delhi data into NDM tables ?
    You have to load the shape file first and then do the required mapping to move that into the NDM tables.
    Secondly, are you using the PL/SQL api to do the network analysis ? Or are you using the Java api ?
    siva

  • Select/transform tool changes to pan tool when working with text

    I have had this problem since Motion 2, and version 3 is no different. Whenever I work with text in Motion, at some point while moving the text in the canvas, the select/transform tool will suddenly change into the Pan tool, and it won't let me do anything else but pan things. I have to close and reopen Motion to correct this. It happens VERY OFTEN, every time I work with text...it get's really annoying haveing to conatantly quit and reopen the program. I lose a lot of time doing that. Has anyone else had this problem? I also have a Powermac G5 that has the same problem so I know it's not the Mac Pro. Any suggestions?

    Sounds familiar.
    I searched and saw a couple posts from Patrick that suggested,
    "This seems to happen after adjusting text. Simply click on the canvas and press space. The project won't play and the hand will turn into your selected tool."
    see:
    http://discussions.apple.com/thread.jspa?messageID=2249852&#2249852
    http://discussions.apple.com/thread.jspa?messageID=4299262&#4299262

  • How to add the library of linphone into existing project ?

    How to add the library of linphone into existing project ?

    How to add the library of linphone into existing project ?

Maybe you are looking for

  • Error message when installing itunes

    hi i have got a new laptop with windows 7 on it and when i try install it i get this error message Microsoft.VC80.CRT, version=8.050727.4053, type=win32, publickeytoken=1fc8b3b9a1e18e3b, process or architecture=x86. Refer to help and support for more

  • Can I change the location of files in Adobe Bridge

    I have a small SSD for my program files. Adobe Bridge is usingit to store image data and I believe backups of the images. Can I agjust the locaion of these files?

  • Application Folder Lag

    Hello, I've wondered this from the day I got my Macbook...why does the applications folder lag? I don't have this problem with any other folder on my computer, and it's reasonably high spec, so I don't expect it. More an annoyance than a problem, and

  • Freeze Problem Macbook Pro 13"

    hey guys...i have a huge problem with my macbook pro 13"! i updated it to 8GB RAM. But even if i did this, my mac often freezes and stands still. No matter if i use just Safari or my Pro DJ Software, it makes huge problems...PLEASE HELP ME

  • Sound randomly switches from headphones to speakers

    Hi, I have a rather strange problem. This morning I turned on my Macbook, and the sound was doing something weird. It keeps switching between headphones and speakers, as if I'm plugging and unplugging them. Of course I have nothing plugged in, so the