Hello everyone! I am implementing various window sizes in my application, and some require both horizontal and vertical scrollbars to ensure the user can view the full content. I came across TechNote429 online, but I am struggling to make it work. Every time I try to input the script, I encounter an "Expected Assignment" error and cannot complete it. The script I am using is as follows: "Horizontal_Position = #HorzScrollBar.Value; MoveWindow( WindowName, 0 - Horizontal_Position, 0 - Vertical_Position, ThisWindowWidth, ThisWindowHeight);". If anyone has a solution to this issue or a more effective method, please assist me!
Has anyone else encountered this issue before? I would greatly appreciate any assistance you can provide.
I have never tried to do this before, mainly because it is not a good design practice. It is important to ensure that your windows are tailored to fit your display or to troubleshoot any scripting errors that may arise. When you encounter the "Expected Assignment" error, your cursor will indicate the exact location of the mistake in your script. This error could be caused by simply copying and pasting a script without including the required tags for it to function properly.
Here is a script example from WonderWare that can be used to move a window to the left by 460 pixels: WWMoveWindow("WindowName", -460,5,2724, 647). This feature is helpful for windows with a high number of graphic elements that cannot fit within a regular screen size. The data in the off-screen window continues to update without delay when scrolled over. This method is faster than switching between multiple windows. I have only implemented this in a few applications where it was appropriate. It is a valuable tool to have in your arsenal. The error you are encountering is likely due to text in the script that the software interprets as tags, but they have not been defined as such. You can use numbers or memory tags and load values into them using additional scripting techniques. Personally, I prefer to use tags for this purpose.
gmferg shared a helpful tip from WonderWare regarding moving windows within an application. By utilizing a script like the one provided, you can easily adjust the position of a window on the screen. This can be particularly useful when you want to display more graphic elements than what fits within a standard screen size. The window will continue to update off-screen data seamlessly without any delay when scrolled over, providing a smoother experience compared to switching between multiple windows. This technique can be a valuable addition to your toolkit for enhancing user interface design. On the other hand, SkyTech is facing issues with implementing horizontal and vertical scrollbars in different window sizes for their application. They encountered an error message stating "Expected Assignment" while trying to execute a script found in TechNote429. The script aims to adjust the position of a window based on scrollbar values. If you have any insights on resolving this error or have alternative methods for achieving the desired functionality, your assistance would be greatly appreciated. Additionally, a simple solution was implemented by utilizing a Key event and a specific integer variable. By controlling the position of a page within a window using a script like the one provided, you can easily scroll up or down based on predefined conditions. This approach involves adjusting the vertical position of the window by 100 pixels at a time to navigate through the content smoothly within a page size of 2000 pixels.
Hey there! It looks like there might be a missing variable assignment in your script. The error is likely occurring because `Vertical_Position` isn't defined in the code snippet you've provided. Try defining that variable, similar to how you've done for Horizontal_Position, just before the MoveWindow function and see if that clears up the issue. Alternatively, if you're using TechNote429, make sure you've correctly followed each of the steps, as a missed step could be causing this issue. Check for any syntax errors or overlooked commands. Pair programming or having a second set of eyes look over your code can also be a fruitful way to spot any errors. Happy coding!
It sounds like you're encountering a common issue, but without knowing what language you're coding in, I can only guess at a solution. However, in most languages, "Expected Assignment" errors usually mean that a variable is being used before being assigned a value. Make sure #HorzScrollBar.Value and Vertical_Position are properly assigned before you use them in the MoveWindow function. Beyond that, it would be helpful to know more about your environment - the development language in use, the specific platform you're dealing with, etc. Hope this helps point you in the right direction!
Hey there! It seems like you're not defining the "Vertical_Position" variable in your script, which might be why you're encountering the "Expected Assignment" error. You need to assign a value to this variable in the same way you did for the "Horizontal_Position". Also, double-check that the window you're trying to move ("WindowName") is correctly defined. Exploring other methods, you might want to consider using a responsive design or flexible layouts, which could eliminate the need of manually managing window size and scrollbars. Hope this helps!
Hey there! It looks like you might be missing an assignment for your "Vertical_Position" variable. Try assigning a value to it the same way you did for the Horizontal_Position variable. If you're still having issues, don't hesitate to share more of your code, as the problem may be embedded somewhere in the other parts. If all else fails, you might consider using an event listener for scroll events which could adjust the window size dynamically according to the scrollbar positions. Hope this helps!
✅ Work Order Management
✅ Asset Tracking
✅ Preventive Maintenance
✅ Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: The "Expected Assignment" error in WW Intouch scripts typically indicates a syntax issue where the program is expecting a certain type of assignment but is not receiving it. This could be due to incorrect syntax, missing parameters, or other related factors.
Answer: To resolve the "Expected Assignment" error while using the script provided in TechNote429 for scrollbars in WW Intouch, double-check the syntax and ensure that all variables are correctly assigned. Make sure that the values being assigned to variables like `Horizontal_Position`, `Vertical_Position`, `ThisWindowWidth`, and `ThisWindowHeight` are properly defined and used in the script.
Answer: Yes, there are alternative methods to implement horizontal and vertical scrollbars in WW Intouch scripts. You can explore different approaches like using built-in functions specific to WW Intouch for scrollbar functionalities or seeking guidance from the community or technical support for more effective solutions.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.