Jump to content

Create a mouse.exe with 3 paramenters - (Moved)


Recommended Posts

I have a use case where i want to create a exe that will allow 2 or 3 parmeters.

example mouse.exe 800 600 left

Meaning move mouse to pixel 800 600 and left click the mouse.  if left not defined just default click

#include <AutoItConstants.au3>
; Double click at the x, y position of 0, 500. This is a better approach as it takes into account left/right handed users.
MouseClick($MOUSE_CLICK_PRIMARY, 1107, 272, 1)

 

Link to comment
Share on other sites

  • Developers

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

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

1 hour ago, TomJonesIowa said:

I have a use case where i want to create a exe that will allow 2 or 3 parmeters.

example mouse.exe 800 600 left

Meaning move mouse to pixel 800 600 and left click the mouse.  if left not defined just default click

#include <AutoItConstants.au3>
; Double click at the x, y position of 0, 500. This is a better approach as it takes into account left/right handed users.
MouseClick($MOUSE_CLICK_PRIMARY, 1107, 272, 1)

 

What you're looking for is $CMDLINE. Check the "Running Scripts" section of the autoit help file. There is a section for Command Line Parameters.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

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...