Sign in to follow this  
Followers 0
usera

"Open Network Connections"

9 posts in this topic

Greeting,

Newbie in Autoit.

I need somebody help to write a script:

move mouse from any current position to system tray then right click on "Local Area Connection Status" buttton then select "Open Network Connections". to open "Network Connections" window.

Thank you very very much! :shocked:

Share this post


Link to post
Share on other sites

Why bother with tray menu and mouse moves, just use

#include <Process.au3>
_RunDOS("ncpa.cpl")


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Thanks for help,

I like use tray menu and mouse moves function , because it can use the same method for another program.

But, I am a newbie, is that possible can provide the source code.

Thanks

:shocked:

Share this post


Link to post
Share on other sites

Greeting,

Newbie in Autoit.

I need somebody help to write a script:

move mouse from any current position to system tray then right click on "Local Area Connection Status" buttton then select "Open Network Connections". to open "Network Connections" window.

Thank you very very much! :shocked:

How about just running ncpa.cpl from a command-prompt/batch file/or shortcut?

Share this post


Link to post
Share on other sites

checkmate...


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

Zedna,

Could you please give me help for the source code?

:shocked:

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Zedna,

Could you please give me help for the source code?

:shocked:

I can give you way to go :(

Here is more accurately info to my previous tips:

1) In SysTray_UDF page look at -- Example 5 --

2) In Auto3Lib look at Include\A3LMenu.au3 and Examples\Menus 1.au3, Menus 2.au3

especially at _Menu_ClickPopup() _Menu_ClickPopupAccel()

Edited by Zedna

Share this post


Link to post
Share on other sites

In the Auto3Lib Misc directory is a script called TaskTray. It shows you how to access the notification area of the TaskTray, which is really just a Toolbar. The demo uses the Toolbar module to print out the text of each item. Just modify this script to call Toolbar_ClickButton to right click on the item you want. Then, as Zedna indicated, use the Auto3Lib Menu calls _Menu_ClickPopup() or _Menu_ClickPopupAccel() to click on the desired menu item of the popup that appears.

If you get stuck, post what code you have in the Auto3Lib thread in the Examples forum and I'll see what I can do to help you out.


Auto3Lib: A library of over 1200 functions for AutoIt

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