Jump to content

Auto Call after an email arrived - (Moved)


Recommended Posts

Hello my new friends,

i've discovered AUTOIT last month and i really enjoy it,

my company need a script for start a call in automatically when an email arrived   

SOFTWARE USED :

  1. OUTLOOK 2016 32bit
  2. Skype for Business

Okay, i created a script with AutoIT that makes a call to a specific number, 

after i've attached this script into the rules of Outlook, everything seems to work ...

the customer told me that the script is to slow when it start to run,

i've already added to my script these strings :

#AutoIt3Wrapper_run_obfuscator=y
#Obfuscator_parameters=/striponly

but seems not to be very usefull,

some advices how can i improve the speed? 

(i've think about to leave the script running into a "empty" PC)

Thanks in advance

 

 

 

 

Link to comment
Share on other sites

  • Moderators

Moved to the appropriate forum.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

We need to see your script to help you make it faster :) 

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

#AutoIt3Wrapper_run_obfuscator=y
#Obfuscator_parameters=/striponly
#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>

; #INDEX# =======================================================================================================================
; Title .........: Auto Call Skype from an email
; AutoIt Version : 1
; Description ...: Automate a call from Skype for Business when an email arrived on Outlook
; Author(s) .....: Max Ferrari
; ===============================================================================================================================
Calling()


Sleep (100)
Send("{TAB}")
Sleep (100)
Send("{TAB}")
Sleep (100)
Send("{TAB}")


Sleep (100)
Send("{ENTER}")

Func Calling()

RunWait(@ComSpec & ' /c ' & '"C:\Program Files (x86)\Microsoft Office\root\Office16\lync.exe" callto:tel:001111111111')


WinSetOnTop("[CLASS:LyncConversationWindowClass]", "", 1)
WinActivate ("[CLASS:LyncConversationWindowClass]")


EndFunc

 

Link to comment
Share on other sites

Not sure what you mean by "to slow", but what I would first do is hide your cmd window because it annoys me when left open and correct your command allowing this /callto: after your .exe:

RunWait(@ComSpec & ' /c ' & '"C:\Program Files (x86)\Microsoft Office\root\Office16\lync.exe /callto:001111111111"',"C:\Program Files (x86)\Microsoft Office\root\Office16\",@SW_HIDE)

Next, allow Skype to be automatically logged in and stay logged in. My guess is this is on a server with a common account.

Nothing more I can add to this though... unless we know what "slow" really means... 

 

Kind Regards
Skeletor

"Coffee: my defense against going postal."

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI

Link to comment
Share on other sites

  • Developers
27 minutes ago, uzzy33 said:

#AutoIt3Wrapper_run_obfuscator=y
#Obfuscator_parameters=/striponly

No sure where you found these lines, but Obfuscator is not part of the Full SciTE4AutoIt3 version since 4/5/2014 and replaced by au3stripper.

16 hours ago, uzzy33 said:

but seems not to be very usefull,

some advices how can i improve the speed? 

Not sure where you got the impression this would make your script faster?
It only will be smaller but that is about it...  and you do need to install the separate installer for it to work and the Directives need to be fixed to au3stripper.

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.
  :)

Link to comment
Share on other sites

#AutoIt3Wrapper_run_obfuscator=y
#Obfuscator_parameters=/striponly
#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
Local $timer = TimerInit()

RunWait(@ComSpec & ' /c ' & '"C:\Program Files (x86)\Microsoft Office\root\Office16\lync.exe" callto:tel:00111111111112')

WinSetOnTop("[CLASS:LyncConversationWindowClass]", "", 1)
WinActivate ("[CLASS:LyncConversationWindowClass]")

MsgBox(4096, "Fine Function",  TimerDiff($timer))

Local $time = TimerInit()

Sleep (100)
Send("{TAB}")
Sleep (100)
Send("{TAB}")
Sleep (100)
Send("{TAB}")

Sleep (100)
Send("{TAB}")
Sleep (100)
Send("{TAB}")
Sleep (100)
Send("{TAB}")
Sleep (100)
Send("{TAB}")

Sleep (100)
Send("{ENTER}")
MsgBox(4096, "Partenza Chiamata",  TimerDiff($time))


Func Calling()

I've done some tests using the function TimerDiff ,

 

Thanks @Skeletor and  @Jos

I notice that if Skype is already opened on top the script take an half of time to runs

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...