This is my first post, so I apologize if this is in the wrong place.
I've created a while loop to click in a certain area of an application, and have the y axis change at the end of each loop. My loop continues to click at x:27, x:10, even though the $y is adding 15 at the end of each loop. I did a Send($x) and Send($y) into a Notepad to see if the $y had changed after each loop, and the 15 was being added to $y each loop. (If this makes sense)
I'm unsure where I'm going wrong, and would be extremely grateful if someone can point me in the correct direction to fix this.
Local $rDirectory = "H:\oDemandProject\fList.txt" Local $rLine = _FileCountLines($rDirectory) Local $x = 27 Local $y = 10 While $rline > 0 WinActivate("OnDemand", "-> 1") WinWaitActive("OnDemand", "-> 1") ControlClick("OnDemand", "", "[CLASS:AfxFrameOrView120u; INSTANCE:1]", "left", 4, $x, $y) $y += 15 $rLine -= 1 WEnd
Please help. How to enter text to my C# program textbox?
" >>>> Window <<<< Title: Form1 Class: WindowsForms10.Window.8.app.0.141b42a_r10_ad1 Position: 1922, 615 Size: 553, 680 Style: 0x16CF0000 ExStyle: 0x00050100 Handle: 0x001E0812 >>>> Control <<<< Class: WindowsForms10.EDIT.app.0.141b42a_r10_ad1 Instance: 4 ClassnameNN: WindowsForms10.EDIT.app.0.141b42a_r10_ad14 Name: tbSymbol Advanced (Class): [NAME:tbSymbol] ID: 2492658 Text: TSLA Position: 100, 16 Size: 63, 20 ControlClick Coords: 43, 10 Style: 0x560100C0 ExStyle: 0x00000200 Handle: 0x002608F2 >>>> Mouse <<<< Position: 2073, 672 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Shars Request SELL BUY 4000 Price Update Money SYMBOL TSLA Disconnect Connect >>>> Hidden Text <<<< " tried everything,
$HWnd = WinActivate("Form1") ControlSend($HWnd,"", "[CLASS:WindowsForms10.EDIT.app.0.141b42a_r10_ad1]", $Symbol)
#Include <WinAPI.au3> local $ClassName = _WinAPI_GetClassName(WinGetHandle(WinGetTitle("[ACTIVE]"))) ControlClick(WinGetTitle("[ACTIVE]"), "", "[CLASS:"&$ClassName&"; INSTANCE:1]", "primary") When I am running this script it just gives me a ConsoleWrite output of "0x001D04A8"
When using "AutoIT v3 Window Info" all the info I need for the ControlClick is there and displayed perfectly as if I typed it in normally.
Upon click the button it should be clicking it, I see the following inn the console window:
If I replace the $ClassName with the actual ClassName of "WindowsForms10.BUTTON.app.0.3296db7_r14_ad1" it works just fine, any ideas???
Is that correct?
With SimpleSpy i can click on controls without any include/udf ON CHROME?
Hello I am a first time user of AutoIT with little coding experience and I would REALLY really appreciate your help.
I work in a warehouse where I am responsible for data entry along with a slew of other different tasks such as auditing and managing paperwork. Most of my time is tied up entering info to close receipts of product orders (8-12+ hours for thousands of products). The quantity actually produced by the warehouse is sometimes different from the quantity listed on the reciept (in this case 20). I need to change all the build qty for sublocation "1-WIP" from 20 to the actual quantity 22 and set all other numbers as 0. The form is an iframe coded with jQuery and freezes for 1-2 seconds after every entry and refreshes. As such, it doesn't allow me to use tab and I need to click and type every incorrect field.
I have attached an image as an example from the webapp, FinaleInventory.
I'm thinking that I probably need a macro that has a message box entry where I can type the corrected number entry I want. Then it uses image/character recognition (Tesseract?) to find "WIP" sublocation =, Move the mouse over to the right to "Quantity" relative to location of WIP If quantity number = entry, then move to next "WIP" image (Not quite sure how to make Tesseract "find next") Elseif quantity number ≠ entry then click quantity number of "WIP" and type corrected entry Scroll down Loop until bottom of page I would greatly appreciate any help, ideas or pointers for this project. Thank you!
-A newbie scripter