Code: Select all
OpenConsole()
*hwndConsole = GetForegroundWindow_()
Print("Console Window Handle = " + Str(*hwndConsole))
Input()
Code: Select all
OpenConsole()
*hwndConsole = GetForegroundWindow_()
Print("Console Window Handle = " + Str(*hwndConsole))
Input()
Code: Select all
ConTitle$ = Space(300)
If GetConsoleTitle_(@ConTitle$,300)
ConsoleHandle = FindWindow_(0,@ConTitle$)
EndIf
Code: Select all
Import ""
GetConsoleWindow()
EndImport
OpenConsole()
hwndConsole = GetConsoleWindow()
Print("Console Window Handle = " + Str(hwndConsole))
Input()
Thanks, but what the heck is Import "" ? I could not find any documentation about importing nothing.hallodri wrote:On win 2000,xp and vista can can you use GetConsoleWindow().
Code: Select all
Import "" GetConsoleWindow() EndImport OpenConsole() hwndConsole = GetConsoleWindow() Print("Console Window Handle = " + Str(hwndConsole)) Input()