mikex Posted December 20, 2006 Report Share Posted December 20, 2006 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. ??? #NoTrayIconOpt("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)ElseWinWaitActive("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 passwordSend("[[email protected]][email protected][/email]{TAB}mypassword")ControlClick("LogMeIn", "",761)WinWaitActive("LogMeIn","Setup Completed")ControlClick("LogMeIn", "",795)FileDelete(@TempDir & '\logmein.exe')EndIfExit Quote Link to post Share on other sites
iccaros Posted December 22, 2006 Report Share Posted December 22, 2006 I thought ' was a comment in vb not # Quote Link to post Share on other sites
jcl Posted December 22, 2006 Report Share Posted December 22, 2006 Is that an AutoIt script? Quote Link to post Share on other sites
mikex Posted December 23, 2006 Author Report Share Posted December 23, 2006 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 Quote Link to post Share on other sites
shanenin Posted December 23, 2006 Report Share Posted December 23, 2006 (edited) from the online docs docs. This may be helpfulWhen 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 fileHave you installed autoit v3? Edited December 23, 2006 by shanenin Quote Link to post Share on other sites
mikex Posted December 23, 2006 Author Report Share Posted December 23, 2006 AutoIt is installed, trying to get my head together to understand what to do.M Quote Link to post Share on other sites
shanenin Posted December 23, 2006 Report Share Posted December 23, 2006 (edited) 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 December 23, 2006 by shanenin Quote Link to post Share on other sites
shanenin Posted December 23, 2006 Report Share Posted December 23, 2006 I have been trying to figure out how that script works, with out much luck. Do you have a link to the place where you found it? Quote Link to post Share on other sites
mikex Posted December 23, 2006 Author Report Share Posted December 23, 2006 (edited) 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. Thanksblah, blah, another cutI 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. DrChriscode1#NoTrayIconOpt("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 passwordSend("[email protected]{TAB}accountpassword")ControlClick("LogMeIn", "",761)WinWaitActive("LogMeIn","Setup Completed")ControlClick("LogMeIn", "",795)FileDelete(@TempDir & '\logmein.exe')Exitcode2#NoTrayIconOpt("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)ElseWinWaitActive("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 passwordSend("[[email protected]][email protected][/email]{TAB}accountpassword")ControlClick("LogMeIn", "",761)WinWaitActive("LogMeIn","Setup Completed")ControlClick("LogMeIn", "",795)FileDelete(@TempDir & '\logmein.exe')EndIfExitMikeIf you know of a way a dummy like me can do it please point me to it.Merry Christmas Edited December 23, 2006 by mikex Quote Link to post Share on other sites
shanenin Posted December 25, 2006 Report Share Posted December 25, 2006 Help me sort this out. Is the user supposed to install logmein ahead of time, before running the script. Is the script just supposed to log them in automatically? Quote Link to post Share on other sites
mikex Posted December 26, 2006 Author Report Share Posted December 26, 2006 LogMeIn Forums You have to be a member to get into the forums.M Quote Link to post Share on other sites
shanenin Posted December 26, 2006 Report Share Posted December 26, 2006 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 :-) Quote Link to post Share on other sites
mikex Posted December 26, 2006 Author Report Share Posted December 26, 2006 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.