Jump to content

StickyChopstix

Members
  • Posts

    11
  • Joined

  • Last visited

StickyChopstix's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. ah, okay, I see what my problem was. I forgot to add those " " in-between the IPs and the " /c " and #requireadmin. Thanks @Subz
  2. the "netsh interface ipv4 set address" command doesn't work if the IP is set in quotes
  3. $ipchange = 'netsh interface ipv4 set address "Local Area Connection" static ' $one = 192.168.1.124 $two = 255.255.255.0 $three = 192.168.1.1 Run(@ComSpec & $ipchange & $one & $two & $three) how would I go about using ip addresses in variables without using quotes?
  4. In that case, I suppose I can work around it by having scripts on each user check for X every 10 minutes (usually how long it takes to finish cleaning up the db), and restart it if process doesn't exist. That just leaves the problem of killing all processes named X for every user. EDIT: I suppose I don't need AutoIt to do these do I? Would a .bat file be able to do the job?
  5. When X program has issues, I may have to run a db file (that X will be using) through a cleaner program, but I can't modify the db while it's in use. Naturally, I have to close X in order to clean up the db and then restart it after I'm done.
  6. I'm using a server and basically I want to kill all processes named X for every user that has it open and then start the process again at a later time in my script but only for users that had it open in the first place.
  7. Ah thanks a lot. @scriptdir was EXACTLY what I was looking for. It couldn't find it in the directory macros so I gave up looking for those.
  8. Have you tried working with other window information that you can grab from the "AutIt v3 Window Info" tool? Or Controls information?
  9. Not sure if this will help at all but for things like this I like to use the INIWRITE/INIREAD function in autoit. Also about the admin password thing. If you don't want people finding out your admin password by looking at your script you could encrypt it with _StringEncrypt
  10. It looks like you are trying to make a bot for your game. You may want to try getting a bypass for the anti-hack your game uses. That's the only thing I can think of that is stopping you. If your game has nothing to with anti-hacks or bots then it is probably the permissions.
  11. #include <String.au3> If FileExists("settings.ini") Then Call("wmccheck") Else $user = InputBox("Security Check", "Enter your username.", "") $user2 = _StringEncrypt(1, $user, "123", 1) ;IniWrite("settings.ini", "login", "Username", $user2) $pass = InputBox("Security Check", "Enter your password.", "", "*") $pass2 = _StringEncrypt(1, $pass, "456", 1) ;IniWrite("settings.ini", "login", "Password", $pass2) $wmc = FileOpenDialog("Choose File...", @MyDocumentsDir, "Windows Mouse Capture (*.exe)", 1) If @error Then Exit ;Else ; IniWrite("settings.ini", "files", "WMC", $wmc) EndIf $ace = FileOpenDialog("Choose File...", @ProgramFilesDir, "ACE Online (ACEonline.exe)", 1) If @error Then Exit ;Else ; IniWrite("settings.ini", "files", "ACE", $ace) EndIf Call("writeini") Call("wmccheck") EndIf Func writeini() IniWrite("settings.ini", "login", "Username", $user2) IniWrite("settings.ini", "login", "Password", $pass2) IniWrite("settings.ini", "files", "WMC", $wmc) IniWrite("settings.ini", "files", "ACE", $ace) EndFunc The only thing I want it to do here is write the settings.ini files into the same directory as the exe. But it always write into the $ace directory. Why does this happen?
×
×
  • Create New...