Jump to content

RediXe

Members
  • Posts

    9
  • Joined

  • Last visited

RediXe's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. What is wrong with this thread? Please explain. Automating games or game servers. This rule is zero tolerance. Any discussion of using AutoIt to launch or interact with a game or game server violates our rules. See below for more details.Scripts or programs that violate the license agreement for software. If a program explicitly says no automation, do not discuss automation of that software here.If it's related to that I'm not trying to automate anything just trying to display a countdown when a specific key/key combo is hit on the keyboard. It's has nothing to do with the game itself, it could be a kitchen timer so when I hit "S" a timer auto starts counting down.
  2. I'm trying to code a semi-simple addon for Star Wars: The Old Republic game. They do not have an API to write addons (yet) so was hoping to create one that can be run outside the game. Might have other uses as well. Here's the Idea: A key combo is pressed, program will start a count down timer to show when something expires. It's a basic buff/debuff timer. So I create a file that will have the Name of the ability, the key or combo of keys to watch for, and the duration of the buff/debuff (Who ever uses this will have to configure this file themselves but atm I am only one using it) Sample content: Force Breach;^{2};18\ Earth Shield;+{1};8 I tried to StringSplit with "\n" for newline but that didn't work so I made do with the \ but rather not. Maybe an empty " " would work? I get the array that now contains: (does the array auto use [0] for array size?) [1] Force Breach;^{2};18 [2] Earth Shield;+{1};8 What I am having trouble getting to work is turning the above into: [1][1] Force Breach [1][2] ^{2} [1][3] 18 [2][1] Earth Shield [2][2] +{1} [2][3] 8 I'll probably have more issue's later on but this is where I am currently stuck at. #include <File.au3> #include <Array.au3> ; Read File watcher.txt $sStr = FileRead("watcher.txt") $aItems = StringSplit($sStr, "\") Global $aList[1] For $x = 1 To UBound($aItems)-1 Local $aTemp = StringSplit($aItems[$x], ";") _ArrayAdd($aList, $aTemp) _ArrayDisplay($aList, "K") Next For $x = 1 To UBound($aList,1) For $y = 1 To UBound($aList,2) MsgBox(0, 'Record: [' & $x & '][' & $y & '] ', $aList[$x][$y]) Next Next
  3. How do you suggest getting around this? Just curious.
  4. Is the RunAsSet no longer in use? I get an unknown function error when I try to use it, so I checked: http://www.autoitscript.com/autoit3/docs/functions/ to make sure I was doing it correct and it isn't there. Am I just missing something obvious? I did some google searches and my syntax appears to be correct it is just that the function doesn't exist. It's been a good while since I used autoit for admin purposes so maybe I missed a change. If there is a work around please let me know. TIA! RediXe
  5. Changing the Run command to this fixed the issue. THANK YOU so much. Now just have to fix the end of the autoit script so it doesn't cancel the program install.
  6. "The directory name is invalid." I tried options 0,1,2 and nothing is working. Wasn't sure if you saw both the EDITS I did before you got your post off.
  7. Batch File to run:if exist "C:\Program Files\The Learning Company\Kid Pix Deluxe 4\KP.exe" goto :END net use /delete s: net use S: \\orion\wh Call "S:\Tech-Fixes\Packages\kidpix4\tests.exe" :END tests.au3 RunAsSet("administrator", "gs", "******", 0) Run("setup.exe", "\\orion\wh\Tech-Fixes\Packages\kidpix4\") ;Sleep("10000") ;Send ("{ENTER}") ;Sleep ("2000") ;Send ("{UP}") ;Sleep("2000") ;Send ("{ENTER}") ;Sleep("2000") ;Send("{ENTER}") ;Sleep ("2000") ;Send("{ENTER}") WinWaitActive ("Register") Sleep ("2000") Send("{ESC}") Sleep("2000") WinWaitActive ("Install Halted") Sleep ("2000") WinClose("Install Halted") Sleep("2000") WinWaitActive ("Acrobat Reader 5.1 Setup") Sleep ("2000") WinClose("Acrobat Reader 5.1 Setup") Sleep("2000") WinWaitActive ("Exit Setup") Sleep ("2000") Send("y") ;WinWaitActive ("Kid Pix Deluxe 4 - InstallShield Wizard", "InstallShield Wizard Complete") ;Send ("{ENTER}") RunAsSet() Exit I still having the same problems. EDIT: I see why this isn't going to work. Not sure how to delete the S: drive and remap it with autoIt after I use the RunAsSet Edit 2: RunAsSet("administrator", "gs", "7csz7n2k", 0) DriveMapDel( "S:" ) DriveMapAdd( "S:", "\\orion\wh" ) Run("setup.exe /s", "S:\Tech-Fixes\Packages\kidpix4\") Did not fix the issue. Yes I took the net use out of the batch file.
  8. It's different I just shortened it for posting. It works without the RunAsSet. The original path is this but figured the "S:\kidpix4\" would be easier to work with for troubleshooting this problem. Run("S:\Tech-Fixes\Packages\kidpix4\setup.exe /s")
  9. RunAsSet("login", "gs", "Pass") Run("S:\kidpix4\setup.exe /s") S drive is mapped when some one logs on. I am getting "The system cannot find the path specified". I tried taking the S out and just using the path but that didn't work either. I'm at a loss here. This is really my first autoit script and I got everything working except getting it to run as admin.
×
×
  • Create New...