Jump to content

how to use macros


Recommended Posts

I always have problems where to place quotes when using macros such as @MyDocumentsDir.

Is there a basic rule for inserting macros like this in a command that has other literals?

Thanks

Link to comment
Share on other sites

  • Developers

I always have problems where to place quotes when using macros such as @MyDocumentsDir.

Is there a basic rule for inserting macros like this in a command that has other literals?

Thanks

A Marco is a Variable which means you shouldn't use any type of quotes.

Show an example what confuses you...

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

A Marco is a Variable which means you shouldn't use any type of quotes.

Show an example what confuses you...

I am referring to using a macro within a literal

Here are 2 that I now have working correctly.

Send(@MyDocumentsDir &"{enter}")

WinWait("PowerDesk -> " & @MyDocumentsDir & "\*.*","")

I guess I need to be sure the quotes are placed correctly...

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