Fluffet Posted November 29, 2010 Share Posted November 29, 2010 (edited) 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 . 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 November 29, 2010 by Fluffet Link to comment Share on other sites More sharing options...
JohnOne Posted November 29, 2010 Share Posted November 29, 2010 Here is a little example of how you might use hotkeys to do it, just using the "a" key $On = False HotKeySet("{PAUSE}","toggle") HotKeySet("a", "a") While 1 Sleep(10) WEnd Func toggle() $On = Not $On EndFunc Func a() If $On Then Send("t") Return EndIf HotKeySet("a") ; you need to disable the hotkey to avoid an infinate loop Send("a") HotKeySet("a", "a") EndFunc ;==>a AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 29, 2010 Moderators Share Posted November 29, 2010 Fluffet,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. But as WikiLeaks has shown today, do not expect anything you say to remain secret for ever! Give it ago and see how you get on - you know w here we are if you run into problems. M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now