Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTitleMatchMode, 2
- CoordMode, pixel, screen
- Coordmode, mouse, screen
- DetectHiddenWindows, On
- ; Hover over one of the windows
- ;SoundBeep, 750
- ToolTip, place mouse over the window you want to identify. press middle 'a', 0, 0
- ; press the middle mouse button to identify that window
- keywait, a, D
- keywait, a
- ;SoundBeep, 750
- ;SoundBeep, 750
- mousegetpos, w1mx, w1my, w1id
- ToolTip
- ; then get the window title from the id
- wingettitle, w1title, ahk_id %w1id%
- msgbox,0x1020, , This window's id and title are`nId:`t%w1id%`ntitle:`t%w1title%
- F2::
- Loop
- {
- ControlSend,, ahk_id %w1id%
- /*
- PixelGetColor, Color, 900, 200
- if Color=0x999999
- {
- ControlSend,,{F11},ahk_id %w1id%
- break
- }
- */
- }
- Return
- F10::Reload
- F12:: ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement