autoit

Autoit and notepad

≯℡__Kan透↙ 提交于 2019-12-25 04:26:10
问题 I have an application, wherein I get a "Save As" dialog-box. At times, if a file exists with the same name, then another dialog box comes in, with the same name "Save As". The following is the code, which I wrote but it doesn't work as expected. Global $sTitle = "Save As" WinWait($sTitle) WinWaitActive($sTitle) ControlClick($sTitle, "Save", "[CLASS:Button; TEXT:&Save; INSTANCE:2]") ControlSetText($sTitle, "", "CLASS:Button; INSTANCE:2]", $file_name) SendKeepActive($sTitle) Send("{ENTER}")

how to raise a marker limit in Google Maps?

↘锁芯ラ 提交于 2019-12-25 01:09:47
问题 I've been searching about this for few days, but I think I only understand less than a half. I'm creating a AutoIT application using Google Maps API V3 and free API key. When I add 1500 markers within 30 mins with 500~600ms delay each marker, my map won't be displayed anymore. It is just blank. I can't see the error message, but I think it's "OVER QUERY LIMIT" . Usually it will become normal after few hours or on the next day. The map is normal if I run it from another site (different IP

How to fill web forms automatically in AutoIt script using Firefox instead of IE?

≡放荡痞女 提交于 2019-12-24 12:37:16
问题 I’ve been away from Autoit for a while and I’m looking to rewrite my scripts to use Firefox instead of IE. I would appreciate someone pointing me to some example scripts which, for example, show how to open Firefox to a predetermined website and submit a username and password. Thanks! I have tried this code $off=Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe " & $url, "", @SW_MAXIMIZE) _FFLoadWait($off) ;_FFConnect() while(_FFLinkClick ("Continue to this website (not recommended).",

How to right click on a file present in a directory using AutoIT?

∥☆過路亽.° 提交于 2019-12-24 12:35:35
问题 I am trying to simulate the functionality of automating right click of a mouse on a specific file or a folder in windows explorer and this is the code snippet I have written to simulate that : #include<GUIListView.au3> Local $filepath = "C:\Windows\addins" Local $iPid = Run("explorer.exe /n,/e,/select," & $filepath) ProcessWait($iPid) Sleep(1000) Local $hList = ControlGetHandle("[CLASS:CabinetWClass]", "", "[CLASS:SysListView32; INSTANCE:1]") Local $aClient = WinGetPos($hList) Local $aPos =

What's the difference between SciTE4AutoIt3's Build and Compile options?

北城余情 提交于 2019-12-24 10:38:15
问题 In SciTE4AutoIt3's Tools menu I can choose Build or Compile . What's the difference? They both create an .exe file. 回答1: A build is series of steps which usually include: Compilation Updating of Version information Inclusion of resources and manifest information. For AutoIt, using the SciTE editor, Compile and Build are almost the same. The only difference is that Compile presents you with a GUI where you can alter compile settings, such as which packages to include. Build will just run

What's the difference between SciTE4AutoIt3's Build and Compile options?

跟風遠走 提交于 2019-12-24 10:36:05
问题 In SciTE4AutoIt3's Tools menu I can choose Build or Compile . What's the difference? They both create an .exe file. 回答1: A build is series of steps which usually include: Compilation Updating of Version information Inclusion of resources and manifest information. For AutoIt, using the SciTE editor, Compile and Build are almost the same. The only difference is that Compile presents you with a GUI where you can alter compile settings, such as which packages to include. Build will just run

Function executing twice in AutoIt

不想你离开。 提交于 2019-12-24 06:47:09
问题 I'm developing an autoit function which is required to read from a .txt file, split the string that has been read from the .txt file, run through the array holding the string that has just been split and pass these on to function send() as an argument to be sent to the currently open window. The name of my function is function keysend() so essentially: Function keysend recieves a char value i.e. $ch. Function keysend() opens a file with contains a string of words with comma used as delimeters

DPI aware screen capture

时光怂恿深爱的人放手 提交于 2019-12-24 05:54:13
问题 I used AutoIt's _ScreenCapture_Capture() before without any trouble. But on Windows 10 with a 4k resolution screen I'm using DPI scaling at 200%. _ScreenCapture_capture() now gets something 2x zoomed in and half the location I asked for. For instance : _ScreenCapture_Capture("c:\a.bmp", 100, 100, 200, 200) ; Path, X1, Y1, X2, Y2 Does not return a 100x100 pixel square of the screen (at 100,100 to 200,200 ). It returns a 100x100 pixel square (at 50,50 to 100,100 ) instead. I did find a solution

Unexpected behavior from _StringExplode()

久未见 提交于 2019-12-23 20:16:59
问题 I have a string: string1 string2 - string3 string4 . I need it split in two at the - (note the space on either side of the "-"). I have the following code which isn't working as expected: #include <MsgBoxConstants.au3> #include <String.au3> Local $test = _StringExplode("string1 string2 - string3 string4", " - ") MsgBox($MB_SYSTEMMODAL, "Title", $test[1]) The output is string2 . I expected it to be string3 string4 . Must be a small oversight but I'm having trouble finding it. 回答1: … explain

Detect a taskbar icon flashing

ぐ巨炮叔叔 提交于 2019-12-22 17:55:57
问题 I want to make a script that detects when taskbar icon flashes, and activates a program. I would like to use AutoIt or the Windows API. How to detect when a program's taskbar icon starts flashing? 回答1: To answer your question directly, there is no easy (documented and reliable) way to detect the flashing of the window . It occurs as a result of FlashWindow/FlashWindowEx. A very intrusive and heavy-handed option is to perform global hooking of both APIs. You could do this by injecting a DLL to