Sign in to follow this  
Followers 0
iladis

Problem with "+" and "!" characters

6 posts in this topic

I cant send a "+" or "!" character in my string.

Ex : if i try to send my variable password="!st.+9pI`VR@2", AutoIt send this "t.pI`VR@2" without "+" and "!" and "s" in this case.

Any solution for this problem ?

Share this post


Link to post
Share on other sites



Hi iladis,

if you have a look at the "Send()" function in the help file, you'll see that you need to send the "!" key like this: "{!}". (The same is true for e.g. +#^{})

:)


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

Yes, set the flag in the send command to send the data "raw":

Send("!st.+9pI`VR@2", 1)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Yes, set the flag in the send command to send the data "raw":

Send("!st.+9pI`VR@2", 1)

Well, that's the other (easier) possibility.

:)


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

Yes, set the flag in the send command to send the data "raw":

Send("!st.+9pI`VR@2", 1)

Send ("OK, thank you for answers.:) ").

Thank you again.

Share this post


Link to post
Share on other sites

I cant send a "+" or "!" character in my string.

Ex : if i try to send my variable password="!st.+9pI`VR@2", AutoIt send this "t.pI`VR@2" without "+" and "!" and "s" in this case.

Any solution for this problem ?

HotKeySet("{F1}", "_SendText")
HotKeySet("{F2}", "_SendKey")
HotKeySet("{ESC}", "Terminate")

While 1
Sleep(150)
WEnd

Func _SendText()
Run("notepad")
WinWait("[CLASS:Notepad]")
Send("!st.+9pI`VR@2",1)
EndFunc

Func _SendKey()
Run("notepad")
WinWait("[CLASS:Notepad]")
Send("{ALTDOWN}",0)
Send("f",1)
Send("{ALTUP}",0)
EndFunc

Func Terminate()
    Exit 0
EndFunc

صرح السماء كان هنا

 

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