chusski

Need help to do a script for when a program is ready do hotkey.

2 posts in this topic

#1 ·  Posted

Hello, i need do a .exe to use it for, when startup Windows and the program is ready send the program to Tray and do a hotkey (Control + 2).

I dont know so much of script, was try with the Autorecorder and convert to exe but dont work...

Anyone can help my with this?

_WinWaitActivate("classname=Shell_TrayWnd","Mouse Recorder Premium 1.0.46")
Send("{CTRLDOWN}2{CTRLUP}")

Thx very much for yout time^^

 

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

Hi and welcome,

There are a few steps needed to get this started:

Build a little script using Shellexecute to start your software, compile it ( it then becomes an exe file ).

Now copy this executable into your windows startup folder and test.

Once you get that working you can add more commands to your script winwaitactive and sends to manipulate the now running software.

Try to use ControlSend , ControlCommands wherever possible or find the keyboard shortcut that starts your desired function and have Autoit 'send' that.

Note: need more info about what you mean with "Send program to tray" does it go there when started?

Give it a shot and come back if you get stuck.

Good luck !

Bill

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