I'm new and don't know why the script isn't working.

Ask gaming related questions
CrownsInArt
Posts: 3
Joined: 23 Jan 2021, 15:52

I'm new and don't know why the script isn't working.

Post by CrownsInArt » 23 Jan 2021, 16:17

So I don't really know why this isn't working but ima tell you what the script is supposed to be. It is a keybind to quickly say things in games and the problem is that it won't run the script. Here's the script:

Code: Select all

KeyIsDown := GetKeyState(0 , T)
Send {NumpadDiv down}
Send {NumpadDiv up}
Send {E down}
Send {E up}
Send {Z down}
Send {Z up}
[Mod edit: [code][/code] tags added.]

Again I am new and maybe broke the script.
User avatar
mikeyww
Posts: 5109
Joined: 09 Sep 2014, 18:38

Re: I'm new and don't know why the script isn't working.

Post by mikeyww » 23 Jan 2021, 16:20

Output from my run:

/EZ

Questions for you (please answer all):

Is that the entire script? What happens when you run the script? What would you like to accomplish with GetKeyState? Is KeyIsDown used at any point in the script? Is there a hotkey to trigger the script?
CrownsInArt
Posts: 3
Joined: 23 Jan 2021, 15:52

Re: I'm new and don't know why the script isn't working.

Post by CrownsInArt » 23 Jan 2021, 20:11

i really don't know i just found some code and mashed to together because in my head I thought it would work and I'm new so this is my first piece of code and yes I know I should of done research but I just wanted to skip ahead and just put out some really bad code .
User avatar
mikeyww
Posts: 5109
Joined: 09 Sep 2014, 18:38

Re: I'm new and don't know why the script isn't working.

Post by mikeyww » 23 Jan 2021, 20:17

OK. If you have not yet decided what you want the script to do, helping will be difficult. Feel free to post a description when ready.
CrownsInArt
Posts: 3
Joined: 23 Jan 2021, 15:52

Re: I'm new and don't know why the script isn't working.

Post by CrownsInArt » 23 Jan 2021, 20:23

Never mind I found the fix to the problem and now it fully works.
Post Reply

Return to “Gaming”