Jump to content

ToolBar and button to launch scripts


Recommended Posts

Hi.

Well, that's basically an Excel question, but never mind :)

I need to ADD a tool bar or menu in Excel to exec scripts compiled by autoit3, but I don't have any idea.

Tips are welcome ...

Step1: Write a Macro in Excel calling your AI3 program:

Sub ExternalCall()
Shell "C:\MyTools\MyAutoitScript.exe Param1 Param2 Param3", vbNormalFocus
End Sub

2.) Modify your Excel's tool bar

- Right Mouse Click the toolbar, modify

- 2nd. Tab, "Commands" (?)

- select Macros

- drag-drop one of the icons to your toolbar

- Right Click that new icon in your toolbar, "Assign macro" (?), select the macro you wrote.

Regards, Rudi.

Edited by rudi

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

The answer you have is the easiest way, but I wanted to bring to your attention AnyGUI by quaizywabbit. I am sorry I can't give you any kind of working example, I haven't been able to spend much time with it, hopefully someone who is familiar with it can give you some pointers (ha or maybe I can smarten up and figure it out).

It maybe very well over your head especially since you are just starting out, but at least keep it in the back of your head that that functionality exists.

Make sure you check out Volly's correction to the script to run it under the current ver of autoit. Again, sorry to not give you a better answer. Good luck and welcome to the forum!

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
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...