Jump to content

Problem with "+" and "!" characters


Recommended Posts

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 ?

Link to comment
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]
Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...