Solved

popup advertisements

Posted on 2004-04-22
5
313 Views
Last Modified: 2010-04-17
what i m trying to do is like a popup , which means , i will put a file into the user's computer , i will write it on my way
<!--
open url http://www.yahoo.com after 20 minutes
open url http://www.hotmail.com after 40 minutes
if Os = 2000 , 2003, or xp then
execute some code lines
--!>
but this script must be exe , no maro in which langage it must be.
and when the execution finishs , it must reload again
thanks
0
Comment
Question by:skynoc
5 Comments
 
LVL 28

Expert Comment

by:peakpeak
ID: 10890335
You're actually trying to plant an executable file on someone else's computer? (or execute something of YOUR choice on someone else's computer?)
That is exactly what virus writers (try to) do ....

Regards
Peter
0
 

Author Comment

by:skynoc
ID: 10891724
actually i m not planning to make a virus
but some advertisements for a local workgroup
i will install this file manually into each computer
that's all
it is a netcaffe
0
 
LVL 28

Expert Comment

by:peakpeak
ID: 10891758
Ok
0
 
LVL 2

Accepted Solution

by:
funvill earned 500 total points
ID: 10895983
In MFC its easy

in the OnInitDialog() function put your timers

      SetTimer(1, 1000*60*60*30, NULL); // 30 min
      SetTimer(2, 1000*60*60*60, NULL); // 60 min
      SetTimer(3, 1000*3, NULL); // 3 sec

int the OnTimer() function put your urls

      if( nIDEvent == 1 ) // every 30 min
      {
            ShellExecute(NULL, "open", "http://www.yahoo.com", NULL, NULL, SW_SHOWNORMAL);
      }
      else if ( nIDEvent == 2 ) // every 60 min
      {
            ShellExecute(NULL, "open", "http://www.hotmail.com", NULL, NULL, SW_SHOWNORMAL);
      }
      else if  ( nIDEvent == 3 ) // every 3 sec
      {
            ShellExecute(NULL, "open", "http://www.funvill.com", NULL, NULL, SW_SHOWNORMAL);
      }



Hope this helps.
0
 
LVL 8

Expert Comment

by:rajaloysious
ID: 10896464
VB is still easier as it is a RAD.
You can use timers.
Also the development time would be fast.
Use Shell command to execute anything you do from the command prompt.
Timer control is there for your use.

Also you will not get GPFs or any crashes especially if you are new to MFC.

VB is the best tool in my opinion. Thanks
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 86
word0 challenge 3 93
How does Google get such fast response times? 5 177
Controlled Assessment GCSE - desperate help needed 4 90
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question