Jump to content

Recommended Posts

Posted

Hello and thanks in advance for your help, everyone!

I've used autoit a few times for various simple tasks, and i have found myself in need of this very useful scripting program again.

What I'm trying to do is simulate a series of clicks, in order make a few macros to open an object on my desktop and change some settings.

If anyone could please leave some suggestions on how I might accomplish this, or perhaps direct me to some learning material for this type of task, I would greatly appreciate it!

Thanks again for your help

Posted

What objects do you want to open on your desktop, can you give more details?

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Posted

I'm looking to open Ventrilo and select a specific channel to join from a dropdown menu, click that channel, and then connect.

You can use this (doesn't click the desktop icon but it will set the server for you according to the list array).

;runs ventrilo from default install path

run("C:\Program Files\Ventrilo\Ventrilo.exe")

;waits for it to load

winwait("Ventrilo")

;sets the combo box containing servers to the first selection (0 represents 1st server in the list 2nd server would be 1 etc)

ControlCommand("Ventrilo","",1093,"SetCurrentSelection",0)

after that you could just send a controlsend of {enter} to connect and it would probably work (didn't test that last part).

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
×
×
  • Create New...