Resize and move window example not working for me, don't know how to change parameters....
5 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?
I have a question
about the display language of the system
How can I get the current display language and how can I change it by autoit
Of course, if this is possible
Greetings to all and hope you help me
AutoIT AU3info doeas not detect all gui objects uniquely for .NET GUIs developed in C#.
this is not working now i am using COM windows approach for this, But its very difficult.
Please let me know if anyone has done it before.