Scripts / GetInKey() not woorking

Author
Message
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Nov 2016 08:15
hi everyone

i do not know if it is just with my scripts or , maybe there is a problem with my global.lua or with the GetInKey() function

i cant get the GetInKey() function to work, i even used smallg's password script, and also then the GetInKey() do not work in the script. would be nice if someone can just test the GetInKey() and let me know if it is working.
there was only once when i tested it that it responded, but then it only showed the same key every time, does not matter witch key is been pressed on the keyboard.

Thanks for any help.
Windows 7 Professional 64-bit
Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (4 CPUs), ~2.7GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
gd
8
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 10th Nov 2016 10:29
Hi PCSKILLER, it is working fine. It maybe your code that is causing this issue. When I tested your bank.lua code there are issues with the narrow angle to your entity that will trigger the GetInKey() command. You just need to re-check your code or use someone code that is untouched as a base.

It could be your keyboard and the ten cans of Red Bull spilt over it when you did your last 12 hours session of UT99 online lol
I so love this game... Facing worlds!
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3
PM
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Nov 2016 15:53
haha, yes i also love gg.

but stil cant get GetInKey() to work. will keep on trying.
Windows 7 Professional 64-bit
Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (4 CPUs), ~2.7GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Nov 2016 16:52
how are you using it?
what do you get if you use
Prompt(g_InKey)
and then type in game?
g_InKey is case specific so make sure you are checking for "f" and "F" so that caps lock will still register (personally i would just use g_Scancode.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Nov 2016 16:57
hI gd , somehow i got the GetInKey() to work, so now im happy.
I wilL also have a look at the narrow angle in my bank script.

Thanks for all the help
Windows 7 Professional 64-bit
Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (4 CPUs), ~2.7GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Nov 2016 17:01
HI Smallg, man i do not know what i have done wrong, but all seems to be working correctly now with GetInKey().
i guess it is because im still learning , hehe. i will get there some day. just dont know when.

haha . stil love this game guru.
Windows 7 Professional 64-bit
Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (4 CPUs), ~2.7GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Nov 2016 17:04
only thing i must work out is how to use the backspace if i have input some text with GetInKey() and i want to remove some letters.
Windows 7 Professional 64-bit
Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (4 CPUs), ~2.7GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Nov 2016 18:55
if you are using a counter to point to the current letter for input then you would reduce the counter (and reset the letter to blank) if the backspace is pressed.

i.e.
input_example.lua
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Nov 2016 20:51
Thank you Smallg. i wil look at it tomorrow , and change my script according to yours.
you are truly a kind and free giving heart person.

Thanks Pcs.killer
Windows 7 Professional 64-bit
Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (4 CPUs), ~2.7GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Login to post a reply

Server time is: 2024-12-22 23:52:02
Your offset time is: 2024-12-22 23:52:02