User Profile

Collapse

Profile Sidebar

Collapse
Bullitt
Bullitt
Last Activity: Jun 26 '08, 11:20 AM
Joined: Dec 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Control video output by a simple vb application

    Hello,

    When i connect i beamer to my laptop, i don't want my complete screen the whole time, that's why I want to create a small .exe which I can control with a hotkey. The program must switch between sending the whole screen to the beamer and sending a simple .jpg.

    I know how to work with hotkeys, but I can't figure out a way how to control the video output. Is anybody who can help me with this or someone who knows...
    See more | Go to post

  • Try this, I'm not sure it is working, because this comes from a program that I made a long time ago. It is programmed in vb 6. Let me know if it works.

    Code:
    Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
    Private Const SWP_NOMOVE = &H2
    Private Const SWP_NOSIZE
    ...
    See more | Go to post

    Leave a comment:


  • Bullitt
    started a topic How to save as to a new file.

    How to save as to a new file.

    I have a program in visual basic 6 and there are some numbers that I want to save to a file. I have the common dialog now and I can type in a filename and extension, but this is not making the new file.

    So my question is, how can I make a file?

    Thanks already
    See more | Go to post

  • Bullitt
    started a topic put things in frame

    put things in frame

    Is it possible to put things like textboxes and labels in a frame. Because I placed all things already on my form, but now I want to use some frames, but the frame is always coming in front of the labels, so i want my labels and textboxes be part of the frame. Is this possible without copying all things.
    See more | Go to post

  • Bullitt
    replied to Print Screen to picture
    Ok, problem fixed, just 1 DoEvents in between and it worked like I was hoping.
    See more | Go to post

    Leave a comment:


  • Bullitt
    replied to Print Screen to picture
    Thanks for the help.

    Know I still have 1 small problem. I want to have the print screen without the form, so I hide the form just before I take the print screen, but the script is too fast, is it possible to wait until the form is really closed? I tried with frmblebleble.Vi sible but it looks like that parameter changes immediately when you do hide.
    See more | Go to post

    Leave a comment:


  • Bullitt
    replied to Print Screen to picture
    I was too fast with my post because now I see that SendKeys "{PRTSC}" isn't working. In API I can only find a way to take printscreen of a window, not of the whole screen.
    See more | Go to post

    Leave a comment:


  • Bullitt
    replied to Print Screen to picture
    I solved it this way.

    SendKeys "{PRTSC}"

    followed by

    imgPrintScreen. Picture = Clipboard.GetDa ta

    With imgPrintScreen the namen of the image on the screen.
    See more | Go to post

    Leave a comment:


  • Bullitt
    started a topic Print Screen to picture

    Print Screen to picture

    Is it possible to make a printscreen in scripting and let this printscreen come in a picture on the form?

    thanks
    See more | Go to post

  • i was too early with my question, I found the answer already on the techsmith website.

    http://download.techsm ith.com/snagit/docs/comserver/enu/snagitcom.pdf

    I tried to delete my question, but in edit/delete mode, I couldn't find the delete button and when I left the text empty, I had the error that it needs to contain 20 characters.

    So you may delete this if you want

    thanks
    See more | Go to post

    Leave a comment:


  • Bullitt
    started a topic interface between SnagIt 7.0.1 and VB6?

    interface between SnagIt 7.0.1 and VB6?

    Hello,

    I'm trying to capture text on the screen and immediately have it as text. I know that SnagIt could do this, but I want to automate it a bit and implent it in Visual Basic 6.

    So is it possible to send a command to SnagIt, for example 'Capture text in that region' and receive the text in a variable of VB6.

    I don't really think that this is possible, so does maybe someone else has an idea of how to...
    See more | Go to post

  • I'm using VB6. I used the API functionGetWind owText to have the text in the blue window bar.

    Now I want to put the window with that text in the foreground, but the API Function SetForeGroundWi ndow uses the long value of a window. I can get this with GetWindowLong.

    So a solution for my problem would be, getting the window long and window text, and check if the window text is the same as my text, and when it is, remember...
    See more | Go to post

    Leave a comment:


  • See if window is open on the hand of the window text

    Hello,

    How can I see if a window is open when I only have the window text.

    Greetings
    See more | Go to post

  • Bullitt
    replied to Keep form active?
    I got it all worked out now and it works.

    I got a module called modHotkey.bas that holds the following script:

    [CODE=vb]Option Explicit

    Private Declare Function RegisterHotKey Lib "user32" _
    (ByVal hwnd As Long, ByVal id As Long, _
    ByVal fsModifiers As Long, ByVal vk As Long) As Long
    Private Declare Function UnregisterHotKe y Lib "user32" _
    (ByVal...
    See more | Go to post
    Last edited by Killer42; Jan 10 '08, 12:37 AM. Reason: Changed CODE tags to CODE=vb

    Leave a comment:


  • Bullitt
    replied to Keep form active?
    Thanks for the tip, I'm going to try it with RegisterHotKey from the user32.dll.
    See more | Go to post

    Leave a comment:


  • Bullitt
    replied to Keep form active?
    It is VB6.0, and it doesn't need to be on top, but it needs to be active. Another inactive application may be on top.
    See more | Go to post

    Leave a comment:


  • Bullitt
    replied to Keep form active?
    It's because the script isn't noticing keypresses while it's inactive, and it would be handy if I can use the keyboard for navigating between different screens or applications. I can open other applications now, but I cant go back, except when using alt-tab. So it works but I can be improved.
    See more | Go to post

    Leave a comment:


  • Bullitt
    started a topic Keep form active?

    Keep form active?

    Hello,

    Is it possible to keep a form active, also when clicking on another application? I don't mean in the foreground, because I got that already, but now when I click on another application, my form becomes inactive.

    Already thanks for the help.
    See more | Go to post

  • Really thank you a lot, you're not only giving me the solution, but also explaining me in short what all things do.

    Thanks a lot!!!
    See more | Go to post

    Leave a comment:


  • I don't have any experience with that :-s, And I looked on google know but the first pages I found all used DoEvents with visual basic.Net. But is it also working in VB 6, because then I will continue my search.

    But s small other question, can I vb executable close another running executable, because otherwise a make a small exe with only the keypress and the code for closing the other program. And in the other program, I just start...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...