giuseppe105's Profile User Rating: -----

Reputation: 9 Worker
Group:
Active Members
Active Posts:
438 (0.2 per day)
Joined:
15-May 08
Profile Views:
4,424
Last Active:
User is offline Sep 04 2012 10:51 AM
Currently:
Offline

Previous Fields

Country:
CA
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Saturn
Dream Kudos:
0

Latest Visitors

Icon   giuseppe105 has not set their status

Posts I've Made

  1. In Topic: [Solved]paste stored data to different app

    Posted 3 Sep 2012

    Woooooooooooooooow. I cant believe my eyes.

    Your a GENIUS!

    This app is meant to be used in adobe reader.

    It looks like CTRL + d1 ~ 0 are for changing the view.
    But it beats losing Shift + D1 ~ 0

    Thanks a million for helping me skydriver.

    I was about to copy and paste a giant amount of code to use sendInput. that might not have even worked.

    +1+1+1+1+!
  2. In Topic: [Solved]paste stored data to different app

    Posted 3 Sep 2012

    I understand that there will be trouble if i use the send keys method.

    But send keys only works once. I need it to work every time i press the hotkey. I'm testing with notepad.

    Somewhere on the internet i read somthing about journal hooking but i have no idea what that is.

    Shkydriver can you show me a different method then sendKeys to press control + V.

    Iv tryed kbpress_event.

    and i cant understand sendInput.
  3. In Topic: [Solved]paste stored data to different app

    Posted 3 Sep 2012

    I replaced
    this.Handle
    
    with
    [DllImport("user32.dll")]
            public static extern IntPtr GetForegroundWindow();
    GetForegroundWindow()
    


    from reading around it said something about selecting a child context handler like the edit menu.

    Im so lost...
  4. In Topic: [Solved]paste stored data to different app

    Posted 3 Sep 2012

    Thank you for the post skydriver the hotkeys work perfectly fine its a problem with SendKeys. I have to find a different way to fire the paste event. I am trying SendMessage right now and im getting alot of trouble. I also found this project but i have no idea how to add a dll to my project.
    http://inputsimulator.codeplex.com/

    anyway this is my send message code.
    I added WM_PASTE to my Constants.cs
    private IntPtr holdme = ((IntPtr)0);
    
    SendMessage(this.Handle, Constants.WM_PASTE, holdme, holdme);
    
    [DllImport("user32.dll")]
            private static extern IntPtr SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
    


    Using this code does not paste the data from the clipboard to the notepad document

    holdme is just my lazy way to make an intPtr 0 MSDN said that WM_PASTE needed wParam and lParam to be 0
  5. In Topic: [Solved]paste stored data to different app

    Posted 3 Sep 2012

    EDIT AT BOTTOM

    Thank you for the post Skydriver. after I get the multi hot key working I'm going to attempt to use WM_PASTE that you mentioned.

    Yes the first reply to the curtis tutorial showed how to detect multiple hot keys but it doesn't work.

    here the code I'm using. most of it is copied.
    private Keys GetKey(IntPtr LParam)
            {
                return (Keys)((LParam.ToInt32()) >> 16);
            }
    
            private void HandleHotKey(int num)
            {
                if(num == 1)
                {
                    WriteLine("Hotkey 1 pressed!");
                    Clipboard.SetText(txtGhk1.Text);
                    SendKeys.Send("^V");
                }
                else if (num == 2)
                {
                    WriteLine("Hotkey 2 pressed!");
                    Clipboard.SetText(txtGhk2.Text);
                    SendKeys.Send("^V");
                }
            }
    
            protected override void WndProc(ref Message m)
            {
                if (m.Msg == Constants.WM_HOTKEY_MSG_ID)
                    switch (GetKey(m.LParam))
                    {
                        case Keys.D1:
                            HandleHotKey(1);
                            break;
                        case Keys.D0:
                            HandleHotKey(2);
                            break;
                    }
                base.WndProc(ref m);
            }
    


    The first hot key works but the second one wont work. Any Ideas?

    Sorry guys i made a horrible mistake. Due to lack any number of excuses i forgot to register and unregister the second hot key.

    Now lets see if i can figure out how to use WM_PASTE i think it might solve the only being able to use the hot key once problem.

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
CANADA MUAHHAHAHAHA
Interests:
I like computers I like just sitting in front of a computer it just makes me happy back in the days when I had dial up I would sit in front of the computer for hours at a time waiting for my downloads to finish. I still do it today when downloading and when installing or loading stuff :D<br /><br />I LIKE GAMEZZZZZ OLD SCHOOL GAMEZ the EPICZZZ<br />1.Phantasy star 4 SEGA!!!!<br />2.Shining Force series SEGA!<br />3.Summon Knight sword craft series!<br />4.ALL MEGAMAN GAMES!<br />5.METROID ALL OF EM!<br /><br />I ALSO LIKE ANIME!!!!!!<br />I could name off like 100
Years Programming:
3
Programming Languages:
I have learned VB6
I am learning java

Contact Information

E-mail:
Private
AIM:
AIM  dont have one
MSN:
MSN  Sanyo
Website URL:
Website URL  http://giuseppewebsite.googlepages.com/
Yahoo:
Yahoo  DONT HAVE ONE
Xfire:
giuseppe105

Friends

giuseppe105 hasn't added any friends yet.

Comments

giuseppe105 has no profile comments yet. Why not say hello?