IDA main hwnd 1234

Hi, in 6.9 we could do the following to get the hwnd to the editor window

void __stdcall SetFocusSelectLine(void){ 
	HWND ida = (HWND)callui(ui_get_hwnd).vptr;   //todo IDA7
	SetForegroundWindow(ida);	//make ida window active and send HOME+ SHIFT+END keys to select the current line
	keybd_event(VK_HOME,0x4F,KEYEVENTF_EXTENDEDKEY | 0,0);
	keybd_event(VK_HOME,0x4F,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
	keybd_event(VK_SHIFT,0x2A,0,0);
	keybd_event(VK_END,0x4F,KEYEVENTF_EXTENDEDKEY | 0,0);
	keybd_event(VK_END,0x4F,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
	keybd_event(VK_SHIFT,0x2A,KEYEVENTF_KEYUP,0);
}

is anything like this still available at all? seems to have been changed in 7 i never found a replacement.

Win32 handles are not really useful in Qt programs since Qt does its own rendering and event processing. I’d recommend porting your code to Qt concepts.