Sanchopanza888 Posted May 23, 2017 Posted May 23, 2017 Hi folks, could you help me with a simple question, i would appreciated it a lot. How can i write the symbol @ or at in a text. i tried with send("@") n send("{@}") and nothing. thanks you in avanced for your help #include <Constants.au3> #include <AutoItConstants.au3> Send(@)
Developers Jos Posted May 23, 2017 Developers Posted May 23, 2017 (edited) Try to add the Send Raw parameter to the Send() command. Jos Edited May 23, 2017 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Sanchopanza888 Posted May 23, 2017 Author Posted May 23, 2017 thanks you Jos i downloded the SciTEConfig_Source.zip file. How should I write the command to work?
Subz Posted May 23, 2017 Posted May 23, 2017 (edited) Send("@", 1) Why did you download the SciTEConfig_Source.zip? Or have I missed something? Edited May 23, 2017 by Subz
Sanchopanza888 Posted May 23, 2017 Author Posted May 23, 2017 (edited) thanks for your time Subz i've tried with Send("@", 1) but it still does not work. i attached a photo with the result, maybe it's for another reason. this is my script; #include <Constants.au3> #include <AutoItConstants.au3> Global $sAnswer = InputBox("Samuel Por favor", "¿Cual es tu turno?", "09:00 a 19:00", "", _ - 1, -1, Default, Default) Inicio() func Inicio() If WinExists("Bandeja de entrada") Then WinActivate("Bandeja de entrada") Send ("{CTRLDOWN}{u}{CTRLUP}") sleep (1000) Send("rodrigo gallardo") Send(" {TAB}") Send("monitoreotieft ") Send("{TAB}") Send("Inicio de Turno Monitoreo ") Send(@MDAY) Send("-") Send(@MON) Send("-") Send(@YEAR) send(" ") Send( $sAnswer) Send("{TAB}") Send("Rodrigo: {ENTER}{ENTER}") sleep (200) Send("Este es el estado de los portales al Inicio de turno") Send("{ENTER}{ENTER}") Send("PEC Presto") Send("{ENTER}{ENTER}{ENTER}") Send("PEC Banco Santander") Send("@", 1) Edited May 23, 2017 by Sanchopanza888
Subz Posted May 23, 2017 Posted May 23, 2017 Have you actually tried the Outlook UDF? Or even INetMail internal functions? However regarding the issue above this could be due to sending data to quickly without sleep in between personally I don't like the Send function, it's extremely easy to break, i.e. if user clicks on another window etc.. However if you want to use it you could try: Local $sBody = "" $sBody &= "Este es el estado de los portales al Inicio de turno" & @CRLF & @CRLF $sBody &= "PEC Presto" & @CRLF & @CRLF & @CRLF $sBody &= "PEC Banco Santander@domain.com" Sleep(3000) Send($sBody)
Sanchopanza888 Posted May 25, 2017 Author Posted May 25, 2017 Subz thanks you my friend, i took your recomendation n used "OutlookEX.au3", whoa... it works perfect . It is my scrit; #include <OutlookEX.au3> #include <OutlookExConstants.au3> #include <Constants.au3> Global $text1 = "Inicio de Turno Monitoreo" Global $space = " " Global $g = "-" Global $dia = @MDAY Global $mes = @MON Global $year = @YEAR Global $sAnswer = InputBox(" Por favor", "¿Cual es tu turno?", "09:00 a 19:00", "", _ - 1, -1, Default, Default) Global $fecha = $text1 & $space & $dia & $g & $mes & $g & $year & $space & $sAnswer Global $parag = "Parrafo.html" Global $HTMLsource = FileRead(@ScriptDir & '\' & $parag) $objOutlook = ObjCreate("Outlook.Application") $OutlookMailItem = $objOutlook.CreateItem($olMailItem) ; $OutlookMailItem.To = "" $OutlookMailItem.To = "h@t" $OutlookMailItem.CC = "nm@m.net" $OutlookMailItem.Subject = $fecha $OutlookMailItem.HTMLBody = $HTMLsource ;$OutlookMailItem.Attachments.Add(whateverfile here) $OutlookMailItem.Display
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