Jump to content

Mouse Move for different Display Resolutions ?


nolls
 Share

Recommended Posts

Hi,

is it possible that i can run a Script with Mouse Move Settings for different Display Resolutions ?

I would like to install the Citrix ICA Client on many PC´s with different Display Resolutions, but the following Script (ICA Client German Version) does only work at 1024x768 !

What is the right way to get the Script for all different Display Resolutions ?

ShellExecute(@ScriptDir & "\ica32pkg.msi")

WinWaitActive("Sprache auswählen")

Send("{ENTER}")

WinWaitActive("Citrix Presentation Server Client - Setup", "&Weiter")

Send("!w")

WinWaitActive("Citrix Presentation Server Client - Setup", "Ich stimme der Lizenzvereinbarung")

Send("!l")

Send("!w")

MouseMove(497,361,10)

MouseClick("Left")

MouseMove(535,461,10)

MouseClick("left")

MouseMove(496,381,10)

MouseClick("left")

MouseMove(522,478,10)

MouseClick("left")

Send("!w")

WinWaitActive("Citrix Presentation Server Client - Setup", "Programmordner wählen")

Send("!w")

WinWaitActive("Citrix Presentation Server Client - Setup", "Comp&utername als Clientname verwenden")

Send("!w")

WinWaitActive("Citrix Presentation Server Client - Setup", "Lokale Anmeldeinformationen verwenden")

Send("!j")

Send("!w")

WinWaitActive("Citrix Presentation Server Client - Setup", "Program Neighborhood-Optionen")

Send("!s")

Send("!b")

Send("!w")

WinWaitActive("Citrix Presentation Server Client - Setup", "Bereit zur Installation")

Send("!w")

WinWaitActive("Citrix Presentation Server Client - Setup", "&Fertig stellen")

Send("!f")

Thank you !

Link to comment
Share on other sites

[...]

MouseMove(497,361,10)

[...]

You could, of course, use the representing controls that you're clicking, otherwise you should try to find out the locations where to click for different screen resolutions. Looking at your MouseMove commands, I guess that they are linked to the center of the screen. So MouseMove(497,361,10) should probably become MouseMove(@DesktopWidth/2 - 15, @DesktopHeight/2 - 23, 10), etcetera.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...