#šŸ”’ Hello, I need help

100 messages Ā· Page 1 of 1 (latest)

short ibex
#

I have been doing a keyloger (for personal use) and I do not understand why it does not capture all the keys I press, taking into account that there are keys that are kept pressed for several seconds in a row, I would like to see where I am going wrong. Thank you in advance.
PS: I think I can't upload the file where the code is. (I'm new to programming)

upbeat trenchBOT
#

@short ibex

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

summer trout
#

for future helpers I would not help with this.
the "for personal use" part gives away the fact that it' gonna be used maliciously imo

gritty canopy
#

That’s nice

ashen niche
#

there are very few practical uses for making a "personal key-logger" so i agree with user here, but these are just speculations, OP can further argue if it really is for personal use

gritty canopy
gritty canopy
covert niche
#

Considering that OP is new to programming, then clearly the level of code in that screenshot is AI generated. I will not be fixing whatever AI coded garbage. Learn programming first and then come back with a more sensible beginner project to work on

#

!resources has great beginner level materials

upbeat trenchBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

ashen niche
#

not to mention it looks like there are thousands of lines, which is pretty uncommon when you're new to programming

gritty canopy
#

I could easily help you fix this. With just 2 or 3 lines.

ashen niche
#

i would advise against it

gritty canopy
#

He screenshots the first part because he knows that’s where the problem is.

short ibex
ashen niche
gritty canopy
#

Because how else could we know the problem when there isn’t much to work with.

ashen niche
#

how would you screenshot 1000+ lines..?

summer trout
ashen niche
#

"PS: I think I can't upload the file where the code is. (I'm new to programming)"

gritty canopy
alpine hinge
#

If you guys are unsure, dm @alpine osprey to ask the moderators without pinging them about whether or not this question is deemed appropriate or not.

covert niche
#

!rule 5

alpine hinge
#

Instead of polluting this chat and arguing.

upbeat trenchBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

gritty canopy
#

Why don’t they just give me the code I can help.

alpine hinge
covert niche
# upbeat trench

ā˜ļø

Dang it. @gritty canopy

(Sorry @serene jolt for the wrong ping 😦 )

summer trout
#

if you wanna help them, help them, but i'm not

gritty canopy
#

@short ibex do you know what the problem could potentially be.

#

Also what keys aren’t getting logged.

short ibex
# gritty canopy What keys is it not capturing.

It doesn't capture multiple keys, for example I press the D-keys and then let's say I press any other key (let's say the A key and then the C key while still pressing the D-key) almost all of that event is not captured.

gritty canopy
#

You’re using the keyboard model. You would need to add new code for multiple keys to be registered at the same time. If you haven’t already done that?

short ibex
summer trout
summer trout
#

bc those have microusb ports

gritty canopy
#

Mmh.

alpine hinge
upbeat trenchBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

ashen niche
#

whether its fine or not i dont think is up to you

short ibex
alpine hinge
#

sure, but that's not really your choice to make, dm @alpine osprey if you're unsure

gritty canopy
short ibex
gritty canopy
#

@short ibex so if I’m holding d and pressing c it should do d and c but instead it dose d and ignore c

#

@short ibex you would need to implement a while loop. I think I’m not sure because I can’t see your code.

#

In theory you need to check the key states not just the single key event.

short ibex
gritty canopy
short ibex
#

Can I send you private?

gritty canopy
alpine hinge
# gritty canopy Sure

fyi that's also considered suspicious as this server has a sorta strict-ish policy on no-dms

ashen niche
short ibex
#

The correct thing should be that the two keys are used simultaneously, but I don't understand why it happens that it doesn't, that it only registers the last key.

alpine hinge
#

!paste Bt-dubs, you can paste code with the link below

upbeat trenchBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

gritty canopy
#

So if I press d and then let go of the d key and then I press c what does happen? Does it work as intended. Let’s just get this part dealt with first @short ibex

short ibex
#

If the keys are used one by one it works almost normally, but if you use two or more keys it gets confused. and it doesn't record what it should record

gritty canopy
#

Yea that’s likely because they are indeed being checked simultaneously.

short ibex
gritty canopy
short ibex
gritty canopy
#

You need to continually check the key states.

alpine hinge
#

That code does seem very AI.

clever grove
#

this really sounds suspicious, putting a keylogger on a esp32...
so that it can be connected between a computer and a keyboard and log all the key strokes?

alpine hinge
#

And that too.

short ibex
#

That should be the whole code, but I still don't understand why I get that error, or is it because I do it for an SP32, I have no idea what happens, I'm still new to this 😦

gritty canopy
gritty canopy
gritty canopy
#

Can we go private.

ashen niche
ashen niche
gritty canopy
ashen niche
#

okay great? dont see any reason to go into dms

gritty canopy
#

@short ibex do you know anything about serial1 in your code?

alpine hinge
#

fyi no 2, it's harder to moderate something if you're in dms, so please try your best to stay in here.

short ibex
#

I think I should leave the subject as a finish, since many people think that this cannot be used by oneself or for oneself, thank you all for responding so soon. thanks a lot

gritty canopy
alpine hinge
gritty canopy
alpine hinge
#

The same program in the hands of different people can have drastically different outcomes. So if you do end up helping someone with malicious intent finish up their malicious code, then nobody will be able to stop you if you're in a dm.

ashen niche
#

whats so difficult with following rules? and if I remember correctly, werent you banned from this server for a week like over a month ago?

gritty canopy
#

I don’t remember you to be honest.

alpine hinge
#

We're not trying to ruin your privacy. If you want to have a casual convo with them in a DM, that's ok. But when it comes to helping someone with their code, it's best to keep it here.

gritty canopy
#

Any way this is actually a very fun problem. I’ll be working on it my self and don’t worry I won’t be using it for any malicious purposes.

clever grove
gritty canopy
upbeat trenchBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.