Results 1 to 2 of 2

Thread: QT Output Text

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    11
    Thanks
    6

    Default QT Output Text

    in qt can i output text onto anouther window eg inserting a url or something like that with qt and if i can how does it work???through emulators or virtual drives. im only asking this bc im trying to make a simple bot for a game....

  2. #2
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT Output Text

    Hello friend, use:
    Qt Code:
    1. PostMessage(handle, WM_CHAR, 'a', 0); // this send a to handle window
    To copy to clipboard, switch view to plain text mode 

    Complete with HWND handle:

    Qt Code:
    1. #include "windows.h"
    2.  
    3. HWND handle = FindWindow(NULL, L"Tibia");
    4. PostMessage(handle, WM_CHAR, 'u', 0);
    To copy to clipboard, switch view to plain text mode 

    Change Tibia for your window name.
    Last edited by mizim; 7th August 2012 at 16:20. Reason: updated contents

Similar Threads

  1. Display an output buffer (text stream) in QWidget
    By nomiz in forum Qt Programming
    Replies: 8
    Last Post: 30th June 2011, 09:44
  2. I don't get expected output in text browser
    By NewLegend in forum Qt Programming
    Replies: 14
    Last Post: 25th July 2010, 09:21
  3. Replies: 3
    Last Post: 13th December 2007, 16:10
  4. output while executing should be redirected to text file
    By AnithaRagupathy in forum Qt Programming
    Replies: 3
    Last Post: 13th October 2007, 10:33
  5. Replies: 52
    Last Post: 10th December 2006, 14:32

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
  •  
Qt is a trademark of The Qt Company.