I have a form and used Custom Input for it, an html page, and I need to make it full size, to stretch regardless on what screen (I have dual). I do not want to put fixed values in the properties panel for Custom Input activity, just dynamic to be.
I tried System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height and System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width and also checked the Screen.PrimaryScreen.WorkingArea.Size.ToString
screen: {Width=1920, Height=1030}
bounds: {X=0,Y=0,Width=1920,Height=1080}.
I tried some js code in my html to make maximize window on load but not succeeded. I need it when the form is presented, to maximize on its own, not using any other clicks/buttons.
Here’s a workaround. Create two sequences, one for showing the Custom Input Form and another to maximize the Custom Input Form window. In your main workflow, use a Parallel activity and invoke the two workflows previously created. Make sure that the property Isolated is checked on the two Invoke Workflow activities. See the attached file for an example.
Ok, that’s really strange. It maximizes the Custom Input window immediately for me when I run the robot. I have tested on both my home computer and my work computer. Did you run my example or did you create your own version?
Could you test to run my example and see if you have the same delay? The custom input in the example is also an HTLM-file. Also, if you can and want to, you can upload your workflow here and I will take a look.
I did look over your flow again, and I discovered that it was the selector of the attach window activity that was the problem in my workflow. Thank you so much for your help!