AutoHero331 Posted May 17, 2016 Share Posted May 17, 2016 I am currently working on a auto typer for a small project im working on and its printing our letter fine but when it comes to printing out special characters like !@/: its not working, it doesnt type any of the characters at all #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.2 Author: User Script Function: Auto Type #ce ---------------------------------------------------------------------------- HotKeySet("{ESC}","Quit") $msg = InputBox("Please Enter The Message", "Please enter the message that you want the auto typer to type.","","",300,150) MsgBox(0,"The Bot Has Started!", "The bot has started. Press [ESC] to stop it!") $x = WinActivate("text - Notepad") WinMove("text - Notepad", "", 0, 0) Sleep(2000) While(1) Send($msg) Sleep(2000) Send("{ENTER}") Func Quit() MsgBox(0, "Notification", "Bot has quit") Exit EndFunc Link to comment Share on other sites More sharing options...
Reizvoller Posted May 17, 2016 Share Posted May 17, 2016 Heya! I believe if you confine the ! within { } so that it's {!} , it should work! https://www.autoitscript.com/autoit3/docs/functions/Send.htm I am basing my answer off of that. Hope this helps! -Reiz AutoHero331 1 Link to comment Share on other sites More sharing options...
jaeger52 Posted May 17, 2016 Share Posted May 17, 2016 Reizvoller's solution should work. Unless special characters are isolated or confined as demonstrated in Reiz's post, they often have a secondary function that the script does not know how to interpret. That usually results in a crash or a hang. AutoHero331 1 Link to comment Share on other sites More sharing options...
AutoHero331 Posted May 17, 2016 Author Share Posted May 17, 2016 It worked! Thank you guys you are awesome! <3 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