Page 8 of 10 FirstFirst 12345678910 LastLast
Results 71 to 80 of 99

Thread: DragonBTV's CarPC Plugins, Master Thread.

  1. #71
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Quote Originally Posted by dragonBTV
    because I don't know what user is going to do next: exit or back to FP

    for backing frontend, showtray will lost focus of the father (FP)
    If it looses focus, then why don't you just find the Frodo window and focus on it?

  2. #72
    Maximum Bitrate
    Join Date
    Sep 2004
    Posts
    637
    Quote Originally Posted by 0l33l
    If it looses focus, then why don't you just find the Frodo window and focus on it?
    by what code? please show me

    I know findwindow, what is next in delphi?

  3. #73
    Maximum Bitrate
    Join Date
    Sep 2004
    Posts
    637
    new FMplugin released,

    have a look at its skin
    Attached Images Attached Images  

  4. #74
    Maximum Bitrate
    Join Date
    Sep 2004
    Posts
    637
    new version is v2.1.1.99
    you can edit, add stations within it, as many statios as you like, total 8 preset can be easyly edited. also, time shift for 6 minutes, unlimited recording

  5. #75
    Low Bitrate
    Join Date
    Jul 2004
    Posts
    96
    plug in request..... MEMOS!!!! Something where you can record a memo, it adds that memo into database....it would be a memo like....."10:00 AM Dentist Appointment, 3:00 PM meeting with client, pick up eggs, bread, and milk from grocery store." You can add these memos using a mic. Then on that date that the memo is due.... when the program runs it looks through database of recorded memos and plays back the one for that date.

  6. #76
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Quote Originally Posted by dragonBTV
    by what code? please show me

    I know findwindow, what is next in delphi?
    Code:
    if UPPERCASE(title) = 'IGUIDANCE' then begin
     h := GetHandleFromWindowTitle(title);
     if h = 0 then begin
     h := FindWindowEx(FindWindowEx(FindWindow('ThunderRT6FormDC', ''), 0,
      'ThunderRT6PictureBoxDC', ''), 0, 'IntellinavWCls', 'iGuidance');
      BringFormToFront(FindWindow('ThunderRT6FormDC', ''));
      sleep(100);
     end;
     if h <> 0 then begin
     BringFormToFront(h);
     ForceForegroundWindow(h);
     end;
    end;
    function BringFormToFront(Handle: THandle): Boolean;
    const
      SPI_GETFOREGROUNDLOCKTIMEOUT = $2000;
      SPI_SETFOREGROUNDLOCKTIMEOUT = $2001;
    var
      FTID:    DWord;  // Foreground Thread ID
      TTID:    DWord;  // This Thread ID
      Timeout: DWord;
    begin
      if IsIconic(Handle) then ShowWindow(Handle, SW_RESTORE);
    
      if GetForegroundWindow() = Handle then
      begin
        // It is not necessary to continue
        Result := True;
        Exit;
      end;
    
      // Windows 98/2000 does not want to foreground a window when some other
      // windows have keyboard focus.
      if ((Win32Platform = VER_PLATFORM_WIN32_NT) and (Win32MajorVersion > 4)) or
         ((Win32Platform = VER_PLATFORM_WIN32_WINDOWS) and
         ((Win32MajorVersion > 4) or ((Win32MajorVersion = 4) and
         (Win32MinorVersion > 0)))) then
      begin
        Result := False;
        FTID   := GetWindowThreadProcessID(GetForegroundWindow(), nil);
        TTID   := GetWindowThreadProcessID(Handle, nil);
        if AttachThreadInput(TTID, FTID, True) then
        begin
          BringWindowToTop(Handle);  // IE 5.5 related hack
          SetForegroundWindow(Handle);
          //setactivewindow(Handle);
          AttachThreadInput(TTID, FTID, False);
          Result := (GetForegroundWindow() = Handle);
        end;
    
        if not Result then
        begin
          SystemParametersInfo(SPI_GETFOREGROUNDLOCKTIMEOUT, 0, @Timeout, 0);
          SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, TObject(0), SPIF_SENDCHANGE);
          BringWindowToTop(Handle);  // IE 5.5 related hack
          SetForegroundWindow(Handle);
          //setactivewindow(Handle);
          SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, TObject(Timeout), SPIF_SENDCHANGE);
        end;
      end
      else
      begin
        BringWindowToTop(Handle);  // IE 5.5 related hack
        SetForegroundWindow(Handle);
      end;
    
      Result := (GetForegroundWindow() = Handle);
    end;
    procedure ForceForegroundWindow(hwnd: THandle);
    var
      hlp: TForm;
    begin
      hlp := TForm.Create(nil);
      try
        hlp.BorderStyle := bsNone;
        hlp.SetBounds(0, 0, 1, 1);
        hlp.FormStyle := fsStayOnTop;
        hlp.Show;
        mouse_event(MOUSEEVENTF_ABSOLUTE or MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
        mouse_event(MOUSEEVENTF_ABSOLUTE or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
        SetForegroundWindow(hwnd);
      finally
        hlp.Free;
      end;
    end;
    My code for getting the embedded or nonembedded iGuidance or Routis. Modify it to find the Frodo window and that's it.

  7. #77
    Maximum Bitrate
    Join Date
    Sep 2004
    Posts
    637
    ok, get a try soon, thanks!

    hope delphi6 workable thinking of delphi7 because of its media component

  8. #78
    Maximum Bitrate
    Join Date
    Sep 2004
    Posts
    637
    Quote Originally Posted by tCoy
    plug in request..... MEMOS!!!! Something where you can record a memo, it adds that memo into database....it would be a memo like....."10:00 AM Dentist Appointment, 3:00 PM meeting with client, pick up eggs, bread, and milk from grocery store." You can add these memos using a mic. Then on that date that the memo is due.... when the program runs it looks through database of recorded memos and plays back the one for that date.
    MS's today

  9. #79
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Quote Originally Posted by dragonBTV
    ok, get a try soon, thanks!

    hope delphi6 workable thinking of delphi7 because of its media component
    All my software is in D7

    Hope you get it working. Finding the Frodo window isn't hard, you just have to gets its Class and use the Findwindow function.

  10. #80
    Maximum Bitrate
    Join Date
    Sep 2004
    Posts
    637
    skin of NEW plugin---------------------time and calender
    Attached Images Attached Images  

Similar Threads

  1. Replies: 3
    Last Post: 01-07-2004, 11:52 AM

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
  •