-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Sachs
I have a few questions:
BACKGROUND
I am using Oracle Application Testing Suite's OpenScript 13 (Eclipse IDE), Oracle Java 6, and AutoIt.
My goal is to access a given Internet Explorer browser window (`$ieTitle`), send the keystroke of "shift-control-s" for "Save As" functionality to be invoked, so that I can download a (PDF) file to a given location ($fileName).
The code within the script `DownloadPdfFile.au3` is
$ieTitle = $CmdLine[1] $ieControl = "AVL_AVView31" $fileName = $CmdLine[2] ControlFocus($ieTitle, "", $ieControl) ControlSend($ieTitle, "", $ieControl, "+^s") ; Save as dialog $winTitle = "Save As" ; wait for Save As window WinWait($winTitle) ; activate Save As window If Not WinActive($winTitle) Then WinActivate($winTitle) ControlFocus($winTitle,"","Edit1") ControlSetText($winTitle,"","Edit1",$fileName) Sleep(2000) ControlClick($winTitle,"","Button3") Exit 0 So I compiled it with SciTE-Lite (32-bit Version 4.4.6 , creating `DownloadPdfFile.exe`, and so within my Java code, I have
String command = autoItExePath + " " + scriptPath + " \"" + winTitle + "\" " + directoryPath.toFile().toString() + "\\Form9Report" + sdf_ddmmmyyyy.format(new Date()) + ".pdf"; try { Process process = Runtime.getRuntime().exec(command); process.waitFor(); } catch (Exception e) { logger.error("Exception " + e.getMessage(), e); } The output would be like `C:\Program Files (x86)\AutoIt3\AutoIt3.exe C:\...\AutoItScripts\DownloadPdfFile.au3 "https://****.com/****.exe?temp_id=**** - Internet Explorer" C:\...\Report05Apr2022.pdf"` which does run without the $cmdLine successfully.
When executed by Java, I see in the taskbar an icon, which I right-click has "[Check] Script Paused" and "Exit".
Questions:
(1) How do I unpause the script?
(2) How do I avoid having the script paused?
Any help is appreciated.
-
By Steviep
Hi all,
I've been using the following code for many years for the sole purpose of tracking my app usage via Google Analytics:
;GOOGLE ANALYTICS $AppStatsName = @ScriptName $GA = _IECreate("https://mywebserver/apps/stats/" & $AppStatsName & ".html", 0, 0, 0, 0) The app simply calls a blank .html page on my webserver which only contains the GA tracking code.
The $iVisible parameter is set to "0" in my case, which means the IE browser is invisible to the user.
I noticed in Windows 11, the URL is called in the Edge browser and is not invisible.
So, I wonder if anyone out there has any suggestions on calling a URL invisibly on any operating system?
Thanks!
-
By walec
Hello
How can I export a sheet to pdf using the OOoCalc.au3 UDF?
Thank you for any hints or possibly other solutions / functions.
-
By mLipok
; #INDEX# =======================================================================================================================
; Title .........: UDF for "Debenu Quick PDF Library"
; AutoIt Version : 3.3.10.2++
; Language ......: English
; Description ...: A collection of functions for Debenu Quick PDF Library
; Author(s) .....: mLipok
; Modified ......:
; ===============================================================================================================================
Release note:
Erratum v0.7:
Forum link:
-
By mLipok
I would like to present, the UDF for Debenu Quick PDF Library
Getting Started:
http://www.debenu.com/products/development/debenu-pdf-library/getting-started/getting-started-activex-edition/
Function Reference:
http://www.debenu.com/docs/pdf_library_reference/FunctionGroups.php
Useful information:
http://www.quickpdf.org/forum/quickpdf-the-first-steps_topic1242.html
http://www.quickpdflibrary.com/blog/2011/02/the-basics-getting-familiar-with-quick-pdf-library/
First time installing Debenu Quick PDF Library:
You can download demo here:
http://www.quickpdflibrary.com/downloads/quick_pdf_library_demo.exe
Requirements:
file "DebenuPDFLibraryLite1012.dll" or "DebenuPDFLibraryAX1014.dll" must be in @ScriptDir
if you want to try you must download it from here:
http://www.debenu.com/products/development/debenu-pdf-library/trial/
or
http://www.debenu.com/products/development/debenu-pdf-library-lite/free/
after install you can find this dll in:
"c:\Program Files (x86)\DebenuPDF Library\ActiveX\DebenuPDFLibraryAX1014.dll"
or
"c:\Program Files (x86)\DebenuPDF Library\Lite\DebenuPDFLibraryLite1012.dll"
!!! you can change DLL to newer version using _QPDF_NewLibraryPath_Commercial()
EDIT: actualy (19-06-2015) there is DebenuPDFLibraryAX1115.dll and DebenuPDFLibraryLite1115.dll
to use the commercial version you need to use the _QPdf_SetLicenseKey() AutoIt 3.3.10.2++ For UDF and examples download, and the current version information please go to download section:
The following information are outdated
-
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