autoit

VBScript Autoit programming file upload

好久不见. 提交于 2020-01-17 08:18:47
问题 Hi guys, our company's website has this file upload button for uploading multiple images. How can I create a script that automatically selects the images then uploads them? I already know the path of each images on the client's PC. I just don't want to script a click on the file upload button since I get a headache trying to make that work. My current goal is to script it in Autoit with something like: $files1 = "C:\TeamBuilding\Team Games.jpg" $files2 = "C:\TeamBuilding\Team Prayer.jpg" $oIE

VBScript Autoit programming file upload

戏子无情 提交于 2020-01-17 08:17:08
问题 Hi guys, our company's website has this file upload button for uploading multiple images. How can I create a script that automatically selects the images then uploads them? I already know the path of each images on the client's PC. I just don't want to script a click on the file upload button since I get a headache trying to make that work. My current goal is to script it in Autoit with something like: $files1 = "C:\TeamBuilding\Team Games.jpg" $files2 = "C:\TeamBuilding\Team Prayer.jpg" $oIE

Why does my script fail to create zip files?

旧时模样 提交于 2020-01-16 16:34:50
问题 #include <File.au3> #include <Zip.au3> #include <Array.au3> ; bad file extensions Local $extData = "ade|adp|app|asa|ashx|asp|bas|bat|cdx|cer|chm|class|cmd|com|cpl|crt|csh|der|exe|fxp|gadget|hlp|hta|htr|htw|ida|idc|idq|ins|isp|its|jse|ksh|lnk|mad|maf|mag|mam|maq|mar|mas|mat|mau|mav|maw|mda|mdb|mde|mdt|mdw|mdz|msc|msh|msh1|msh1xml|msh2|msh2xml|mshxml|msi|msp|mst|ops|pcd|pif|prf|prg|printer|pst|reg|rem|scf|scr|sct|shb|shs|shtm|shtml|soap|stm|url|vb|vbe|vbs|ws|wsc|wsf|wsh" Local $extensions =

Why does my script fail to create zip files?

落花浮王杯 提交于 2020-01-16 16:33:40
问题 #include <File.au3> #include <Zip.au3> #include <Array.au3> ; bad file extensions Local $extData = "ade|adp|app|asa|ashx|asp|bas|bat|cdx|cer|chm|class|cmd|com|cpl|crt|csh|der|exe|fxp|gadget|hlp|hta|htr|htw|ida|idc|idq|ins|isp|its|jse|ksh|lnk|mad|maf|mag|mam|maq|mar|mas|mat|mau|mav|maw|mda|mdb|mde|mdt|mdw|mdz|msc|msh|msh1|msh1xml|msh2|msh2xml|mshxml|msi|msp|mst|ops|pcd|pif|prf|prg|printer|pst|reg|rem|scf|scr|sct|shb|shs|shtm|shtml|soap|stm|url|vb|vbe|vbs|ws|wsc|wsf|wsh" Local $extensions =

Why does my script fail to create zip files?

杀马特。学长 韩版系。学妹 提交于 2020-01-16 16:33:30
问题 #include <File.au3> #include <Zip.au3> #include <Array.au3> ; bad file extensions Local $extData = "ade|adp|app|asa|ashx|asp|bas|bat|cdx|cer|chm|class|cmd|com|cpl|crt|csh|der|exe|fxp|gadget|hlp|hta|htr|htw|ida|idc|idq|ins|isp|its|jse|ksh|lnk|mad|maf|mag|mam|maq|mar|mas|mat|mau|mav|maw|mda|mdb|mde|mdt|mdw|mdz|msc|msh|msh1|msh1xml|msh2|msh2xml|mshxml|msi|msp|mst|ops|pcd|pif|prf|prg|printer|pst|reg|rem|scf|scr|sct|shb|shs|shtm|shtml|soap|stm|url|vb|vbe|vbs|ws|wsc|wsf|wsh" Local $extensions =

Get AutoIt reference working in C#

旧巷老猫 提交于 2020-01-13 05:40:49
问题 I'm pulling my hair out on this one... I have a legacy application I built a few years ago that uses AutoItX - all working fine. The time has come to try and update the app, so I've upgraded it to VS2012/.NET4 and I simply cannot get a reference to the AutoItX library to work. I have installed the application, have registered the dll with regsvr32, tried every combination of property settings on the reference itself (Embed Interop Types / Isolated), but no joy. The error I keep getting

Choose title- and file name at runtime

£可爱£侵袭症+ 提交于 2020-01-06 15:07:02
问题 I am trying to automate file upload in two browsers but the window name is "File Upload" in Firefox and "Open" in Chrome. I don't want to write two different scripts. How to choose title- and file name at runtime to achieve cross browser compatibility? I use Selenium and testNG, AutoIt only for file upload. 回答1: Set a variable based off the web browser being used, then use that variable. The code below should get you on the right track. $FirefoxUpload = "File upload" $ChromeUpload = "Open" if

Can't figure out how to declare a string array on multiple lines

两盒软妹~` 提交于 2020-01-05 07:49:53
问题 This code was causing errors at runtime but would compile. Local $acceptable[] = ["Chrome",_ "Firefox",_ "IE"] It works if I move it all on one line. However, I want to declare many elements. How do I correctly declare it over multiple lines? 回答1: As per Language Reference - Comments (emphasis added): Although only one statement per line is allowed, a long statement can span multiple lines if an underscore " _ " preceded by a blank is placed at the end of a "broken" line. String definition

Can't figure out how to declare a string array on multiple lines

孤人 提交于 2020-01-05 07:49:07
问题 This code was causing errors at runtime but would compile. Local $acceptable[] = ["Chrome",_ "Firefox",_ "IE"] It works if I move it all on one line. However, I want to declare many elements. How do I correctly declare it over multiple lines? 回答1: As per Language Reference - Comments (emphasis added): Although only one statement per line is allowed, a long statement can span multiple lines if an underscore " _ " preceded by a blank is placed at the end of a "broken" line. String definition

How to click buttons in an application using AutoIt or Windows UI Automation

半腔热情 提交于 2019-12-31 10:41:28
问题 Setup Environment: I'm using vb.net to develop a Windows Form Application with .NET Framework 4. My goal: Open calculator.exe using Process.Start Using all vb.net code, be able to click 5 + 5 = I do not want to use SendKeys as a method. After researching, this link provided a good start: This tutorial (written in C#) is very similar to what I'm trying to do by using vb.net: How to click a button in another application Could somebody provide a pointer on how to go about approaching this? I'd