I am having some difficulty in achieving a very simple task here. I have gone through the forums and tried some examples and UDFs but I can't seem to work it out. I would really appreciate if someone could help me out.
Currently, I am logging the required feedback from the script into a log file in a simple way ... get the info in the var >> write it in the file
But now I am in need to perform some analysis and need some of the values to go into an MSSQL table in the attached format
Also, I need to be able to use Integrated Security" or "Trusted_Connection set as true or use the logged in windows credentials to connect to the server/database
any help will be much appreciated!!!
I wonder if there is a cloud service that can offer a physical server so that AutoIT can turn as it is in a physical machine.
Good evening everyone
I'm working on a little project of mines, and I was trying to use WMI Object.
The question which I don't find an answer is:
Once I do the query with WMI Object, something like "SELECT * FROM Win32_LogonSession", instead of specify the field of the collection returned, ( i.e. $colItems.Caption ), can I loop though each property and each value of the property, writing so one row of code only?
Hope my question was clear enough.
Thanks in advance.
Has anyone created any queries for youtube? I was thinking it might be something like this but can't quite figure it out:
$oIE = _IECreateEmbedded() _IENavigate($oIE,"https://www.youtube.com") Local $oForms = _IETagNameGetCollection($oIE, "form") Local $sTxt = "" For $oForm In $oForms If $oForm.id = "masthead-search" Then $oInputs = _IETagNameGetCollection($oIE, "input") For $oInput In $oInputs If $oInput.id = "masthead-search-term" Then _IEFormElementSetValue($oInput, "cards") _IEFormSubmit($oForm) EndIf Next EndIf Next
I have an issue I've been trying to solve for a while, I'm trying to add static routes in DHCP via a 121 route rule in Windows 2012 R2 is a brutal manual process and wanted to automate this via AutoIT.
When I use the "ControlGetText" everything displays properly in the MSG box but when I try and use "ControlSetText" or "ControlSend" the values won't display in the input box but the action comes back as successful?
Anyone able to help me with this? I'm thinking this might be an active window issue but i'm not sure.
Here is a part of my code.
$hWnd = WinWait("[TITLE:Add a Static Route]","", 10)
$Status = ControlSend($hWnd, "", "[CLASS:Edit; INSTANCE:4]", "192"); Does not add 192 to the text box.
Local $sTextEdit1 = ControlGetText($hWnd, "", "[CLASS:Edit; INSTANCE:1]")
ConsoleWrite ( "ControlSend Status: " & $Status & @CRLF); Returns a Value of 1
ConsoleWrite ( "ControlGetText Value Edit1: " & $sTextEdit1 & @CRLF);
Please see attachment for more info.