Jump to content
uzzy33

Auto Call after an email arrived - (Moved)

Recommended Posts

uzzy33

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

 

 

 

 

Share this post


Link to post
Share on other sites
Melba23

Moved to the appropriate forum.

Moderation Team


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
water

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
uzzy33
#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

 

Share this post


Link to post
Share on other sites
Skeletor

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

"I need coffee to turn me back to a human"

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Wondering who uses AutoIt and what it can be used for ?

 

Share this post


Link to post
Share on other sites
Jos
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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
uzzy33
#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

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

×