{"action":"opened","issue":{"url":"https://api.github.com/repos/oblitum/Interception/issues/33","repository_url":"https://api.github.com/repos/oblitum/Interception","labels_url":"https://api.github.com/repos/oblitum/Interception/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/oblitum/Interception/issues/33/comments","events_url":"https://api.github.com/repos/oblitum/Interception/issues/33/events","html_url":"https://github.com/oblitum/Interception/issues/33","id":178066821,"number":33,"title":"On intercept open WPF window","user":{"login":"sandek","id":19905798,"avatar_url":"https://avatars.githubusercontent.com/u/19905798?v=3","gravatar_id":"","url":"https://api.github.com/users/sandek","html_url":"https://github.com/sandek","followers_url":"https://api.github.com/users/sandek/followers","following_url":"https://api.github.com/users/sandek/following{/other_user}","gists_url":"https://api.github.com/users/sandek/gists{/gist_id}","starred_url":"https://api.github.com/users/sandek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandek/subscriptions","organizations_url":"https://api.github.com/users/sandek/orgs","repos_url":"https://api.github.com/users/sandek/repos","events_url":"https://api.github.com/users/sandek/events{/privacy}","received_events_url":"https://api.github.com/users/sandek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T13:55:26Z","updated_at":"2016-09-20T13:55:26Z","closed_at":null,"body":"Hello,\r\n\r\nI have a small problem with interception, I don't know why, but if I run it with visual studio with debugger it works great, but if I run an exe interceptor, it is not working as it should.\r\n\r\nSo, on while I intercept, I am looking if a window is opened, and if it isn't, I start a program, make him active, and then write intercepted string.\r\n\r\nThe problem is, that  WPF window is not fully loaded, because  it acts differently if I start it with interceptor . exe\r\n\r\nI hope you can help me, I am dealing with this thing for a week now, but it seems I can't find a solution.\r\n\r\nI have even made i video, so that you can understand my problem.\r\n\r\nhttps://www.youtube.com/watch?v=weM4a8H6h6w&feature=youtu.be//\r\n\r\nBellow is my code. \r\n\r\nRegards!\r\n\r\n```\r\nwhile (interception_receive(context, device = interception_wait(context), &stroke, 1) > 0)\r\n\t{\r\n\t\tif (interception_is_keyboard(device))\r\n\t\t{\r\n\t\t\tInterceptionKeyStroke &keystroke = *(InterceptionKeyStroke *)&stroke;\r\n\r\n\t\t\tif (device == 1)\r\n\t\t\t{\t\tSleep(20);\t\r\n\t\t\t\tif (FindWindow(NULL, _T(\"MainWindow\") ) == NULL) {\r\n\t\t\t\t\tSleep(20);\t\r\n\t\t\t\t\t::SetForegroundWindow(FindWindow(NULL, _T(\"MainWindow\") ));\r\n\t\t\t\t\tSleep(5000);\r\n                                          // Here I am opening a shortcut named program in project folder, wich leads to my wpf program\r\n\t\t\t\t\tShellExecuteA(NULL, \"open\", \"C:\\\\project\\\\program\", NULL, NULL, SW_SHOW);\t\t\t\r\n\t\t\t\t\tSleep(2000);\r\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tsize_t length = interception_get_hardware_id(context, device, hardware_id, sizeof(hardware_id));\r\n\r\n\tinterception_send(context, device, &stroke, 1);\r\n\t\t\t\r\n\t}\r\n\t\r\n    interception_destroy_context(context);\t\r\n    return 0;\r\n\r\n```\r\n\r\n"}}
{"actor":{"display_login":"sandek"}}