Results 1 to 6 of 6

Thread: Invisible app... Forgot how

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    Invisible app... Forgot how

    I used to be able to make a program besides mines invisible and visible again . I forgot how. I know it needs to send API calls and stuff but what exactly can someone tel lme how to make my windows calculater app invisible.
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    Yash_Kumar
    Guest
    Code:
    Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
    
    
    Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Long) As Long
    
    Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    
        Public Const WM_CLOSE = &H10
        Public Const SW_HIDE = 0
        Public Const SW_MAXIMIZE = 3
        Public Const SW_SHOW = 5
        Public Const SW_MINIMIZE = 6
    
    
    Sub WindowHandle(Hwnd as Long,cas as long)
        'by storm
        'Case 0 = CloseWindow
        'Case 1 = Show Win
        'Case 2 = Hide Win
        'Case 3 = Max Win
        'Case 4 = Min Win
    
    
        Select Case cas
            Case 0:
            Dim X%
            X% = SendMessage(Hwnd , WM_CLOSE, 0, 0)
            Case 1:
            X = ShowWindow(Hwnd , SW_SHOW)
            Case 2:
            X = ShowWindow(Hwnd , SW_HIDE)
            Case 3:
            X = ShowWindow(Hwnd , SW_MAXIMIZE)
            Case 4:
            X = ShowWindow(Hwnd , SW_MINIMIZE)
        End Select
    End Sub

  3. #3

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    ok great but how do i find the windows HWND cant i seearch it by name (title)
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    2.  
    3. hwnd = FindWindow(vbNullString,"Some App's Title")

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    Thanks man you seem to help whenever someone needs it i hope you get rich lol
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by JasonLpz
    i hope you get rich lol
    That makes two of us.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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