Jump to content

DaUberBird

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by DaUberBird

  1. Fun game. Computer (laptop) was unable to auto-aim because it was too slow. So... I ended up playing it by hand with no mouse. And beat it, only having to redo 4 levels. x-)
  2. After some looking at Windows XP exploits and etc I was able to make a script that created a service which ran a program. I was having trouble getting the thing to run something out of the System32 directory, so if the program is not in the system32 directory, it will create a shortcut to it that can be run. This will NOT work in guest accounts or limited accounts, so you can't hack your friend's computer =(. ; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: DaUberBird ; ; ---------------------------------------------------------------------------- ; Script Start - Add your code below here $filename =InputBox("System Run As", "Enter the name of the .exe you want to run.") $workindir =InputBox("System Run As", "Enter the name of the working directory it is in." & @LF & "(Leave blank if in system32 or in current directory)") If $workindir = "" Then _SystemServicesRun($filename) Else _SystemServicesRun($filename, $workindir) EndIf ;Runs a program at system level by creating a service and running it. ;When using don't put in a whole file path ;Examples: ;Running a command prompt at system level: _SystemServicesRun("cmd") ;Running C:\Documents and Settings\Username\Desktop\myexe.exe: _SystemServicesRun("myexe.exe", "C:\Documents and Settings\Username\Desktop) Func _SystemServicesRun($name, $workingdir = @ScriptDir) $systemfile = 0 ;Checks if file is in the working dir with no \ If FileExists($workingdir & "\" & $name) = 1 Then $filepath = $workingdir & "\" & $name $shortcutpath = @SystemDir & "\tmpshortcut.lnk" FileCreateShortcut($filepath, $shortcutpath) $name = "tmpshortcut.lnk" $systemfile = 0 Else ;Checks if file is in the working dir with a \ If FileExists($workingdir & $name) = 1 Then $filename = $workindir & $name $shortcutpath = @SystemDir & "\tmpshortcut.lnk" FileCreateShortcut($filepath, $shortcutpath) $name = "tmpshortcut.lnk" $systemfile = 0 Else ;If it is not in the dir w/ a "\" or w/out a "\" then it assumes it is in the system32 folder $systemfile = 1 EndIf EndIf ;creates a service called runsyslevel that runs the program $first = Run('sc.exe create runsyslevel' & $name & ' binpath= "cmd /C start ' & $name & '" type= own type= interact', "", @SW_HIDE) ProcessWaitClose($first) ;runs the service $second = Run("sc.exe start runsyslevel" & $name, "", @SW_HIDE) ProcessWaitClose($second) ;deletes the service $third = Run("sc.exe delete runsyslevel" & $name, "", @SW_HIDE) If $systemfile = 0 Then ;If a shortcut was created, delete it FileDelete($shortcutpath) EndIf EndFuncSystemLevelRun.au3
  3. It seems to just repeat the key, SendKeyDownDelay doesn't seem to work at all for me... I can test by running a script with sendkeydowndelay onto 5000 and send left down and it doesnt hold down left for 5 seconds
  4. That repeats the key, I don't want it to repeat, I want it to be held down.
  5. I haven't been able to find any real methods of holding a key down, I have seen stuff that just repeats the key, I tried like SendKeyDownDelay 5000 then Send("{LEFT down}") and it didn't hold down the left key for 5 seconds. Please help! Thanks! DaUberBird
×
×
  • Create New...