#How do I interact with the code off terminal?

1 messages · Page 1 of 1 (latest)

jaunty granite
#

I am trying to make a few thingamajigs that type for me, and I do not know the tools required. I would need a few things. A way to click the mouse, a way to type a string and a character, and a way to detect a key press while I am not on the terminal (for a failsafe.) If anyone knows how to do any of these, feel free to help.

fiery furnaceBOT
#

<@&987246399047479336> please have a look, thanks.

fiery furnaceBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

jaunty granite
#

input string
click on game
press button
it types in game chat

it stops
it doesnt stop and i press a button to kill it

mint oar
#

i dont quite follow the whole scenario

#

could u eleborate or maybe show a screenshot or sth

jaunty granite
#

yeah i dont know how to explain it

mint oar
#

and what is a thingamajigs

jaunty granite
#

so i want it to type for me, which i figured it out

mint oar
#

what do u mean. type where and in what

jaunty granite
#

but i can only make it type in the IDE because if i click off it i cant start the code

#

so i need to find a way to detect input while i am on the game

#

so then it can type

mint oar
#

sorry but ur way too vague

#

im missing the entire context

jaunty granite
#

ok so

#

i need it to type in a game right

#

in game chat

#

automatically

mint oar
#

sth like minecraft?

jaunty granite
#

yeah you could say

mint oar
#

a fullscreen game

jaunty granite
#

yes

mint oar
#

so u want to write a bot?

jaunty granite
#

but i cant turn the code on to type without turning the game off

mint oar
#

yes bc u can only send into an application that u own and has focus

#

not easily elsewhere

jaunty granite
#

damn

#

i wanted it to be kind of like autoclicker

mint oar
#

u need to send global os key events to send elsewhere

jaunty granite
#

but for text

mint oar
#

with JNativehook

#

but note that what ur attempting is considered cheating and will in most games result in a ban

#

and it's easy for them to detect

jaunty granite
#

its a silly thing for a game

mint oar
#

im just saying. most games autodetect and autoban u when doing these things

#

no matter what ur intention is

#

but as said. get JNativehook and it works

jaunty granite
#

its a gmod server and they want to physical training (IN GAME?) who do mess up. kind of like army stuff but not actually army. they want you to crouch (CTRL) and type like "One." I thought it would be quite fun to make something to automate that task. I already made the part of it that does One Two Three (etc)

#

alright ill use jnative hook

#

thank you for your help

mint oar
#

u gotta check though. valve runs cheat detection in most of their games

jaunty granite
#

its a roleplay server so

mint oar
#

would be a pitty if u end up getting banned from valve servers just bc of that

jaunty granite
#

nah they dont run valve ac

mint oar
#

🤷‍♂️ u do whatever u want. but i warned u 👍

jaunty granite
#

either way, wont even use it, just a way for me to excersize that stuff

#

ight