Jump to content
Sign in to follow this  
speedi

how to use macros

Recommended Posts

speedi

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

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
speedi

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

Share this post


Link to post
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
Sign in to follow this  

×