Sign in to follow this  
Followers 0
wonder

run script in hidden mode

6 posts in this topic

Hi all,

Is there a way to use a series of controlcommands in hidden mode.

I want to change some settings of a securew2 client in hidden mode.

Thanks in advance

Share this post


Link to post
Share on other sites



Hi all,

Is there a way to use a series of controlcommands in hidden mode.

I want to change some settings of a securew2 client in hidden mode.

Thanks in advance

Hi,

did you look at ControlSend() in the help file? Is it want you want? Does it help?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Hi all,

Is there a way to use a series of controlcommands in hidden mode.

I want to change some settings of a securew2 client in hidden mode.

Thanks in advance

It is very unclear from your post whether you want a script to run hidden, or send commands to a hidden window. Which is it?


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

It is very unclear from your post whether you want a script to run hidden, or send commands to a hidden window. Which is it?

I've created a script which will open some windows and change settings. I am using control commands for these changes. All I want to do is to be able to do those changes without the user seeing which windows are being used.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I've created a script which will open some windows and change settings. I am using control commands for these changes. All I want to do is to be able to do those changes without the user seeing which windows are being used.

Hi,

then WinSetState() and [ControlClick()] or ControlSend() in the help file should help. Also have a look at @SW_HIDE and @SW_SHOW.

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Hi,

then WinSetState() and [ControlClick()] or ControlSend() in the help file should help. Also have a look at @SW_HIDE and @SW_SHOW.

So long,

Mega

This is the code Ive made.

Is it possible to hide all the windows that will popup??

CODE

$a = "eduroam"

; De map Network Connections wordt geopend

Run("RUNDLL32 SHELL32.DLL,Control_RunDLL ncpa.cpl", "", @SW_HIDE)

WinWait("Network Connections")

If Not WinActive("Network Connections") Then WinActivate ("Network Connections")

WinWaitActive("Network Connections")

$nic = ControlListView("Network Connections", "", "SysListView321", "FindItem", "Wireless Network Connection")

ControlFocus("Network Connections", "", ControlListView("Network Connections", "", "SysListView321", "Select", $nic))

Send("!{Enter}")

WinWait("Wireless Network Connection Properties")

If Not WinActive("Wireless Network Connection Properties") Then WinActivate("Wireless Network Connection Properties")

WinWaitActive("Wireless Network Connection Properties")

ControlCommand("Wireless Network Connection Properties", "", "SysTabControl321", "TabRight", "")

Sleep( 500)

ControlClick("Wireless Network Connection Properties", "", 7033)

Sleep( 500)

WinWait("Wireless network properties")

If Not WinActive("Wireless network properties") Then WinActivate("Wireless network properties")

WinWaitActive("Wireless network properties")

ControlCommand("Wireless network properties", "Association", 6011, "EditPaste", $a)

ControlCommand("Wireless network properties", "", "SysTabControl321", "TabRight", "")

ControlCommand("Wireless network properties", "", "ComboBox1", "SelectString", 'SecureW2')

ControlClick("Wireless network properties", "", 6005)

WinWait("SecureW2 Profile")

If Not WinActive("SecureW2 Profile") Then WinActivate("SecureW2 Profile")

WinWaitActive("SecureW2 Profile")

ControlCommand("SecureW2 Profile", "", "ComboBox1", "SelectString", 'eduroam')

ControlClick("SecureW2 Profile", "", 1042)

WinWait("SecureW2 Profile")

If Not WinActive("SecureW2 Profile") Then WinActivate("SecureW2 Profile")

WinWaitActive("SecureW2 Profile")

ControlCommand("SecureW2 Profile", "", "SysTabControl321", "TabRight", "")

ControlCommand("SecureW2 Profile", "", "SysTabControl321", "TabRight", "")

ControlCommand("SecureW2 Profile", "", "SysTabControl321", "TabRight", "")

WinWait("SecureW2 Profile")

If Not WinActive("SecureW2 Profile") Then WinActivate("SecureW2 Profile")

WinWaitActive("SecureW2 Profile")

ControlCommand("SecureW2 Profile", "Username:", 1040, "UnCheck", "")

ControlSend("SecureW2 Profile", "Username:", 1018, $LogId, 1)

ControlSend("SecureW2 Profile", "Password:", 1019, $PassWd, 1)

Sleep( 250)

WinWait("SecureW2 Profile")

If Not WinActive("SecureW2 Profile") Then WinActivate("SecureW2 Profile")

WinWaitActive("SecureW2 Profile")

ControlCommand("SecureW2 Profile", "Username:", 1017, "Check", "")

ControlClick("SecureW2 Profile", "OK", 1)

ControlClick("SecureW2 Profile", "OK", 1)

WinWait("Wireless network properties")

If Not WinActive("Wireless network properties") Then WinActivate("Wireless network properties")

WinWaitActive("Wireless network properties")

ControlClick("Wireless network properties", "OK", 1)

WinWait("Wireless Network Connection Properties")

If Not WinActive("Wireless Network Connection Properties") Then WinActivate("Wireless Network Connection Properties")

WinWaitActive("Wireless Network Connection Properties")

ControlClick("Wireless Network Connection Properties", "OK", 1)

WinWait("Network Connections")

If Not WinActive("Network Connections") Then WinActivate("Network Connections")

WinWaitActive("Network Connections")

WinClose ("Network Connections", "FolderView")

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