nadamson Posted May 11, 2022 Share Posted May 11, 2022 Newb here. First thanks everyone in the forums. I was able to automate one of my daily tasks and I'm working on another. I'm trying to get AutoIT to click on a New button in the tool bar of this application. expandcollapse popup>>>> Window <<<< Title: Report Builder Class: Afx:400000:8:10003:0:6e0d33 Position: 205, 344 Size: 1325, 625 Style: 0x14CF0000 ExStyle: 0x00000100 Handle: 0x0023070C >>>> Control <<<< Class: ToolbarWindow32 Instance: 1 ClassnameNN: ToolbarWindow321 Name: Advanced (Class): [CLASS:ToolbarWindow32; INSTANCE:1] ID: 59392 Text: Report Builder Position: -2, 0 Size: 144, 32 ControlClick Coords: 19, 16 Style: 0x5400004E ExStyle: 0x00000000 Handle: 0x00450734 >>>> Mouse <<<< Position: 25, 67 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< For Help, press F1 Report Builder Report Builder >>>> Hidden Text <<<< Here is what I've tried to get it to work. With a MouseClick: AutoItSetOption("MouseCoordMode",0) WinWait("Report Builder") WinActivate("Report Builder") MouseClick("primary", 25, 67, 1, 20) Report Builder Window will be focused on but the Mouse doesn't ever move. I've also tried it with a control click just to see if something would happen. WinWait("Report Builder") WinActivate("Report Builder") ControlClick("Report Builder","","[CLASS:ToolbarWindow32; INSTANCE:1]") I attempted to use the recorder but after recording, nothing showed up in the output. Any Suggestions? Link to comment Share on other sites More sharing options...
SkysLastChance Posted May 11, 2022 Share Posted May 11, 2022 (edited) Have you tried using Hotkeys? I don't have this program, However, you can give this a try to create a new report. ControlSend("Report Builder", "", "",("^n")) Just noticed you said that the mouse did no ove when you tried MouseClick() Do you get a message box that says "test" when you run this? AutoItSetOption("MouseCoordMode",0) WinWait("Report Builder") WinActivate("Report Builder") Msgbox(0,"","test") MouseClick("primary", 25, 67, 1, 20) If no your Winwait() is not finding anything. Edited May 11, 2022 by SkysLastChance Subz 1 You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott Link to comment Share on other sites More sharing options...
nadamson Posted May 11, 2022 Author Share Posted May 11, 2022 Thank you Skys, The ControlSend didn't work I ran that test and the msgbox popped up behind the Report Viewer window, When I clicked OK to dismiss the msgbox, the curser moved to the top of the screen and clicked. Not in the window. Link to comment Share on other sites More sharing options...
Subz Posted May 11, 2022 Share Posted May 11, 2022 Is the software available to public? If so do you have a download link? The only "Report Builder" I know of is Microsoft version for SQL. Link to comment Share on other sites More sharing options...
nadamson Posted May 12, 2022 Author Share Posted May 12, 2022 Unfortunately no Link to comment Share on other sites More sharing options...
spudw2k Posted May 12, 2022 Share Posted May 12, 2022 I don't suppose the Report Building is running with admin rights is it? If it is, and the script is not, it may not be permitted to interact with it using Control* functions. I suppose it could also possibly be an x86 versus x64 issue. Having said that, I can't see why automating the mouse movement and clicking isn't working. Control* functions are definitely the way to go though (more reliable) if you can get it to work. Maybe the _GUICtrlToolbar_ClickButton function is a good option too. *see the help file example. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now