4 posts in this topic
i am working on a application where if the flashing is success i get a window saying "SUCCESS" and if the flashing failed a window saying "FAILED" and i have to automatically identify pass or fail.the problem is both the windows are having the same control ID. how can i differentiate between both windows? so that i can make use of that in script for automation///
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.
I created some scripts for a simple farming bot a few years ago and they rely on ControlSend.
A year ago I quit that game and then installed Windows 10 (was using windows 7).
Recently I installed that game and tried running them again and they seem to work (I have some messages displayed on the screen with the state of the bot ), except for the ControlSend part (which obviously is crucial).
I started debugging the scripts so I created a basic script that makes use of Send. I tested this with Notepad in focus and works just fine and then with my game window in focus and it didn't work (it's supposed to write that text in an input box from the game).
#include <MsgBoxConstants.au3> Sleep(3000); Send("some text"); MsgBox($MB_OK, "Notification", "Control was sent!");
Is there a way for the creators of the game to create some kind of security system against this? Or something happens because I updated to Windows 10?
Is there something I'm missing?
Hello I would like to know if there is a way to return a sentence in cmd when I launch from it (because I add arguments).
For example, diskpart.exe which help to manage the key and hdd connected, when you launch it with the parameter "/f" the app return a sentence saying that it don't recognize the parameter "/f" and it return the sentence in the cmd where i started the application, not a new one.
That's what I want to do but I couldn't find anything that would solve my problem on internet and on AutoIt like ConsoleWrite / ConsoleWriteError (don't work).
With ProcessList ( ["name"] ) we are able to get the running process list from the local machine.
Is there anyway to get the list from Remote machine, more precisely to get to know the status whether a particular application is running or not on remote machine using AutoIT?
We can implement through PSList.exe, but again we need to parse the text of it to read the output.
Is there any direct UDF in AutoIT?