autoit

Not able to pass # in my password using autoIT

时间秒杀一切 提交于 2019-12-14 03:27:40
问题 I am using Autoit for authentication window in chrome using selenium. My Password Contains special character, but # is not getting entered in my Password. My password is " D#e$r@2016" Could anyone please help. 回答1: The following code may helps, # has special meaning in auto IT. so it should be escaped using braces. Method 1: send(" D{#}e$r@2016") If you send all characters as raw then set the flag value to 1. By default, the flag is 0. Method 2: send(" D#e$r@2016",1) 来源: https://stackoverflow

Compare two arrays of .ini file entries

£可爱£侵袭症+ 提交于 2019-12-13 22:50:52
问题 I have one .ini file as below: [Step] A=DONE B=DONE C=DONE D=DONE I need to get the [Step] section and put it in an array . Below is what I do: $iniSection_Step = "Step" $PrevStep = "" Local $Prev = IniReadSection($iniPath_LogFile, $iniSection_Step) For $i = 1 To $Prev[0][0] $PrevStep = $PrevStep &"|"& $Prev[$i][0] Next Global $PrevArray = StringSplit($PrevStep,"|",1) The _ArrayDisplay() result: Row|Col 0 [0]|5 [1]| [2]|A [3]|B [4]|C [5]|D Now I need to compare the array with another and if

Autoit 3 Generic Keypress

我与影子孤独终老i 提交于 2019-12-13 15:50:57
问题 It seems like there should be a generic keypress listener, something like this: hotkeysset("listener") func listener(key) msgbox(0, "Key", "You pressed " & key) endfunc while true sleep(100) wend But short of writing a script that generates the appropriate hotkeyset calls for each key on my keyboard, I can't figure out how to do that. Any thoughts? 回答1: Check out this UDF (User-Defined Function), IsPressed_UDF. 来源: https://stackoverflow.com/questions/5642324/autoit-3-generic-keypress

Autoit script on specific actual time

↘锁芯ラ 提交于 2019-12-13 11:15:29
问题 How to run a script on specific actual time's in Autoit? for example I start Autoit script at any time and it wait until my defined time (e.g. 01:00:00 & 02:00:00 & ...) reach's and then script resume and do any thing i want. sorry for my poor language. 回答1: Say you want your script to beep at 22:31:15 then: While 1 Sleep(250) If @HOUR == 22 And @MIN == 31 And @SEC == 15 Then Beep(500,500) EndIf WEnd 回答2: Following code sets different times (multiple hours, multiple minutes and multiple

Return control to Selenium after executing an AutoIt script

随声附和 提交于 2019-12-13 09:12:30
问题 I am writing Selenium scripts to test my webpage. To simulate testing, a desktop application resets the date in the DB (as the actual process is run after the date changes). Now I am able to call my application and click the button through Selenium by Runtime.getRuntime().exec("E:\\AutoIT\\DBReset.exe"); , but I am unable to return the control to Selenium after the reset is done. 回答1: When you perform the operation by AutoIt using: Runtime.getRuntime().exec("E:\AutoIT\DBReset.exe"); Selenium

Run when USB is mounted [duplicate]

人盡茶涼 提交于 2019-12-13 08:55:38
问题 This question already has an answer here : Autorun removable drive (1 answer) Closed 3 years ago . Microsoft disabled autorun. However to run a scan and backup files (defined in file.cmd ), I found this AutoIt script: $DBT_DEVICEARRIVAL = "0x00008000" $WM_DEVICECHANGE = 0x0219 GUICreate("") GUIRegisterMsg($WM_DEVICECHANGE , "MyFunc") Func MyFunc($hWndGUI, $MsgID, $WParam, $LParam) If $WParam == $DBT_DEVICEARRIVAL Then MsgBox(4096, "Info", "My Drive has been Inserted, Backup My Files!") EndIf

How to send to username and password to webpage when it is not as form?

和自甴很熟 提交于 2019-12-13 08:09:42
问题 I am trying to send username and password to web application from autoit script. $oIE.document.getElementsByName($formUID).Item(0).value = $Name $oIE.document.getElementById($formPID).value = $pwd These functions above are working in Windows 7 but not working in Windows 8 and IE 10. Can any one help me? It's very important. 回答1: If those fields have ID or NAME you should use Local $oUsername = _IEGetObjById($oIE, "Username") ; _IEGetObjById or _IEGetObjByName $oUsername.value = "myusername"

How do I add resources to my AutoIt Exe?

江枫思渺然 提交于 2019-12-13 07:47:50
问题 I want to include a few txt files to my AutoIT application. #AutoIt3Wrapper_Res_Field=#AutoIt3Wrapper_icon|C:\Scripts\AutoIt\HelpDeskIT\images\helpdesk_icon.ico #AutoIt3Wrapper_Res_File_Add=C:\Scripts\AutoIt\HelpDeskIT\Instructions.txt #AutoIt3Wrapper_Res_File_Add=C:\Scripts\AutoIt\HelpDeskIT\reportaproblem.txt but it's not being added to my exe file. (when I launch the app it can't find the files) 回答1: From the SciTE4AutoIt3 help (under Extra Utilities --> AutoIt3Wrapper)... Adding a file:

Launching or running ica file with autoit script

瘦欲@ 提交于 2019-12-13 07:13:55
问题 I am trying to run a .ica file that I exported from XenApp from an autoit script, I used the run command and it did nothing. Any alternatives will be appreciated. Due to the sensitive nature of the .ica file i am unable to post the contents, but here is what i have so far for the autoit script. Global $username = "" Global $password = "" Global $userinput Global $passwordinput $userinput = InputBox("HUB ID","Please Enter your HUB ID") $passwordinput = InputBox("Password","Please Enter Your

Error getting the required output in SendKeys using arrays..

試著忘記壹切 提交于 2019-12-13 07:03:50
问题 I am new to VBScript and AutoIt. I have been trying to make changes to a VBScript (text file) using an AutoIt script by taking input from the user in form of comma-seperated commands and then writing it to a .vbs file. I tried to do this by storing the strings in array and then writing it using a While loop. Example: For an input of: ALPHA,BETA,GAMMA I am expecting an output as follows starting from line "140" in the text file WshShell.appactivate "telnet 10.250.124.85" WScript.Sleep 1999