View Full Version : key press help
bobbie
01-12-2007, 08:45 PM
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.
if e_Key == 13 then
get = Input.GetText("Input1");
result = File.Run(get, "", "", SW_SHOWNORMAL, false);
end
RizlaUK
01-12-2007, 09:25 PM
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 ;)
bobbie
01-12-2007, 09:31 PM
Well testing with notepad and that always runs. lol
But the code works with the button I have next to the editbox.
RizlaUK
01-12-2007, 09:56 PM
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
bobbie
01-12-2007, 10:25 PM
sorry it don't work on my computer. the button works but hitting enter does nothing.
RizlaUK
01-12-2007, 10:49 PM
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
Your example works on my computer as well RizlaUK and tested it a few times now and had no problems at all.
Jonas DK
04-07-2007, 06:12 PM
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
RizlaUK I did try that too, but NOT working for me
Dermot
02-20-2008, 05:48 PM
Works fine for me.
holtgrewe
02-20-2008, 06:31 PM
Worked fine here.
RizlaUK
02-20-2008, 07:38 PM
http://img301.imageshack.us/my.php?image=200802210133em9.swf
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.