ebanj88 Posted August 28 Author Share Posted August 28 For instance, which part of the script will i copy this to ? Opt("MouseClickDownDelay", 10) ;10 milliseconds Opt("MouseClickDelay", 10) ;10 milliseconds Opt("MouseClickDragDelay", 250) ;250 milliseconds Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase Opt("WinWaitDelay", 250) ;250 milliseconds Link to comment Share on other sites More sharing options...
Nine Posted August 28 Share Posted August 28 3 hours ago, ebanj88 said: I am not a programmer at all. I just need this script to work. Can you show me how ? Sorry, I am not a teacher. You need to learn by yourself, otherwise you will ask forever help... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
argumentum Posted August 29 Share Posted August 29 7 hours ago, ebanj88 said: I am not a programmer at all. I just need this script to work. ...not a rocket scientist, I just need this rocket to fly to the moon You put those up on top in the script, to have the options declared. And just use the examples of the help file, change them and try again, ...until it all works. Cheers Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
ebanj88 Posted August 29 Author Share Posted August 29 Good day Sir, Will this be okay to loop ? Do...Until, 450000000) That is 7500 minutes. Then, how do i convert all my mouse clicking to functions in order to make the code run till the end effectively ? What can i paste at the top to change all mouse clicks to functions ? Link to comment Share on other sites More sharing options...
argumentum Posted August 29 Share Posted August 29 2 hours ago, ebanj88 said: Good day Sir, And good day to you too. 2 hours ago, ebanj88 said: how do i convert all my mouse clicking to functions ....well, I guess you're on your own from here on forward. The advise I gave you before, take it. You're gonna have to learn the ropes. Unless you offer the code writing as a paying job ( not me, am busy ), the help you get in the forum is for you to learn to code it yourself and as far as help that can be given, this is as far as you can be helped. The rest is up to you. Good luck. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
ebanj88 Posted August 29 Author Share Posted August 29 Please i need someone to help me with a code for a token. I need to automate so many clicks over a software - it's a rendering software - accurender studio. The code is to loop 2,500 times. Please who can be of help here. Link to comment Share on other sites More sharing options...
ebanj88 Posted August 29 Author Share Posted August 29 I need to code a software to work over a rendering software by mouse clicking and saving. The name of the rendering software is Accurender Studio. I need this action to loop up to 2500 times because there are 2500 frames to be rendered. Please also take note of the fact that the program has to be computer friendly (not to overwork the computer which might lead to overheating). Find attached the setup and a video recording of 10x.mp4 what i need to happen in the software. 10x.mp4 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 29 Developers Share Posted August 29 (edited) ... and i need you to stop moaning and start doing the work yourself or wait till somebody is willing to help for free or paid. Stick to your original topic. Merged. Edited August 29 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted August 29 Share Posted August 29 (edited) Ok, I am going to give you one last chance to realize your script properly, one baby step at a time. As I can see from your video, it is quite a simple task. But you need to find the controls using au3info tool. The first step in your video is that you select f3 from that dropdown box. See if au3info tool gives you a control. If it does, then use the ControlCommand (see help file) with the "ShowDropDown" option to display the dropdown and then use the option "SelectString", 'f3' to set the selection. Edit : I sympathise 2500 frames at 3 mins each will take 7500 mins so about 125 hrs so more than 3 days. You absolutely need to have an extremely robust script to go over that length without crashing... Edited August 29 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 This is what i have so far after reading to chapter 5. The error message is Line 2 ---- unknown function name #region --- start _WinWaitActivate("interior 1x1_2015- AccuRenderStudio","") ControlCommand ( "HwndWrapper[ArStudioWpf.exe;;895ebad7-b44c-412f-a31c-13918e37d893]", "f1",""-7,-7","1550,838"", "showdropdown" [, "selectstring",'f1'] ) MouseClick (348,71), (0x6F6F6F) MouseClick (1178,38), (0xFFFFFF) Sleep (180,000) _WinWaitActivate("AutoSave") MouseClick("right",602,194,1) MouseClick("left",634,208,1) _WinWaitActivate("Export Image","Namespace Tree Contr") MouseClick (1516,7), (0xFFFFFF) MouseClick (893,334), (0x976C5D) For $loops = 2500 for $a=0 to 2500 ConsoleWrite("This is a: " & $b &@CRLF) next ConsoleWrite ("Inner loop:"&loops& " set finished"&@CRLF) $loops+=2500 next Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 This is the current error message. Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 #region --- start #WinwaitActivate _WinWaitActivate("ARS_ROBOT_O1- AccuRenderStudio","") ControlCommand ( "HwndWrapper[ArStudioWpf.exe;;895ebad7-b44c-412f-a31c-13918e37d893]", "f1",""-7,-7","1550,838"", "showdropdown" [, "selectstring",'f1'] ) MouseClick (348,71), (0x6F6F6F) MouseClick (1178,38), (0xFFFFFF) Sleep (180,000) _WinWaitActivate("AutoSave") MouseClick("right",602,194,1) MouseClick("left",634,208,1) _WinWaitActivate("Export Image","Namespace Tree Contr") MouseClick (1516,7), (0xFFFFFF) MouseClick (893,334), (0x976C5D) For $loops = 2500 for $a=0 to 2500 ConsoleWrite("This is a: " & $b &@CRLF) next ConsoleWrite ("Inner loop:"&loops& " set finished"&@CRLF) $loops+=2500 next This is the code that brought that error message. Link to comment Share on other sites More sharing options...
Nine Posted August 30 Share Posted August 30 (edited) Forget MouseClick for now. Why do you use an underscore before WinWaitActive ? Your first lines of code should be like this : WinActivate("interior 1x1_2015- AccuRenderStudio") Local $hWnd = WinWaitActive("interior 1x1_2015- AccuRenderStudio") ControlCommand($hWnd, "", "Control name here", "ShowDropDown", "") ControlCommand($hWnd, "", "Control name here", "SelectString", "f1") Replace Control name here with the actual control name of the dropdown. Run your code from SciTE, not in a compiled .exe, it is going to make your life easier. Edited August 30 by Nine added activation “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 Thanks for the help so far Sir. The code did not bring out any errors but its not running. Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\USER\Documents\Animation (Bravo) Render Script Test01.au3" "C:\Users\USER\Documents\Animation (Bravo) Render Script Test01.au3" (10) : ==> Unknown function name.: _WinWaitActivate("AutoSave") ^ ERROR >Exit code: 1 Time: 181.1 The above what comes up at the base of SCiTe. PLEASE SIR, i need that save command to save automatically without me changing or retyping the name its saving to as i need to save 2500 frames, the program will save accordingly and automatically in its own naming convention. AND ALSO please Sir, i need to always choose the next frame to render from that dropdown list so there might be something wrong with using "F1" in our code. Thanks a lot Sir Link to comment Share on other sites More sharing options...
Andreik Posted August 30 Share Posted August 30 Again you use an underscore before WinWaitActivate() function and the error it's very explicit. You keep whining yet you don't want to take time to understand the basics of AutoIt. This thread is a lose of time. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 This is the error am getting now. >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\USER\Documents\112.au3" "C:\Users\USER\Documents\112.au3" (15) : ==> Expected a variable in user function call.: Func _log (7) Func _log (^ ERROR >Exit code: 1 Time: 0.2348 This is the code below. #region --- start #WinwaitActivate WinActivate("interior ROBOT Test_2015- AccuRenderStudio") Local $hWnd = WinWaitActive("interior ROBOT Test_2015- AccuRenderStudio") ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "ShowDropDown", "") ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "SelectString", "f1") MouseClick (348,71) MouseClick (1178,38) Sleep (180000) $FuncName = "interior ROBOT Test_2015- AccuRenderStudio" Call($FuncName) Local $FuncName = 7 Func _log (7) EndFunc WinWaitActivate("interior ROBOT Test_2015- AccuRenderStudio") MouseClick("right",602,194,1) MouseClick("left",634,208,1) WinWaitActivate("Export Image","Namespace Tree Contr") MouseClick (1516,7), (0xFFFFFF) MouseClick (893,334), (0x976C5D) $loops = 2500 for $a=0 to 2500 ConsoleWrite("This is a: " & $b &@CRLF) next ConsoleWrite ("Inner loop:"&loops& " set finished"&@CRLF) $loops+=2500 Danyfirex 1 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 30 Developers Share Posted August 30 (edited) 2 hours ago, ebanj88 said: Call($FuncName) Local $FuncName = 7 Func _log (7) EndFunc So what exactly are you assuming this does? Have you really opened the helpfile and looked for the proper syntax for a Func? The error message is pretty clear about what the issue is. Edited August 30 by Jos Danyfirex 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 I have done that but dont understand it. This is what i checked. Func functioname ( [Const] [ByRef] $param1, ..., [Const] [ByRef] $paramN, $optionalpar1 = value, ...) ... [Return [value]] EndFunc Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 This is what i have at the moment. expandcollapse popup#region --- code start #WinwaitActivate Assign() Func _Assign ( "interior ROBOT Test_2015", "filename" [, flag = 2] )) $Filename = "interior ROBOT Test_2015" [Return [value]] EndFunc ;==>Assign WinActivate("$Filename") Local $hWnd = WinWaitActive("$Filename") ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "ShowDropDown", "") ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "SelectString", "f1") MouseClick (348,71) MouseClick (1178,38) Sleep (180000) Call($Filename) WinWaitActivate("$Filename") MouseClick("right",602,194,1) MouseClick("left",634,208,1) WinWaitActivate("Export Image","Namespace Tree Contr") MouseClick (1516,7), (0xFFFFFF) MouseClick (893,334), (0x976C5D) For $loops = 2500 for $a=0 to 2500 ConsoleWrite("This is a: " & $b &@CRLF) next ConsoleWrite ("Inner loop:"&loops& " set finished"&@CRLF) $loops+=2500 next 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