User Profile

Collapse

Profile Sidebar

Collapse
Martin2007
Martin2007
Last Activity: Sep 7 '07, 09:11 AM
Joined: Jul 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Martin2007
    replied to Balloons in Word
    If you are using VB.net then can you not just add a tool tip, which will do all this for you? Tho i think it will only allow text to appear as the balloon?...
    See more | Go to post

    Leave a comment:


  • Just had a really quick look at Outlook, you can create a custom tool bar, then using vb, design yourself a nice window, with a replace "something" textbox with "something else" text box... behind that form you could then put all the code mentioned above... then add a button to the custom menu to launch your new form...

    Just thinking outloud, I wouldnt know how to do this, but just looking quickly into it I think...
    See more | Go to post

    Leave a comment:


  • Martin2007
    replied to Odd, Even
    I wasn't going to tell him exactly that as it is a homework task... but yes, that is what I had spotted....
    See more | Go to post

    Leave a comment:


  • Martin2007
    replied to Odd, Even
    [CODE=vb] Else = "This is an odd number" & Var1
    [/CODE]


    The code fragment I have highlighted is where I think the problem is.... is this a school project, if so then I cannot really help you any more than to point you in the right direction :-)
    See more | Go to post

    Leave a comment:


  • Surely any program you have running will be killed when you restart the pc...? So your code won't be running even if you could send ctrl-alt-del?...
    See more | Go to post

    Leave a comment:


  • So it is a directory then.... try

    Code:
    Process.Start("C:\Windows\Regedit.exe", "/e C:\Joy.xxx \HKEY_LOCAL_MACHINE\SOFTWARE\Aberlink 3D\")
    To be honest i have never used the function that you are using, but I have used command line args, and when passing a directory I found that you had to pass the full name with the final "\".

    Report back, this is annoying me, tho...
    See more | Go to post

    Leave a comment:


  • Martin2007
    replied to jumping to another line
    Code:
    If .WaitForEvent rcEnterPos, "30", "0", 6, 53 = SomeReturnValue Then
    .TransmitTerminalkey rcIBMNewLineKey
    .TransmitANSI "dd"
    .TransmitTerminalkey rcIBMEnterKey
    .WaitForEvent rcKbdEnabled "30", "0", 1, 1
    .WaitForEvent rcEnterPos, "30", "0", 7, 2
    .TransmitTerminalkey rcIBMHomeKey
    .TransmitANSI "bottom"
    .TransmitTerminalkey
    ...
    See more | Go to post

    Leave a comment:


  • Martin2007
    replied to How to handle keypress in VB.NET
    in .NET
    Yep looks like you have the idea... I said in my post that the code handled text box presses, but what you have written will allow for keypresses on whole form.

    You can use any number in brackets for a keycode, there are lists of what the values are online, I think there is one in MSDN if you just search "keycodes"

    Glad I could help!

    Martin
    See more | Go to post

    Leave a comment:


  • Martin2007
    replied to How to handle keypress in VB.NET
    in .NET
    Hey, VB8 is another name for VB 2005... there is a good page about it on wikipedia... just wiki VB 2005.

    In response to ur comment, yes there is a Keypress equivalent....

    The following code will capture a keypress and then use the keycodes to determine which key was pressed... in this case check for the enter key...

    Code:
    Private Sub TextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
    ...
    See more | Go to post

    Leave a comment:


  • The argument you are using, is it a file? If it is a file you will need the full file extension...

    also have you tried typing exactly what you have in the string into the command prompt...?

    I managed to get this working, with the space, but it is using a txt file not a directory, hope this helps.

    Code:
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
    ...
    See more | Go to post

    Leave a comment:


  • API control, force focus onto non-visible application

    Hi,

    I'm using VB Express 2005, I'm wondering if there is any way to force the focus onto an application that is running but not visible (i.e. using an API call)?

    Any code in VB.net would be appreciated... I have already posted this in the VB forum but was told to post here as it is an API issue...

    Thanks in advance!
    See more | Go to post

  • Sorry for the report...

    The code above does work fine... some of the time... that is the problem which I have been trying to communicate to you.

    back to my original question.... can you use the API to force the focus onto an application while it is not visible... that is all i ask... thanks.....
    See more | Go to post

    Leave a comment:


  • If you use the publish option in VB express 2005 you can package the file exe with all it's dependencies, so i do not think that this is the issue, if the setup installed properly (didnt throw an error saying that dependencies could not be found) then the pc you have installed on will have the pre-requisits...

    Maybe it is something to do with windows hiding file extensions (i've had that problem before) i.e. you save as text.txt but...
    See more | Go to post

    Leave a comment:


  • I dont think you understand me... i will try to be clear.

    My application is visible, and allways needs to be...

    I need to send commands to a second application to make it do something...

    The second application (not my own) needs to be hidden from view, it just needs to run then close (which it will do)...

    Basically i need to open the other application, send it a sequency of keystrokes, then...
    See more | Go to post

    Leave a comment:


  • Hey, I'm not too familiar with VB6, but i think that the statement
    Code:
     If textbox4.Text < " 100" Then
    is the problem...

    You are asking if a string is less than another string... which if you think about it, doesnt really make sense.

    If you are trying to find if the number entered into the textbox4 is less than 400, then you need to parse the text as an integer or a double... in vb.net this would be
    ...
    See more | Go to post

    Leave a comment:


  • i'm a little new to this, so i'm not sure I understand... but i will try.

    my application does not need any event handling from the other application, it just needs to set it running, which i think u say means it can be invisible?

    the idea is that the user does not press any keys while the other application is launched, and once it has started to execute the other application will not respond to keypresses anyway. Basically...
    See more | Go to post

    Leave a comment:


  • Hi, if you are trying to check that the text box contains the string 100, u need the quotation marks...
    i.e. if textbox.Text = "100".

    If you are trying to check if it is a number you will need to parse the string to a number. (in this case integer)

    i.e. Integer.Parse(T extBox.Text)

    note.. this is for VB.net

    Also you would need stirng notation around te text you are trying...
    See more | Go to post

    Leave a comment:


  • Thanks for all the replies...

    I'm trying to control a second application from my own VB 2005 project... In an ideal world i would like it to happen all in the background.

    Basically i create a new instance of an applicaiton, use sendkeys to make it open a new command file, then again to force it to execute the command file, however when it opens it can often lose focus, so i wanted a call (i thought to the api) to ensure...
    See more | Go to post
    Last edited by Martin2007; Jul 26 '07, 08:13 AM. Reason: code mistake

    Leave a comment:


  • Martin2007
    started a topic Using API to set focus to application

    Using API to set focus to application

    Hi,

    I'm trying to use SendKeys to control an application, however it keeps losing focus when i call it, cuold anyone tell me how to set the focus to the window using the API?

    Cheers

    (Visual Basic 2005 Express)
    See more | Go to post

  • Martin2007
    started a topic Application Control Issues

    Application Control Issues

    HI, I'm fairly new to VB.net and am trying to write an application that controls another.

    Basically at the moment I'm using the SendKeys function to control it as the external application has no command line controls. I was trying to find out if there is a way to send the keystrokes to the application while keeping it hidden, i.e. using some API call or something to focus to it?

    Also I would like to close the application...
    See more | Go to post
No activity results to display
Show More
Working...