Sanchopanza888

How to write or type @ or at with send()

7 posts in this topic

#1 ·  Posted

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(@)
 

Share this post


Link to post
Share on other sites



#3 ·  Posted

thanks you Jos i downloded the  SciTEConfig_Source.zip  file. How should I write the command to work?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Send("@", 1)

Why did you download the SciTEConfig_Source.zip?  Or have I missed something?

Edited by Subz

Share this post


Link to post
Share on other sites

#5 ·  Posted (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)

 

result.jpg

Edited by Sanchopanza888

Share this post


Link to post
Share on other sites

#6 ·  Posted

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)

 

Share this post


Link to post
Share on other sites

#7 ·  Posted

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

 

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