Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12

Thread: key press help

  1. #1
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770

    key press help

    Tyring to make a little run box but I can't seem to get the enter key to work.
    Could you look at this and tell me what I might have wrong.
    Code:
    if e_Key == 13 then
    get = Input.GetText("Input1");
    result = File.Run(get, "", "", SW_SHOWNORMAL, false);
    end

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    sometimes when im useing the File.Run function and i dont set a working folder the app or file wont run, like i say it only happens sometimes and only with certan files

    it maybe that, it might not
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    Well testing with notepad and that always runs. lol
    But the code works with the button I have next to the editbox.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    mmm, strange, i just made a test app with your code and it works for me, are you putting the code in the page onkey event

    well, i'll attach it anyway, it might help

    click the button or press enter and it will work
    Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    sorry it don't work on my computer. the button works but hitting enter does nothing.

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    well that is strange, iv just tested and retested and reretested it and it it works fine, with installed programes, installers, my ams apps,

    mmmm, this is very strange, try worm's keystroke.dll, you might have more luck with that


    could someone else try my example, its no good to me if it only works on my system
    Open your eyes to Narcissism, Don't let her destroy your life!!

  7. #7
    Join Date
    Jan 2007
    Posts
    57
    Your example works on my computer as well RizlaUK and tested it a few times now and had no problems at all.

  8. #8
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336
    Tested your exampel Rizla and it dosent work for me either.
    the if e_Key is never executed.

    Might be that the enterkey can have another number. depending on language or type set. dont know... but will look into it.

    cheers,
    Jonas

  9. #9
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    RizlaUK I did try that too, but NOT working for me

  10. #10
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Works fine for me.
    Dermot

    I am so out of here

  11. #11
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Worked fine here.

  12. #12
    Join Date
    May 2006
    Posts
    5,380
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Function: Filter Key Press for On Key Event
    By Worm in forum AutoPlay Media Studio 7.5 Examples
    Replies: 17
    Last Post: 01-25-2008, 04:54 AM
  2. Unable to find software?
    By NigelLacey in forum Visual Patch 2.0
    Replies: 4
    Last Post: 10-11-2005, 10:35 AM
  3. Help on separate key presses for game
    By sue in forum AutoPlay Media Studio 5.0
    Replies: 16
    Last Post: 07-30-2005, 04:51 PM
  4. Responding to Key Presses
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 09:49 AM

Posting Permissions

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