Jump to content

vazheel

Members
  • Posts

    5
  • Joined

  • Last visited

vazheel's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hey guys, my boss needs a program that will compare two .txt files and then write the differences/similarities. I searched through about 30 pages of forums for a tool like this. Is there a simple exe available to download, and/or how would I go about approaching this problem. The only autoit script that I've written was a simple automation script, not a comparison script. Thanks for the help in the future
  2. Hey guys, I have recently been appointed to create a method of automating some testing done on computers that will ensure that users have the correct read/write ability. This will be compiled to an exe and then used on about 20 desktops over and over again. As you can see it's very crude and rudimentary, it's also my first script It works, however, I need it to be a little more robust and functioning on foreign environments, such as different drive names. CODE$answer = MsgBox(4, "Executable Script", "This script will run an array of programs and test user read-write permissions. Run?") If $answer = 7 Then MsgBox(0, "Canceled", "Script Canceled") Exit EndIf Run( "C:\Program Files\Microsoft Office\Office10\winword.exe") WinWaitActive("Microsoft Word") AutoItSetOption("SendKeyDelay", 20) Send("I am a new user, hear me roar. I will save to a file.") Sleep(2000) Send("{CTRLDOWN}") Send("s") Send("{CTRLUP}") Send("testscript.doc") Send("{Enter}") Send("!f") Send("x") Sleep(4000) Run("C:\Program Files\Microsoft Office\Office10\winword.exe") WinWaitActive("Microsoft Word") Send("{CTRLDOWN}") Send("o") Send("{CTRLUP}") Sleep(250) Send("testscript.doc") Sleep(500) Send("{Enter}") Sleep(5000) Send("!f") Send("x") Sleep(4000) Run("C:\Program Files\Microsoft Office\Office10\Excel.exe") WinWaitActive("Microsoft Excel - Book1") Send("Data") Send("{Tab}") Send("Column") Send("{DOWN}") SEND("{LEFT}") SEND("Row") SEND("{TAB}") SEND("Test") Send("{CTRLDOWN}") Send("s") Send("{CTRLUP}") Send("Testscript.xls") Send("{Enter}") Sleep(500) Send("!f") Send("x") Sleep(4000) Run("C:\Program Files\Microsoft Office\Office10\Excel.exe") WinWaitActive("Microsoft Excel - Book1") Send("{CTRLDOWN}") Send("o") Send("{CTRLUP}") Sleep(250) Send("testscript.xls") Sleep(500) Send("{Enter}") Sleep(5000) Send("!f") Send("x") Sleep(4000) Run("C:\Program Files\Microsoft Office\Office10\Powerpnt.exe") WinWaitActive("Microsoft PowerPoint - [Presentation1]") SEND("{TAB}") SEND("I am writing a test script, isn't this fun?") Send("{CTRLDOWN}") Send("s") Send("{CTRLUP}") Send("Testscript.ppt") Send("{Enter}") Sleep(500) Send("!f") Send("x") Sleep(4000) Run("C:\Program Files\Microsoft Office\Office10\Powerpnt.exe") WinWaitActive("Microsoft PowerPoint - [Presentation1]") Send("{CTRLDOWN}") Send("o") Send("{CTRLUP}") Sleep(250) Send("testscript.ppt") Sleep(500) Send("{Enter}") Sleep(5000) Send("!f") Send("x") Sleep(4000) Run("C:\Program Files\Microsoft Office\Office10\Outlook.exe") Sleep(1500) WinActivate("Inbox - Microsoft Outlook", "") WinWaitActive("Inbox - Microsoft Outlook") Send("{CTRLDOWN}") Send("n") Send("{CTRLUP}") Send("Dave") Send("{TAB}") SEND("{TAB}") Send("Script works") Sleep(1000) Send("{TAB}") Send("This is how you have a wholesome conversation with a guy named Dave") Send("!{F4}") Send("{TAB}") Send("{Enter}") Send("!{F4}") Run("notepad.exe") WinWaitActive("Untitled - Notepad") AutoItSetOption("SendKeyDelay", 20) Send("All microsoft products are working as intended.") Sleep(6000) WinKill("Untitled - Notepad") Now this script works and does what it's supposed to do, however sometimes it will goof up while it's running and mistype a word in the savefile box (It has done this twice so far). It will sometimes write testscrpt.doc and then when it tries to open it, the script goes berserk. Is there any way of controlling the script? Also I would like for the script to delete the files that it has created after it is done so we can run the script multiple times and not have to worry about rewrites. I know this is a lot to ask but if you could point me in the write direction I would greatly appreciate it. BTW I can't get to the ruddy help files from work because of this stupid .exe protection and you can't link a file to another file.
  3. The only problem is that sometimes GM's will send you a whisper that may take up more than one line. You would have to have a couple of places to check because sometimes they just say, "Greetings, this is GM such and such, do you have a spare moment?" Other times they will RP with you and say, "From the depths of hell, a fiery burst of lava streaks into your sight, a fiery plumed object plummets towards you leaving an acrid smoke trail, a large crash appears before you spitting earth and debris everywhere, a gnome rises from the ruins, clears his throat and says, "Greetings, this is GM such and such..."
  4. Rodgamer, begging is the best way to get things on a scripting site. It's always a good idea to not punctuate, or capitalize. Coders love it. You also need to put in more emoticons and more hyperlinks to your email so we know who is talking.
  5. I'm pretty sure that the bot that he intends to make is simply an afk script with a function that will respond to tells so that when a GM whispers him, he can respond back. AFK scripting in AV = bannable offense Sitting in the cave, while at your computer = scoldable at best. There are tons of people who do this, some people just have much more sophisticated scripts than others. While some are just crude "Press space bar every 4 minutes" others have random directions, random sleep timers, random distances traveled and have support for responding to tells send by other players/GM's
×
×
  • Create New...