c++ - Copy and paste Clipboard from different application -



c++ - Copy and paste Clipboard from different application -

i need re-create info 1 application , paste another.. or info clipboard somehow. know how send ctrl-r application , runs. want send ctrl-c nothing. have info in clipboard(after programme finishing still there) , seek paste info notepad. doesn't run too. found thinks on web, don't know how run it. ctrl-v writes v notepad.

this code have:

{ input refrk1; input refrk2; input refrk3; input refrk4; input inputs[2]; refrk1.type = 1; refrk1.ki.wvk = 0x11; refrk1.ki.wscan = 0; refrk1.ki.dwflags = 0; refrk1.ki.dwextrainfo = 0; refrk1.ki.time = 1; refrk2.type = 1; refrk2.ki.wvk =0x43; refrk2.ki.wscan = 0; refrk2.ki.dwflags = 0; refrk2.ki.dwextrainfo = 0; refrk2.ki.time = 0; refrk3.type = 1; refrk3.ki.wvk =0x56; refrk3.ki.wscan = 0; refrk3.ki.dwflags = 0; refrk3.ki.dwextrainfo = 0; refrk3.ki.time = 0; refrk4.type = 1; refrk4.ki.wvk =0x0d; refrk4.ki.wscan = 0; refrk4.ki.dwflags = 0; refrk4.ki.dwextrainfo = 0; refrk4.ki.time = 0; showwindow(hamidst, sw_shownormal); setforegroundwindow(hamidst); sendinput(2, inputs,sizeof(inputs[2])); refrk1.ki.dwflags = keyeventf_keyup; refrk2.ki.dwflags = keyeventf_keyup; inputs[0] = refrk1; inputs[1] = refrk2; sendinput(2, inputs,sizeof(inputs[2])); showwindow(hnote, sw_shownormal); setforegroundwindow(hnote); inputs[0] = refrk1; inputs[1] = refrk3; sendinput(2, inputs,sizeof(inputs[2])); sleep(10); refrk1.ki.dwflags = keyeventf_keyup; refrk3.ki.dwflags = keyeventf_keyup; inputs[1] = refrk1; inputs[0] = refrk3; sendinput(2, inputs,sizeof(inputs[2])); sendinput(1, &refrk4,sizeof(input)); refrk4.ki.dwflags = keyeventf_keyup; sendinput(1, &refrk4,sizeof(input)); showwindow(hamidst, sw_shownormal); setforegroundwindow(hamidst); }

ctrl-r , ctrl-c hotkeys in program. ctrl-c doesn't run. found need somehow command clipboard don't know how. not running. openclipboard etc. , need sending ctrl-c while hotkey in application , text not in window copies needed info clipboard.

the clipboard has api. application define, has transferred, e.g. text, bitmap, or else. need book or on-line tutorial.

c++ windows mfc

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -