Jump to content

Need some help.


ShawnW
 Share

Recommended Posts

Not sure if its an AutoIt problem really, but maybe someone here can help.

Okay for fun I thought I'd see if I could send message boxes to my wife's computer with pstools, and maybe freak her out on Halloween because she believes all that John Edwards crap. I don't want it pre-scripted because I want to send different things based on her reaction. I put a copy of AutoIt3.exe on her base C: drive and ran this from a cmd console.

psexec \\comp c:\AutoIt3.exe /AutoIt3ExecuteLine  "MsgBox(0, 'Testing', 'Hello!')"

It started the AutoIt3.exe and even made the beep sound like a MsgBox poping up but there was no MsgBox to be found. I had to kill the AutoIt3.exe process manually. Then I tried it with the current logged in users credentials as well but had the same result. Is this some kind of security feature? I tried sending other code like

FileWrite("c:\test.txt","Hello!")

...and the file was created just fine, but the MsgBox() just doesn't seem to appear.

Shawn

Link to comment
Share on other sites

You could always try something like this:

psexec \\comp -i c:\AutoIt3.exe /AutoIt3ExecuteLine  "MsgBox(0, 'Testing', 'Hello!')"

This is what the -i is for:

-i Interactive - Run the program so that it interacts with the desktop on the remote system.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Win 7 for me XP for her. I do have access and am able to run other PSTools. And even create files with autoit. I just can't run anything that shows visable. I've even tried running an au3 script instead of a line and using SplashTextOn() with Sleep() to keep it a few seconds and this had the same result where the script was running but nothing displayed.

Link to comment
Share on other sites

  • Developers

Does autoit3.exe exists on c:\?

Else use the psexec switch (/c) to transfer the program first.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Well it's to late now, she didn't get on her computer really last night anyway so I wouldn't have had the chance anyway. But just to respond...

XP Home for example does not come out with the correct share to run psexec but would let you run some other tools.

If you run this on the command prompt it will report errors.

People keep missing the fact that the script was actually running. If I ran other lines of code that were not visible, such as creating files or anything in the background, the lines were executed perfectly. Even when I did MsgBox(), my wife's computer would make the beep like a message box poped up. Also, a process for AutoIt3.exe was created and remained running because the invisible message box could not be closed. I had to manually kill this process using task manager or pskill. So it is not a permissions or sharing issue. I can run code, just everything I run has no interface. Nothing visible to the user except a process in the background.

Why not just make her computer reverse connect to yours or download a command from a website to execute on her computer?

If you really wanted to use cmd, couldn't you just enable net send?

Yeah that's a little more work than I was looking for in a small Halloween prank.
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...