Jump to content

"Open Network Connections"


 Share

Recommended Posts

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:

Link to comment
Share on other sites

Why bother with tray menu and mouse moves, just use

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


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

Link to comment
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?

Link to comment
Share on other sites

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
Link to comment
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
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...