iladis Posted March 28, 2011 Posted March 28, 2011 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 ?
hannes08 Posted March 28, 2011 Posted March 28, 2011 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]
water Posted March 28, 2011 Posted March 28, 2011 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 2024-07-28 - Version 1.6.3.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 (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
hannes08 Posted March 28, 2011 Posted March 28, 2011 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]
iladis Posted March 28, 2011 Author Posted March 28, 2011 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.
wolf9228 Posted March 28, 2011 Posted March 28, 2011 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 صرح السماء كان هنا
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