Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    Key navagation -- help

    I am trying to create some key navagation in an app that I am working with and I want to be able to click a back button when a person presses [BACKSPACE] or [ALT]+[<]. The backspace works no problem. But the Alt + left arrow is not working. Here is the code.

    Code:
    if (e_Key == 8) or ((e_Key == 37) and (e_Modifiers.alt == true)) then
    	if Button.IsVisible("B-Back") then
    		Page.ClickObject("B-Back")
    	end
    end

    Not working and I am confused. I have had the modifiers work in the past but it is not working now so I figure it is me

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    I have never been able to get the 'ALT' modifier to work. I am still not sure why my keyboard that I use to code on does not recognize such.

    Possible 'feature' of the AMS software?
    Intrigued

  3. #3
    SUF6NEWBIE Guest
    wild guess only,,could it have anything to do with
    the initial attributes of the button ie. is.enabled

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Me either... haven't had any luck with the ALT key modifier.

    Quote Originally Posted by Intrigued
    I have never been able to get the 'ALT' modifier to work. I am still not sure why my keyboard that I use to code on does not recognize such.

    Possible 'feature' of the AMS software?

  5. #5
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Guys,
    In the help file, under virtual keycode, the code for Alt is missing. This says something. I guess it is a "well known " problem
    Yossi

  6. #6
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    e_Modifiers.ctrl works when used in conjunction with another key but the alt does not. I will post in the suggestion/report section.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  7. #7
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    this does work.
    Code:
    if ((e_Key == 8) or ((e_Key == 37) and (e_Modifiers.alt == true) and (e_Modifiers.ctrl == true))) then
    	if Button.IsVisible("B-Back") then
    		Page.ClickObject("B-Back")
    	end
    end
    It appears that the alt key does not work without some other modifier as well.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  8. #8
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    TJ... I noticed before that if you use not between the e_Key and modifiers along with or, you then can make sure a user does not use say cntrl-left arror and alt-left arrow to do the same function.
    Intrigued

Similar Threads

  1. Enter key = mouse click?
    By Silver Zero in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 02-16-2004, 09:47 PM
  2. On Key
    By rhosk in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 11-18-2003, 10:07 AM
  3. Responding to Key Presses
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 09:49 AM
  4. Key files and optional install files
    By RonC in forum Visual Patch 1.0
    Replies: 5
    Last Post: 08-19-2003, 06:28 AM
  5. Replies: 1
    Last Post: 01-26-2001, 01:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts