danghoan83 Posted September 21, 2017 Share Posted September 21, 2017 (edited) 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 Edited September 21, 2017 by danghoan83 Link to comment Share on other sites More sharing options...
careca Posted September 21, 2017 Share Posted September 21, 2017 (edited) Use the class. Example: WinGetHandle("[CLASS:QWidget]") Edited September 21, 2017 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders 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. 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 Link to comment Share on other sites More sharing options...
danghoan83 Posted September 22, 2017 Author Share Posted September 22, 2017 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? Link to comment Share on other sites More sharing options...
careca Posted September 22, 2017 Share Posted September 22, 2017 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 Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders 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. 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 Link to comment Share on other sites More sharing options...
danghoan83 Posted September 23, 2017 Author Share Posted September 23, 2017 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 Link to comment Share on other sites More sharing options...
careca Posted September 23, 2017 Share Posted September 23, 2017 Can you show us the code you used? what did you use as the class? Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders 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. 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 Link to comment Share on other sites More sharing options...
danghoan83 Posted September 25, 2017 Author Share Posted September 25, 2017 (edited) 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 September 25, 2017 by danghoan83 Link to comment Share on other sites More sharing options...
careca Posted September 25, 2017 Share Posted September 25, 2017 (edited) 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 September 25, 2017 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now