Jump to content
danghoan83

Help WinWaitActive() without the title of the window.

Recommended Posts

danghoan83

I have a window info like in the picture:
Without the title of the window.
Can you check out WinWaitActive ()?

$hWnd = WinWaitActive("")
If WinExists($hWnd) Then
  ConsoleWrite('Oke')
EndIf

 

hinh.png

Edited by danghoan83

Share this post


Link to post
Share on other sites
careca

Use the class.

Example:

WinGetHandle("[CLASS:QWidget]")

 

Edited by careca

Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites
danghoan83
16 hours ago, careca said:

Use the class.

Example:

WinGetHandle("[CLASS:QWidget]")

 

Can you elaborate more?
And I have a problem that you need help is:
BlockInput (1) locks both the mouse and the keyboard. I want the [ESC] button on the keyboard is not locked, how do?

Share this post


Link to post
Share on other sites
careca

There's not much to elaborate, you use the class like that, or like this.

WinWaitActive("[CLASS:Notepad]", "")

For you it'd be that string you got there in "class".

As for the mouse and kb block input, im not sure you can exclude one key from the kb input.

Maybe create another topic exclusive to that issue?


Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites
danghoan83
14 hours ago, careca said:

There's not much to elaborate, you use the class like that, or like this.

WinWaitActive("[CLASS:Notepad]", "")

For you it'd be that string you got there in "class".

As for the mouse and kb block input, im not sure you can exclude one key from the kb input.

Maybe create another topic exclusive to that issue?

Unfortunately it does not work. hic hic

Do you have any other way? help me :(

Share this post


Link to post
Share on other sites
careca

Can you show us the code you used? what did you use as the class?


Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites
danghoan83
On 23/9/2017 at 6:17 PM, careca said:

Can you show us the code you used? what did you use as the class?

#include <GUIConstantsEx.au3>
#include <GuiToolbar.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>

Opt ('WinTitleMatchMode', 4)
Example()
Func Example()
      WinWaitActive("[TITLE:;CLASS:Afx:ToolBar:9f0000:8:10003:10]","")
      ;WinWaitActive("[TITLE:;CLASS:QWidget]","")
      ConsoleWrite('OK')
   EndFunc

This is what I do. But nothing appears. hix hix

Edited by danghoan83

Share this post


Link to post
Share on other sites
careca

Mixed it up right there:

WinWaitActive("[CLASS:Afx:9f0000:8:10003:10 and the rest of the numbers in the class]")

Try that pls, not the advanced class, just the class on top in au3 info

Edited by careca

Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×