Hypnotix Posted December 30, 2010 Share Posted December 30, 2010 What I am aiming to do with my new project is to be able to press a key while the script is running and it will output it into a notepad type file with the key converted into an autoit format. As in if the script is running and I press tab. itll put Send("{TAB}") to the file. I basically wanna be able to make a list. Can anybody guide me to the best way of achieving this? Thanks in advance! Link to comment Share on other sites More sharing options...
jeromeLam Posted December 30, 2010 Share Posted December 30, 2010 You can begin to see this function: HotKeySet ( "key" [, "function"] ) The function for each "Key" must be something like: $file = FileOpen($filename) FileWriteLine($file,"Send (\"{" & $key & "}\")") I hope it will help you. Kind regards, Jérôme Link to comment Share on other sites More sharing options...
shanet Posted December 30, 2010 Share Posted December 30, 2010 What I am aiming to do with my new project is to be able to press a key while the script is running and it will output it into a notepad type file with the key converted into an autoit format.As in if the script is running and I press tab. itll put Send("{TAB}") to the file. I basically wanna be able to make a list.Can anybody guide me to the best way of achieving this?Thanks in advance!So you want to make a script that will record keystrokes and then will write it in a format that could be used to create a macro? This is dangerous water so tread carefully.This is in effect a keylogger, and here at the forums we do not tolerate that sort of idiocracy.shanet [font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS: %programfiles%/AutoIt3/autoit3.chm 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