Buy Brownie Points
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Role Playing
Switch to Civil Discussion Role-Playing

Viewing a Post

volatus

Avatar: 80403 Sat Nov 01 01:34:28 -0400 2008
2

Level 25 Hacker

Quit stalking Oda and squawking like a pink monkey bird.

; Useful AutoIt script to compile and autorun on a migrated computer with broken keyboard/mouse
;  drivers that pops up a "Found new hardware" dialog before it installs the keyboard and mouse to
;  dismiss the wizard with

; Wait for the Found New Hardware dialog box to appear (waits up to 120 seconds for another to appear, then loops)
While WinWait("Found New Hardware Wizard", "", 120)

; Make it what we're clicking.
WinActivate("Found New Hardware Wizard")

; Make SURE the Found New Hardware wizard is what we're looking at, bootup is nasty
While WinActive("Found New Hardware Wizard")

	; No, we don't want to search Windows Update
	ControlClick("Found New Hardware Wizard","",8105)
	Sleep(100)
	Send("{ENTER}")
	Sleep(500)
	; Automatically search.
	Send("{ENTER}")
	Sleep(2000)
	; Does the damn thing want files? (Loops)
	While WinExists("Files Needed")
		; Common location for existing drivers
		Send("C:\Windows\System32\Drivers{Enter}")
		Sleep(1000)
		; Does it still want files?!
		While WinExists("Files Needed")
			; Try this place.
			Send("C:\Windows\System32{Enter}")
			Sleep(1000)
		WEnd
	WEnd
	; Finished or otherwise we do NOT want it to stay up there for the next loop.
	Send("{ESC}")
	Sleep(500)
WEnd

; Kill EVERYTHING.
WinKill("Insert")
WinKill("Files")
WinKill("Disk")
WinKill("Found New Hardware Wizard")

WEnd

volatus edited this message on 11/01/2008 3:49PM
Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!