Jump to content
Sign in to follow this  

Replacing keys for a Cryptochat program

Recommended Posts

Hello, everyone. I am trying to create a "Cryptochat" program, if you will, but I really dont know where to begin. I am new to AutoIt and programming, and I've only made spambots and such by using Send and a couple of vars that used InputBoxes. You could safely say my skills are limited :graduated:.

Anyway, my idea is this:

I want a script that is silently running in the background until I press F12. I want it to be a "toggle" button (I have no idea how to make one), that when pressed, changes some of the keyboard buttons to something else so you can type stuff that looks like random letters but really isn't. The thing is, I dont want the script to turn off after you've pressed it, I want it to "hibernate" all the time until I turn it off manually so I can just use F12 to chat crypted and F12 to chat normally.

I hope you get the idea. To make it more clear to you, I've made a small chart (this is just the start)

A - T
B - S
C - R
D - Z
E - U
F - Q

When I press A on my keyboard, a T is Sent. B on keyboard and S is sent, etc etc. So if I want to write the text "ABC" to my friend, I would actually send the letters "TSR" to him, but I will have pressed "ABC" on my keyboard. The only way I know with my limited skillset to make this is by using HotKeySet commands all over, and I suppose that is the easiest way.

Now, at the other end, of course, I'll need a Decrypter, but that is probably easy to make once I know how to make the one that swaps all the letters first. If you have time, please point me some tips there too. I want the decrypter to be nothing more complicated than an Inputbox where you paste whatever's been written and the decrypted text comes up in a MsgBox.

Help is greatly appreciated. I want to chat with specific people in public chatrooms without anyone noticing :(.

Edited by Fluffet

Share this post

Link to post
Share on other sites

Here is a little example of how you might use hotkeys to do it, just using the "a" key

$On = False
HotKeySet("a", "a")

While 1

Func toggle()
    $On = Not $On

Func a()
    If $On Then
    HotKeySet("a") ; you need to disable the hotkey to avoid an infinate loop
    HotKeySet("a", "a")
EndFunc   ;==>a

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post

Link to post
Share on other sites


You face a dilemma here. What you want to do is perfectly feasible, but telling you how to do it would break the forum rules as it would effctively be a keylogger which is one of the few no-nos around here. :(

So what I suggest is that you do is use the same idea you had for a decrypter:

- Press a HotKey to bring up a small GUI with an edit control and a button.

- Type what you want to send into the edit.

- On a press of the button, the text is encrypted in some manner and then sent to the app, while the GUI disappears until next time.

If you choose a suitable encryption algorithm, you can use the same one for both encryption and decryption. :D

But as WikiLeaks has shown today, do not expect anything you say to remain secret for ever! :D

Give it ago and see how you get on - you know w here we are if you run into problems. :graduated:


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...