Guest User

Untitled

a guest
Apr 28th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #NoTrayIcon
  2. ; Repetir entre los braces mientras que el variado WindowText no contiene el string "`n* Starting: Daytona USA "
  3. ; '`n' quiere decir nueva linea
  4. While !InStr(WindowText, "`n* Starting: Daytona USA ") {
  5. ; Coger el text del window
  6. ; "Game Daytona USA ahk_class #32770" dice al AutoHotkey que use la ventana que tenga el titulo "Game Daytona USA" Y sea del clase "#32770"
  7. WinGetText, WindowText, Game Daytona USA ahk_class #32770
  8. ; Espera un poco. Dismiñua ese numero para mejorar el precision del script
  9. Sleep 250 ; milliseconds
  10. }
  11. Run file
  12. Sleep 1000 ; cerrar autohotkey tras 1 segundo
  13. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment