Projectwide Key Definitions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • pauldoty
    Indigo Rose Customer
    • Apr 2003
    • 13

    Projectwide Key Definitions

    Can anybody tell me how to create key closure settings that will work on all pages in a project or where in the help file to find the info?

    I want to use the spacebar like in Powerpoint to advance to the next page.


    Thanks,

    Paul


  • kpsmith
    Forum Member
    • Jul 2000
    • 332

    #2
    Re: Projectwide Key Definitions

    Setup a Parent page for your project and create a hotspot on the page. Set an action for that object for onclick to jump to the next page.

    Now the tricky part... You can set shortcut keys on the Attributes page but SPACE is not an option. To do this you will have to edit the XML for the project in WordPad or something.

    Set a name for the object that you can find easily and save and close you project.

    Now open the .AM4 file in word pad and search for the name you gave to the hotspot object. Now below that you should see a line that says:

    <VirtualKey>32</VirtualKey>
    <Modifiers>0</Modifiers>

    Make sure the VirtualKey says "32" as this represents the space bar. Have a Modifier of "0"

    Save the .am4 project and reopen it in AMS. Now if you look at the shortcut for the hotpsot it should say SPACE.

    The last thing you might want to do is move the hotspot outside the boundaries of your project so that it isn't clickable. This will give an error when you buidl but the keystroke will still work.

    Here's some code you could copy and paste into your AMS project instead of going through all that...

    <IR_CB_OBJECTS>
    <SourcePageName>Parent Page</SourcePageName>
    <Object>
    <Type>2</Type>
    <Name>Space Bar HotSpot</Name>
    <VisibleAtDesignTime>1</VisibleAtDesignTime>
    <VisibleAtRunTime>1</VisibleAtRunTime>
    <Locked>0</Locked>
    <LockSize>0</LockSize>
    <ToolTip/>
    <Cursor>0</Cursor>
    <Coordinates>
    <Top>229</Top>
    <Bottom>279</Bottom>
    <Left>353</Left>
    <Right>453</Right>
    </Coordinates>
    <Hotkey>
    <VirtualKey>32</VirtualKey>
    <Modifiers>0</Modifiers>
    </Hotkey>
    <Event>
    <Name>On Mouse Over</Name>
    </Event>
    <Event>
    <Name>On Mouse Leave</Name>
    </Event>
    <Event>
    <Name>On Mouse Click</Name>
    <Action name="Jump">
    <Type>1</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <PageName>%PageNext%</PageName>
    </Action>
    </Event>
    <ShowMouseOverPane>1</ShowMouseOverPane>
    <ShowMouseDownPane>1</ShowMouseDownPane>
    <MouseOverSound/>
    <MouseOverIsExternal>0</MouseOverIsExternal>
    <MouseClickSound/>
    <MouseClickIsExternal>0</MouseClickIsExternal>
    </Object>
    </IR_CB_OBJECTS>

    Comment

    • pauldoty
      Indigo Rose Customer
      • Apr 2003
      • 13

      #3
      Re: Projectwide Key Definitions

      Thank you for explaining it to me.


      Paul

      Comment

      Working...
      X