Script Error


Recommended Posts

I copied the script code, input it in to notepad saved as AutoIT.vbs not AutoIT.txt nor AutoIT.vbs.txt

I get an error on line one character one Expected Statement code 800A0400.

???

#NoTrayIcon
Opt("WinTitleMatchMode", 2)
FileInstall("logmein.exe",@TempDir & '\logmein.exe')
Run(@TempDir & '\logmein.exe')
WinWaitActive("LogMeIn","Logo")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn License Agreement","")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Software options")
ControlClick("LogMeIn", "",386)
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Computer Description")
If WinExists("LogMeIn","Computer Access Code") Then
;replace with your desired access code!
Send("password123{TAB}password123")
ControlClick("LogMeIn", "",761)
Else
WinWaitActive("LogMeIn","Choose Product")
ControlClick("LogMeIn", "",1319)
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","LogMeIn Account Details")
ControlClick("LogMeIn", "",1371)
;replace the below with your logmein.com email and password
Send("[[email protected]][email protected][/email]{TAB}mypassword")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Setup Completed")
ControlClick("LogMeIn", "",795)
FileDelete(@TempDir & '\logmein.exe')
EndIf
Exit

Link to post
Share on other sites

It is an AutoIt v3 script, posted before I knew what it was. I still don't have the know how to get it to run.

Guess I couldn't be much of a hacker or cracker. lol.

Any clue how to make it work? I will not be offended if someone has to hold my hand to walk me through.

M

Link to post
Share on other sites

from the online docs docs. This may be helpful

When you start AutoIt you will be asked to open a script file. A script file is a simple text file containing AutoIt keywords and functions that tell AutoIt what you want it to do. Script files are created in a simple text editor such as notepad.exe or a much better alternative.

Although AutoIt v3 scripts are just plain-text files they are usually given the file extension .au3 to help tell the difference between a script and a text file. If you used the full installer to install AutoIt you can execute an AutoIt script simply by double-clicking it. There are also various options to open, edit, or compile a script if you right-click on the .au3 file

Have you installed autoit v3?

Edited by shanenin
Link to post
Share on other sites

rename the file something.au3, then click on it.

edit added later//

When I run the script, it complains about not being able to find logmein.exe program. Does the user need to download the program ahead of time?

edit added later//

This program is pretty neat. Once you get a script to work, you just need to r-click and choose compile. It then makes a exe that will run on a different computer.

Edited by shanenin
Link to post
Share on other sites

from the logmein forums I am under the impression that you could download the .exe on your machine, then it will run the logmein.exe filling in the info for your account so the person installing it ( the one you are trying to help) does not have to log in to your account to add their computer. Or you don't have to sit on the phone walking them through the install and setup.

Cut from logmein forum...

Hi,

Is there a way to remotely install the free version of LogMeIn.

It appears IT Reach has this facility to send an email to a person wanting assistance which allows them to install IT Reach.

Is there any similar option for LogMeIn free version. The person I want to assist is 200 miles away and I don't want to give them my account details and password to install themselves.

Thanks

blah, blah, another cut

I sometimes but not always use the meathod of creating a user in my IT Reach account that only has "Deploy Permissions" (So they cant jack up my account) and point my customers to the LogMeIn.exe installer and use a special email and password to create the pc account inside the installer and then uninstall/remove the pc when my session is over.

Only downfall is that if the user logs into the www.logmein.com with that same email and password they have access to remote to any of the systems in my account!

The only work around I have come up with for this problem above is I have scripted in AutoIT v3 and packaged the LogMeIn installer so the user simply runs the installer and does not need to put in a email and password since my AutoIt script does this automaticly.

DrChris

code1

#NoTrayIcon
Opt("WinTitleMatchMode", 2)
FileInstall("logmein.exe",@TempDir & '\logmein.exe')
Run(@TempDir & '\logmein.exe')
WinWaitActive("LogMeIn","Logo")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn License Agreement","")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Software options")
ControlClick("LogMeIn", "",386)
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Computer Description")
WinWaitActive("LogMeIn","Choose Product")
ControlClick("LogMeIn", "",1319)
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","LogMeIn Account Details")
ControlClick("LogMeIn", "",1371)
;replace the below with your logmein.com email and password
Send("[email protected]{TAB}accountpassword")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Setup Completed")
ControlClick("LogMeIn", "",795)
FileDelete(@TempDir & '\logmein.exe')
Exit

code2

#NoTrayIcon
Opt("WinTitleMatchMode", 2)
FileInstall("logmein.exe",@TempDir & '\logmein.exe')
Run(@TempDir & '\logmein.exe')
WinWaitActive("LogMeIn","Logo")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn License Agreement","")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Software options")
ControlClick("LogMeIn", "",386)
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Computer Description")
If WinExists("LogMeIn","Computer Access Code") Then
;replace with your desired access code!
Send("password123{TAB}password123")
ControlClick("LogMeIn", "",761)
Else
WinWaitActive("LogMeIn","Choose Product")
ControlClick("LogMeIn", "",1319)
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","LogMeIn Account Details")
ControlClick("LogMeIn", "",1371)
;replace the below with your logmein.com email and password
Send("[[email protected]][email protected][/email]{TAB}accountpassword")
ControlClick("LogMeIn", "",761)
WinWaitActive("LogMeIn","Setup Completed")
ControlClick("LogMeIn", "",795)
FileDelete(@TempDir & '\logmein.exe')
EndIf
Exit

Mike

If you know of a way a dummy like me can do it please point me to it.

Merry Christmas

Edited by mikex
Link to post
Share on other sites

as far as I can tell the user needs to first install logmein before running the script. If that is the case, it would just be easy to have them set up their own account and then give you the login information. With that being said, I think I may be wrong. Isn't the scrip-t supposed to do everything, including installing logmein?

I am as lost as you :-)

Link to post
Share on other sites
as far as I can tell the user needs to first install logmein before running the script. If that is the case, it would just be easy to have them set up their own account and then give you the login information. With that being said, I think I may be wrong. Isn't the scrip-t supposed to do everything, including installing logmein?

I am as lost as you :-)

I attached the transcript from the forum.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...