Sign in to follow this  
Followers 0
acehotshot

writting a script

18 posts in this topic

Hi there, I am really new to all these but got to write a script which can automatically perform some task with the printer with just an enter bottom. how should i go about doing it...

someone please help. thanks a million...

Share this post


Link to post
Share on other sites



Go to the Help File:

Start -> Programs -> AutoIt v3 -> AutoIt Help File

look at the tutorials:

AutoIt -> Tutorials

Try them, write them, make them work. Look up the commands they use, and the related commands. Look at the example provided with the commands.

Start writing your own script.

Ask questions when you get stuck.

Share this post


Link to post
Share on other sites

thanks

Share this post


Link to post
Share on other sites

you can also use the search function on this forum...try searching for 'print' or 'printer'


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

how do i run microsoft office word 2003 like the notepad?

thanks a million

Share this post


Link to post
Share on other sites

how do i run microsoft office word 2003 like the notepad?

thanks a million

<{POST_SNAPBACK}>

Use the Run() command to launch programs

Share this post


Link to post
Share on other sites

Use the Run() command to launch programs

<{POST_SNAPBACK}>

thanks

Share this post


Link to post
Share on other sites

HI there, i could not find the full name of the executable (EXE, BAT, COM, or PIF) to run on microsoft office words...

Is it something like this...[Run("crumpler.doc", "", @SW_MAXIMIZE)]?

thanks

Share this post


Link to post
Share on other sites

Office 2003

c:\program files\Microsoft Office\office11\winword.exe

Office XP

c:\program files\Microsoft Office\office10\winword.exe


CheersNobby

Share this post


Link to post
Share on other sites

thanks!!!

Had been searching for it the whole afternoon!

Share this post


Link to post
Share on other sites

Am I going it correctly?

"Run("WINWORD.EXE", "", @SW_MAXIMIZE)"

i get this error...:"C:\Program Files\AutoIt3\Examples\Helpfile\Run.au3 (1) : ==> Unable to execute the external program.:

Run("WINWORD.EXE", "", @SW_MAXIMIZE)

The system cannot find the file specified."

Share this post


Link to post
Share on other sites

Hey pal, I had found my mistake.

Thanks

Share this post


Link to post
Share on other sites

run(@ProgramFilesDir & "\microsoft office\office11\winword.exe","",@SW_MAXIMIZE)

Or

run("c:\program files\microsoft office\office11\winword.exe","",@SW_MAXIMIZE)

CheersNobby

Share this post


Link to post
Share on other sites

Anther Qn, if I want to run a certain saved file, wat should i do? I cannot point it to the folder where the file is saved directly right... it there any other command that i can use?

thanks

Share this post


Link to post
Share on other sites

run(@ProgramFilesDir & "\microsoft office\office11\winword.exe c:\data\word.doc","",@SW_MAXIMIZE)


CheersNobby

Share this post


Link to post
Share on other sites

run(@ProgramFilesDir & "\microsoft office\office11\winword.exe c:\data\word.doc","",@SW_MAXIMIZE)

<{POST_SNAPBACK}>

how do i actually use macro like @ProgramFilesDir. I could not more information in the help file...

someone please help!

Thanks!

Share this post


Link to post
Share on other sites

Do a search on the helpfile for macro. It will pull everything you need to know up.

Also, you can just look at the Contents tab, and the Macro Reference is right above the Function Reference.

If you have more specific questions please ask them after reading that section.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

Do a search on the helpfile for macro. It will pull everything you need to know up.

Also, you can just look at the Contents tab, and the Macro Reference is right above the Function Reference.

If you have more specific questions please ask them after reading that section.

JS

<{POST_SNAPBACK}>

thanks!!!

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  
Followers 0