mustilem23 Posted Wednesday at 11:29 AM Posted Wednesday at 11:29 AM Helo I am trying to create a scenario to press the export repot button of the ERP program running over the internet and save it as a pdf. Can you support me with the scenario codes? The button I want to press and the save as field .
Nine Posted Wednesday at 12:26 PM Posted Wednesday at 12:26 PM What have you tried so far ? Have you run au3info.exe tool over the button ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
mustilem23 Posted Wednesday at 01:05 PM Author Posted Wednesday at 01:05 PM I checked the help files but I wasn't very successful, I think this area is not a button or when I hover over something I don't know, it becomes an export report. I am very new to these types of scenarios, but when I show a target with a mouse click, sometimes there is a deviation, my aim is to save the pdf to a specific folder by clicking the export report button when the window opens and saying save as, can you help me? Please. My starting codes for the scenario. #include <AutoItConstants.au3> Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) Local $olMailItem = 0 EndFunc _WinWaitActivate("015 - SSH Teklif -","") MouseClick($MOUSE_CLICK_LEFT,1130 , 241, 1) I guess it can't see it as a button in au3 info. Here is the screenshot when I hover over it.
Nine Posted Wednesday at 01:13 PM Posted Wednesday at 01:13 PM (edited) Try a ControlClick on the control. (show full summary of au3info) Edited Wednesday at 01:14 PM by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
mustilem23 Posted Wednesday at 01:40 PM Author Posted Wednesday at 01:40 PM I saw it in a help scenario and added it but it gave an error. Would this complete image be enough? #include <AutoItConstants.au3> Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) Local $olMailItem = 0 EndFunc _WinWaitActivate("015 - SSH Teklif -","") Sleep(2000) ControlClick( "", "Export Report") MouseClick($MOUSE_CLICK_LEFT,1130 , 241, 1)
Nine Posted Wednesday at 01:48 PM Posted Wednesday at 01:48 PM Your ControlClick is totally wrong. First param is the title of the window, second is empty, third is the ClassnameNN. Also I don't understand your MouseClick as it seems to be way off your target button. When I say full summary, I want to see all tabs (in your case I want to see the toolbar tab). “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
mustilem23 Posted Wednesday at 02:26 PM Author Posted Wednesday at 02:26 PM I added time and mouse click, it is not important for testing, we can delete it. expandcollapse popup>>>> Window <<<< Title: 015 - SSH Teklif - MUSTAFA DOGRU @ PRODN1 DURMAZLAR SP1 - IFS Applications Class: WindowsForms10.Window.8.app.0.19bcb90_r12_ad1 Position: -7, -7 Size: 1295, 695 Style: 0x17CF0000 ExStyle: 0x00050100 Handle: 0x003914F8 >>>> Control <<<< Class: WindowsForms10.Window.8.app.0.19bcb90_r12_ad1 Instance: 58 ClassnameNN: WindowsForms10.Window.8.app.0.19bcb90_r12_ad158 Name: Advanced (Class): [CLASS:WindowsForms10.Window.8.app.0.19bcb90_r12_ad1; INSTANCE:58] ID: 151192 Text: Position: 56, 69 Size: 1213, 21 ControlClick Coords: 11, 14 Style: 0x56010000 ExStyle: 0x00010000 Handle: 0x00024E98 >>>> Mouse <<<< Position: 67, 106 Cursor ID: 0 Color: 0x8E4A94 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< tsContainer fndBreadCrumb1 toolStrip1 Main Report 1 Current Page No.: 1 toolStrip1 >>>> Hidden Text <<<< navigatorBox1 (...) elementHost1 Please wait while the document is processing. fndExplorerMainMenu1 I did not get any results this way either. #include <AutoItConstants.au3> Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) Local $olMailItem = 0 EndFunc _WinWaitActivate("015 - SSH Teklif -","") ControlClick(015 - SSH Teklif - MUSTAFA DOGRU @ PRODN1 DURMAZLAR SP1 - IFS Applications, "WindowsForms10.Window.8.app.0.19bcb90_r12_ad1", "Export Report")
Nine Posted Wednesday at 02:41 PM Posted Wednesday at 02:41 PM (edited) Ok you do not have a standard toolbar accessible. Your ControlClick is still wrong. Please open help file and read carefully what it says. I already told you that second param is empty and the third is ClassnameNN. I didn't say that for nothing. It should be : ControlClick("015 - SSH Teklif", "", "WindowsForms10.Window.8.app.0.19bcb90_r12_ad158") Run your code from Scite. It would have told you that your ControlClick was wrong. At least make an effort to write a runable script... Edited Wednesday at 02:45 PM by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
mustilem23 Posted 14 hours ago Author Posted 14 hours ago Tekrar merhabalar, birden fazla kez denediğim için en son oluşan hatayı paylaşmak istedim. Şu anda çalışıyor ama yine de istediğim yere tıklayamıyorum. Pencere bilgisinde böyle bir şey fark ettim. Fareyi o alana getirdiğimde ekteki resimdeki siyah dikdörtgen alan çıkıyor. Burası tam olarak düğmelerin olduğu alandır. Acaba bu yüzden mi Raporu dışa aktar düğmesine basamıyorum. Sınıf alanını ileri geri hareket ettiriyorum herhangi bir değişiklik yok, isim kontrol tıklama koordinatı değişiyor sadece benim butonum 11 10 sanırım hata burada. Ancak normal kullandığımda, fare üzerine getirildiğinde Raporu Dışa Aktar olarak görünüyor. Lütfen, ben acemiyim, bana yardım edebilir misiniz?
Developers Jos Posted 14 hours ago Developers Posted 14 hours ago Something went wrong in translation! please use English. 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.
mLipok Posted 13 hours ago Posted 13 hours ago You should use UIA Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24
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