uzzy33 Posted June 20, 2018 Posted June 20, 2018 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 : OUTLOOK 2016 32bit 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
Moderators Melba23 Posted June 20, 2018 Moderators Posted June 20, 2018 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
water Posted June 20, 2018 Posted June 20, 2018 We need to see your script to help you make it faster 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
uzzy33 Posted June 21, 2018 Author Posted June 21, 2018 #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
Skeletor Posted June 21, 2018 Posted June 21, 2018 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 RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI
Developers Jos Posted June 21, 2018 Developers Posted June 21, 2018 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.
uzzy33 Posted June 21, 2018 Author Posted June 21, 2018 expandcollapse popup#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
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