sirius123 Posted May 18, 2023 Posted May 18, 2023 Hello there, I am looking for a product like the Key Croc, my use case will be to have a portable text expander, where when type certain snippets like "hello" it will print out a predefined sentence. Are there any other products that use the MATCH command? And also, it has to be able to store alot of payloads, like all the way from 50-200 payloads, where each payload corresponds to one snippet or match command. And lastly another question, can the output of the MATCH command be a really really long text? For example an entire paper worth of text? Like, could the Rubber Ducky do this aswell? Or is the MATCH command only exclusive to the Key Croc? Thanks in advance!
DramaKing Posted May 18, 2023 Posted May 18, 2023 24 minutes ago, sirius123 said: Hello there, I am looking for a product like the Key Croc, my use case will be to have a portable text expander, where when type certain snippets like "hello" it will print out a predefined sentence. Are there any other products that use the MATCH command? And also, it has to be able to store alot of payloads, like all the way from 50-200 payloads, where each payload corresponds to one snippet or match command. And lastly another question, can the output of the MATCH command be a really really long text? For example an entire paper worth of text? Like, could the Rubber Ducky do this aswell? Or is the MATCH command only exclusive to the Key Croc? Thanks in advance! Microsoft Office will do this. Don't try doing it with a keylogger.
0phoi5 Posted May 19, 2023 Posted May 19, 2023 I would use Python for this, something like; import threading import time import win32gui import win32api import win32con # Define the text inputs and their corresponding completions input_mappings = { "hello": " world", "goodbye": " cruel world", "foo": " bar" } # Function to send key strokes def send_keystrokes(text): for char in text: win32api.SendMessage(win32con.HWND_CURRENT, win32con.WM_CHAR, ord(char), 0) time.sleep(0.05) # Thread function to monitor user input def monitor_input(): while True: window_title = win32gui.GetWindowText(win32gui.GetForegroundWindow()) if window_title != "Python": # Listen for specific text inputs if window_title.lower() == "hello": send_keystrokes(input_mappings["hello"]) elif window_title.lower() == "goodbye": send_keystrokes(input_mappings["goodbye"]) elif window_title.lower() == "foo": send_keystrokes(input_mappings["foo"]) elif window_title.lower() == "closeapplication": break time.sleep(0.1) # Create and start the thread to monitor user input input_thread = threading.Thread(target=monitor_input) input_thread.start() # Keep the script running until the input thread is finished input_thread.join() I used ChatGPT to assist in writing this. Add as many input_mappings as you like. It will run in the background. Typing 'closeapplication' will make it shut down. You'll need to install pywin32 using pip install pywin32
NoExecute Posted May 19, 2023 Posted May 19, 2023 Lean to be clear in what you want, what you ask doesnt make much sense. Wtf is a "portable text expander" ? And why keycrock..read the manual 😉
Recommended Posts
Archived
This topic is now archived and is closed to further replies.