autoit

How to use AutoItX in .NET (C#) without registering

主宰稳场 提交于 2019-11-28 04:23:58
How do I use AutoitX ( OCX / ActiveX library) in a .NET C# application without registering it? I would like to create an application with it without need to use administrator rights for installation. I found some pages on MSDN like, Registration-Free Activation of COM Components: A Walkthrough about creating manifest files for DLL files. I tried it and did not succeed. So maybe it is possible and I created it wrongly. Unfortunately I lost the XML files so I can't post it here. I also tried setting isolated and enable interop types in reference properties without success. Is it possible to get

How to press “Ctrl+Shift+Q” in AutoIt

帅比萌擦擦* 提交于 2019-11-27 16:27:58
I have an application which has a shortcut key Ctrl + Shift + Q to quit it. I want to press Ctrl + Shift + Q via AutoIt to exit my application. I tried it as below: Send("{LCTRL} {LSHIFT} Q") and ControlSend("{LCTRL} {LSHIFT} Q") But none of them did work. Please guide me to do it the right way. Abi You want something like: Send("{CTRLDOWN}{SHIFTDOWN}q{CTRLUP}{SHIFTUP}") What you are sending presses the keys individually in sequence, rather than chaining them together. Hope that helps! Source: www.autoitscript.com Please use the below option Send("^+{F}") The keylists are available in the

Difference between Run() and ShellExecute()

半城伤御伤魂 提交于 2019-11-27 16:14:42
I want to execute something in a shell/terminal on Windows via AutoIt. And I know that there are two ways of doing it. For example: Run(@ComSpec & " /c " & $myCommand, "", @SW_HIDE) ;and ShellExecute($myCommand) I don't understand the difference; both functions will do what I want, but what's behind them? Which pros and cons do they have? Bookeater Run() is used to fire off executable files only. It requires the full path of the program. ShellExecute() also accepts content files like .txt, .htm and .docx and will start the executable associated with it. The verb option can be used to control

Handle windows authentication pop up on Chrome

时光怂恿深爱的人放手 提交于 2019-11-27 09:18:33
I am trying to handle the basic authentication pop up for my Selenium webdriver scripts using AutoIt. I wrote a script for Firefox and Internet Explorer but it doesn't work for Chrome. When I tried identifying the authentication pop up on Chrome using AutoIt Window Information Tool it came up empty. I am using following AutoIt script: WinWaitActive("Authentication Required","","120") If WinExists("Authentication Required") Then Send("username{TAB}") Send("password{Enter}") EndIf Any pointers to get this to work would be helpful. I am not using username@password:google.com because some

Incremental variable definition

a 夏天 提交于 2019-11-27 08:32:18
问题 I want to automatically define incrementing variable names. So instead of this: $Var1 = 'This is variable one :P' $Var2 = 'This is variable two :P' I'd like this (pseudo code): For $i = 1 to UBound($People)-1 **$var[$i]** = GUICtrlCreateCheckbox($var[$i], 24, $y, 200, 17) $y = $y + 25 Next Does anyone know how? The code should make as many checkboxes as defined in an array and every checkbox should have its own variable. 回答1: You're looking for the Assign function! Check out this example: For

Hexadecimal to decimal

我的梦境 提交于 2019-11-27 08:25:34
问题 I have to convert a hexadecimal number to decimal, but don't know how. In the AutoIt documentation (pictured below) some constants (being assigned hexadecimal values) are defined: 0x00200000 hexadecimal (underlined in image) equals 8192 decimal (this is the true conversion). But convertors return 2097152 . I have to convert another hex value ( 0x00000200 ), but convertors get it wrong. How to correctly convert it? When I use the definition $WS_EX_CLIENTEDGE (or a hexadecimal value), it doesn

Calling AutoIt Functions in Python [closed]

∥☆過路亽.° 提交于 2019-11-27 06:50:34
I have seen this post mentioned there is an AutoIt3 COM version, and with it I can call AutoIt functions in Python. I couldn't find the COM version at the AutoIt website. Is it hidden somewhere? How can I get it? How to use AutoItX COM/DLL in python There are two methods for using AutoIt in Python: pyautoit module python for windows extentions (pywin32) The pyautoit module will make use of the DLL while with pywin32 we can use the COM. As far as I know, there is no functional difference between the two. Prerequisites An installation of python . An installation of AutoIt . An installation of

How to use AutoItX in .NET (C#) without registering

↘锁芯ラ 提交于 2019-11-27 05:19:48
问题 How do I use AutoitX (OCX/ActiveX library) in a .NET C# application without registering it? I would like to create an application with it without need to use administrator rights for installation. I found some pages on MSDN like, Registration-Free Activation of COM Components: A Walkthrough about creating manifest files for DLL files. I tried it and did not succeed. So maybe it is possible and I created it wrongly. Unfortunately I lost the XML files so I can't post it here. I also tried

Capture and display STDOUT at the same time

▼魔方 西西 提交于 2019-11-27 03:37:38
问题 I have the following code to capture and process the Run command output. How do I modify it such that the Run command window displays output and at the same time the output gets logged? Replacing @SW_HIDE with @SW_SHOW (or the equivalent) just shows a blank command window. Something similar to the linux tee command which logs to file while it prints STDOUT. $CurrentPID = Run(@ComSpec & ' /c ' & $CurrentLogCmd, "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) If Not ProcessWaitClose($CurrentPID,60

How to press “Ctrl+Shift+Q” in AutoIt

笑着哭i 提交于 2019-11-26 18:42:07
问题 I have an application which has a shortcut key Ctrl + Shift + Q to quit it. I want to press Ctrl + Shift + Q via AutoIt to exit my application. I tried it as below: Send("{LCTRL} {LSHIFT} Q") and ControlSend("{LCTRL} {LSHIFT} Q") But none of them did work. Please guide me to do it the right way. 回答1: You want something like: Send("{CTRLDOWN}{SHIFTDOWN}q{CTRLUP}{SHIFTUP}") What you are sending presses the keys individually in sequence, rather than chaining them together. Hope that helps!