Click here to Skip to main content
15,905,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»6-May-10 19:21
professional«_Superman_»6-May-10 19:21 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
G Haranadh6-May-10 19:45
G Haranadh6-May-10 19:45 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»6-May-10 19:46
professional«_Superman_»6-May-10 19:46 
Questionhow to find out that there is a value in a subkey or not Pin
learningvisualc4-May-10 1:43
learningvisualc4-May-10 1:43 
AnswerRe: how to find out that there is a value in a subkey or not Pin
Richard MacCutchan4-May-10 1:48
mveRichard MacCutchan4-May-10 1:48 
GeneralRe: how to find out that there is a value in a subkey or not Pin
Michel Godfroid4-May-10 2:03
Michel Godfroid4-May-10 2:03 
GeneralRe: how to find out that there is a value in a subkey or not Pin
Richard MacCutchan4-May-10 2:31
mveRichard MacCutchan4-May-10 2:31 
Questionwindow state monitor service/daemon Pin
Ecodis3-May-10 22:44
Ecodis3-May-10 22:44 
Hi,

I need to automate three applications that run on a single server, and I was planning to use Powershell with the Windows automation snapin. All my powershell scripts that can do the automated input/keyboard strokes are ready. However I need to be able to detect when an application requests focus.

So I have three apps running all maximized, only one has focus at a time. When one of the apps is done doing some calculations and expects input it requests focus. If it's not the current app that has focus, it starts flashing in the taskbar (so the window does not come to the front automatically). It's this flashing that I need to detect, so that it triggers my powershell script to bring the app to the front, so that it can do the input of data in the window.

I was thinking this could be a simple commandline app, e.g.:

detectappfocus.exe "Notepad"

Which would detect all focus requests from all the windows that have 'notepad' in the titlebar.
If a window requests focus it could then simply output the full title bar name to the command line. Assuming notepad with test.txt open requests focus, followed a bit later by another notepad with test2.txt open:

detectappfocus.exe "Notepad"
test.txt - Notepad
test2.txt - Notepad

I'm not sure this is a hard thing to do? Or is there a standard method to do this?
Thank you for your feedback!

Best regards,
Jan
Questionhi... Pin
kamalilam3-May-10 21:31
kamalilam3-May-10 21:31 
AnswerRe: hi... Pin
Michel Godfroid3-May-10 21:53
Michel Godfroid3-May-10 21:53 
AnswerRe: hi... Pin
CPallini3-May-10 21:56
mveCPallini3-May-10 21:56 
GeneralRe: hi... Pin
Michel Godfroid3-May-10 22:23
Michel Godfroid3-May-10 22:23 
AnswerRe: hi... Pin
Rajesh R Subramanian3-May-10 22:34
professionalRajesh R Subramanian3-May-10 22:34 
GeneralRe: read excel data using vc++ Pin
kamalilam6-May-10 1:01
kamalilam6-May-10 1:01 
GeneralRe: read excel data using vc++ Pin
Rajesh R Subramanian6-May-10 2:18
professionalRajesh R Subramanian6-May-10 2:18 
AnswerRe: hi... Pin
lpfvip3-May-10 23:06
lpfvip3-May-10 23:06 
QuestionWhy did ParseDisplayName fail ? Pin
Thang3-May-10 20:40
Thang3-May-10 20:40 
AnswerRe: Why did ParseDisplayName fail ? Pin
Naveen3-May-10 22:05
Naveen3-May-10 22:05 
GeneralRe: Why did ParseDisplayName fail ? Pin
Michel Godfroid3-May-10 22:28
Michel Godfroid3-May-10 22:28 
AnswerRe: Why did ParseDisplayName fail ? Pin
Michel Godfroid3-May-10 22:18
Michel Godfroid3-May-10 22:18 
QuestionRe: Why did ParseDisplayName fail ? Pin
Randor 4-May-10 6:57
professional Randor 4-May-10 6:57 
QuestionHow To Restrict Dialog Box in an SDI to be With in Application Boundaries [modified] Pin
K ARUN KUMAR3-May-10 19:35
K ARUN KUMAR3-May-10 19:35 
AnswerRe: How To Restrict Dialog Box in an SDI to be With in Application Boundaries Pin
Richard MacCutchan3-May-10 22:38
mveRichard MacCutchan3-May-10 22:38 
GeneralRe: How To Restrict Dialog Box in an SDI to be With in Application Boundaries Pin
K ARUN KUMAR3-May-10 23:28
K ARUN KUMAR3-May-10 23:28 
GeneralRe: How To Restrict Dialog Box in an SDI to be With in Application Boundaries Pin
enhzflep3-May-10 23:58
enhzflep3-May-10 23:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.