Sign in to follow this  
Followers 0
AutoHero331

Not sending special characters like "!" why?

4 posts in this topic

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

 

Share this post


Link to post
Share on other sites



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.

1 person likes this

Share this post


Link to post
Share on other sites

It worked! Thank you guys you are awesome! <3

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  
Followers 0