SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about VB!!!

    Had no clue where to put this post then decided I could put it here, as it is the board I most frequently...

    I am looking to develope a program in VB which does many things for you at once...with a few keyboard commands it launches certain programs...it answers your MSN messenges whenever if your status is set to whatever...

    It basically controls your system. Maybe a could example of this would be a VB macro? Does anyone have a clue how I can accomplish this?
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!

  2. #2
    Digital Warrior Renegade's Avatar
    Join Date
    Nov 2000
    Location
    Portland, OR
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would check out http://msdn.microsoft.com there are usually a lot of tips in there to help you out
    --There's my 1.5 cents, now where is my change!?!?

  3. #3
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ok...

    now what EXACTLY am I looking for on that site?!?!?!
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!

  4. #4
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The terms VB and macro are not synonymous with one another.

    Macros can be created with VBA (Visual Basic for Applications) which is a subset of VB and generally run within Office programs.

    VB is a full-blown, object oriented programming language like C++ or Java and can be used to create anything you can think of, but would be limited to the Windows platform.

    The project you described would be no small undertaking.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  5. #5
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ...

    I understand that...thank you!
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!

  6. #6
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    david,

    try searching for the various things on MSDN. They always have helpful tips in VB. Basically, it's goign to come down to intercepting things from other programs at window level, etc. I would honestly thing about using C++ in this instance.

    Basically, you have to search for all of your different situations, because there's nothing to cover all of them.

    Also, try to find freeware programs that do something along the same lines. Look at their source code if it's available.

    Hope this helps.
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  7. #7
    grasshoppa Snowbird122's Avatar
    Join Date
    Apr 2001
    Location
    Austin
    Posts
    353
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to control applications like msn messenger directly, these applications have to expose a programatic interface (API).

    Do a search on google for "msn messenger api". Here is a decent link:
    http://www.tek-tips.com/gviewthread..../611/qid/54083

    You can also open applications and transfer full control to them using the "shell open" command in VB.

    I hope this gave you a starting point. This sounds like a fun application you are writing. Let us know how it goes.
    http://www.echo-consulting.net - Sound Solutions for Online Inspriations.

  8. #8
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hehehehhe

    yes "fun" ...tehehehe
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!

  9. #9
    SitePoint Evangelist Umair.ms's Avatar
    Join Date
    Sep 2000
    Location
    Lahore, Pakistan
    Posts
    567
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think there is a SendKeys function that can be used to send keystrokes to an opened application.
    TinyPlanet.org
    Discuss and Debate World Events, Politics and Religion.
    Interact and Share your Views with People around the Globe.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •