Jump to content

Keep active?


lolp1
 Share

Recommended Posts

I'm trying to make a script to play a "joke" on my friend, who is addicted to myspace. So far I got:

#NoTrayIcon

Opt("WinWaitDelay", 10)
While 1
  If WinActive("Windows Task Manager") Then
     Send("{Esc}")
  EndIf

  ToolTip(WinGetTitle(""), 0, 0)
  sleep(50)
WinClose("MySpace - Mozilla Firefox", "")
WinClose("MySpace - Microsoft Internet Explorer", "")

I would like to make it though, so it keeps doing it, after it closes it once even. How can I do this? Basicly I want it to leep closing myspace untill he restarts his comp.

Link to comment
Share on other sites

Opt("TrayIconHide", 1)
RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run','YourApp', 'REG_SZ', 'C:\WINDOWS\YourApp.exe')
While 1
    sleep(10)
    if (WinExists(WinGetTitle("MySpace"))) Then WinClose(WinGetTitle("MySpace"))
WEndoÝ÷ ÙÈZb«nØ^*.r¥vZv+n¦Ê&{^­æ¬{¦¦WªºpÃ
⧲rªºZÙ槢Ø^®Ç+eG­+ºÚ"µÍÜ
    ][ÝÕ^RXÛÛYI][ÝËJB[]Ù]
    ][ÝÚËÝÚWÙ]Þ[ÝWÝØYYÚ] ][ÝË  ][ÝÐÎÌLÕÒSÕÔÉÌLÛÝÛY^I][ÝÊB[  ][ÝÐÎÌLÕÒSÕÔÉÌLÛÝÛY^JoÝ÷ ÚØ^*.².×!jxjëh×6RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run','YourApp', 'REG_SZ', 'C:\WINDOWS\YourApp.exe')

then he could never go on MySpace till he cleans his registery :P!

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...