Results 1 to 6 of 6

Thread: [VB/API] - Flash Window

  1. #1

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    [VB/API] - Flash Window

    VB Code:
    1. 'This project needs a timer,Interval 1000
    2.  
    3. 'In general section
    4. Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
    5. Const Invert = 1
    6.  
    7. Private Sub Timer1_Timer()
    8. FlashWindow Me.hwnd, Invert
    9. End Sub

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    omg you just copied that straight off api-guide, but you removed some comments from it. here is the api-guide version:

    VB Code:
    1. 'This project needs a timer,Interval 1000
    2.  
    3. 'In general section
    4. Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
    5. Const Invert = 1
    6.  
    7. Private Sub Timer1_Timer()
    8.     'KPD-Team 1998
    9.     'URL: [url]http://www.allapi.net/[/url]
    10.     'E-Mail: [email][email protected][/email]
    11.  
    12.     'Flash the window
    13.     FlashWindow Me.hwnd, Invert
    14. End Sub
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    So? I took that code from AllAPI a while back, i always take the comments out my VB code editor. Then when i put it back in notepad it gets saved without the comments. Geez, whats the problem!

    You will find most my other recent submissions from AllAPI

  4. #4
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    the problem is more like 'copying and pasting code without telling them who made it.'

    even if it isn't a problem, the people can search api-guide by themselves, you don't need to copy their code onto here. the code-bank is really for 'innovative' or 'really useful' code, not code that you just ripped out of another code-bank program
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  5. #5

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Do you actually know how many people post code here that isnt already duplicated? Although the link to the site is in my sig, not many people may be aware of the code. Ive seen tons of code copied from other sites here, with author name and stuff taken out. Not all my code is copied, but eh - im just sharing. Otherwise next time i'll just make my signature links extra huge and bold

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by Madboy
    extra huge and bold
    and annoying...


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

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



Click Here to Expand Forum to Full Width