Jump to content
Sign in to follow this  
JavierJz

ToolBar and button to launch scripts

Recommended Posts

JavierJz

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

Share this post


Link to post
Share on other sites
rudi

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!

Share this post


Link to post
Share on other sites
someone

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

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  

×