Sign in to follow this  
Followers 0
newautoITGuy2

Ctrl+Alt+Delete

8 posts in this topic

I'm really new to AutoIT, so don't kill me...Reading the help there I couldn't find a way to login to a locked computer on a domain. We have a policy that locks the computer after 30 minutes, this won't allow my task to run. Is there a way to unlock the computer or is there a way to run it without unlocking?

Thanks

run("c:\x.exe")

WinWaitActive("Logon")

Send("xxxxx");login to the ap password

Send("{ENTER}")

WinWaitActive("Ap - Test")

send("!{SPACE}X")

MouseClick("left", 186, 37, 1)

;MouseClick("left", 583, 33, 1)

;WinWaitActive("Ap - Test - [Print Report Packages]")

WinWaitActive("Ap - Test")

;MouseClick("left", 45, 70, 1)

MouseClick("left", 64, 190, 1)

Sleep(3000)

send("^p")

WinWaitActive("Print")

;send("z")

send("!p")

sleep(10000)

WinWaitActive("Ap - Test")

send("!{F4}")

Share this post


Link to post
Share on other sites



Hi,

do you want to do it on a remote client?

Is the client locked by a user or is it locked while nobody has loggedin?

Should it be done with the rights of the user logged in or with other rights e.g. admin rights?

Did you look for ControlCommands and PSTools?

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

Ever thought of using mousemove before the computer is locked?

Have a look at adlibenable.

I'm sure there was a script that does just that (prevent pc from being locked), use the search-func.

Share this post


Link to post
Share on other sites

Hi,

do you want to do it on a remote client?

Is the client locked by a user or is it locked while nobody has loggedin?

Should it be done with the rights of the user logged in or with other rights e.g. admin rights?

Did you look for ControlCommands and PSTools?

So long,

Mega

I'm tring to unlock my local machine, I am admin.

Share this post


Link to post
Share on other sites

I'm tring to unlock my local machine, I am admin.

And You can't set your machines to not lock out the Admins?

Share this post


Link to post
Share on other sites

And You can't set your machines to not lock out the Admins?

no, it's company policy pushed down, through group policy....

Share this post


Link to post
Share on other sites

Hi,

do you want to do it on a remote client?

Is the client locked by a user or is it locked while nobody has loggedin?

Should it be done with the rights of the user logged in or with other rights e.g. admin rights?

Did you look for ControlCommands and PSTools?

So long,

Mega

I tried to change the code to controlsend and I'm still stuck at the login box after unlocking the computer. Any help would be appreciated. Thanks...

run("c:\x.exe")

;WinWaitActive("Logon")

ControlSend("Logon","","Edit2","xxxxxx")

ControlSend("Logon","","Button3","{ENTER}")

;WinWaitActive("Ap- Test")

sleep(3000)

ControlSend("Ap","","","!{SPACE}X")

MouseClick("left", 186, 37, 1)

;MouseClick("left", 583, 33, 1)

;WinWaitActive("Ap- Test - [Print Report Packages]")

;WinWaitActive("Ap- Test")

sleep(3000)

;MouseClick("left", 45, 70, 1)

MouseClick("left", 64, 190, 1)

Sleep(5000)

Controlsend("Ap- [Team Reports]","","","^p")

;Sleep(2000)

;WinWaitActive("Print")

;send("z")

MouseMove(1111,0)

Sleep(2000)

Controlsend("Print","&Print","Button13","!p")

sleep(10000)

WinWaitActive("Ap- Test")

Controlsend("Ap - [Team Reports]","","","!{F4}")

Share this post


Link to post
Share on other sites

I tried to change the code to controlsend and I'm still stuck at the login box after unlocking the computer. Any help would be appreciated. Thanks...

run("c:\x.exe")

;WinWaitActive("Logon")

ControlSend("Logon","","Edit2","xxxxxx")

ControlSend("Logon","","Button3","{ENTER}")

;WinWaitActive("Ap- Test")

sleep(3000)

ControlSend("Ap","","","!{SPACE}X")

MouseClick("left", 186, 37, 1)

;MouseClick("left", 583, 33, 1)

;WinWaitActive("Ap- Test - [Print Report Packages]")

;WinWaitActive("Ap- Test")

sleep(3000)

;MouseClick("left", 45, 70, 1)

MouseClick("left", 64, 190, 1)

Sleep(5000)

Controlsend("Ap- [Team Reports]","","","^p")

;Sleep(2000)

;WinWaitActive("Print")

;send("z")

MouseMove(1111,0)

Sleep(2000)

Controlsend("Print","&Print","Button13","!p")

sleep(10000)

WinWaitActive("Ap- Test")

Controlsend("Ap - [Team Reports]","","","!{F4}")

I wouldn't need to do CTRL ALT DELETE if I had a way to move the mouse to the control I needed and do a left click, but the control doesn't have a unique name or class name. Here's the info from window info: Any way to move to this control without having uniqueness on a locked computer?

Press CTRL-ALT-F to freeze the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Ap - Test

Class: FNWND370

Size: X: -4 Y: -4 W: 1288 H: 1004

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 195 Y: 33

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xD4D0C8 Dec: 13947080

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 0 W: 1280 H: 39

Control ID:

ClassNameNN: FNFIXEDBAR701

Text:

Style: 0x54000000

ExStyle: 0x00000000

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

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