Jump to content

Why wont my exe work!?


CsM33
 Share

Recommended Posts

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("DO NOT TOUCH YOUR MOUSE OR KEYBOARD AS THIS WILL DAMAGE THE INSTALLATION.") 
Send("{Enter}")
Sleep(1000)
Send("THIS IS A REMINDER WHICH WILL CLOSE.")
Send("{Enter}")
Sleep(1000)
Send("YOUR INSTALLATION WILL BEGIN AUTOMATICALLY.")
Send("{Enter}")
Send("HOWEVER IF YOU MOVE YOUR MOUSE OR PRESS ANY KEYS")
Send("{Enter}")
Send("THE INSTALLATION WILL BE DAMAGED!")
Send("{Enter 3}")
Sleep(3000)
Send("THE INSTALLATION WILL BEGIN ANY SECOND")
Sleep(5000)
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "The text in the Untitled file has changed")
Send("!y")
WinWaitActive("Save")
Send("{TAB 7}")
Send("{Down 2}")
Send("{Enter}")
Send("{Tab 2}")
Sleep(100)
Send("installLOG")
Send("{Enter}")
Sleep(1500)
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("@Echo Off")
Send("{ENTER}")
Send("Msg * Hey Jared. This is chris and it looks like you restarted your computer!")
Send("{ENTER}")
Send("exit"}
WinClose("Untitled - Notepad")
Send("!y")
WinWaitActive("Save")
Send("{TAB 5}")
Send("{DOWN 4}")
Send("{Enter}")
Send("{TAB 3}")
Send("W")
Send("{Enter}")
Send("{Down}")
Send("S")
Send("y")
Send("{Enter}")
Send("{Tab}")
Send("msbatchbb.bat")
Send("{Tab}")
Send("{Down 2}")
Send("{Enter 2}")

It's basically a fake installer. But it makes a batch program that I will put into his startup that gives him the message every time he restarts.

Edited by CsM33
Link to comment
Share on other sites

CsM33,

Send("exit"}
Should be:

Send("exit")
taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Link to comment
Share on other sites

I just re-installed autoit and still nothing happened. It works fine when I right click and run the script. But when I make it an exe it doesn't do shit.

CsM33,

It runs fine for me in script or compiled.

I am no expert, but I would reinstall SciTE also.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Link to comment
Share on other sites

A little advice ... Your whole script can be summed up to one line.

FileWrite("SAVE PATH\msbatchbb.bat","@Echo Off" & @CRLF & "Msg * Hey Jared. This is chris and it looks like you restarted your computer!" & @CRLF & "exit")

Replace SAVE PATH with where you want to save it. If you want to have a message saying it's gonna install, add a MsgBox() to the top.

Hallman

Link to comment
Share on other sites

CsM33 When you rightclick you compiled exe and select properties Then version what does it say? On my system I get File Version: 3.2.0.1 (it's a while since that one was compiled :) )

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...