I'm back to an old blunder Ive never figured out how to deal with Class NN?, I'm trying to activate some GUI buttons and fields in a 3rd party program and avoiding mouse moves, delays, clicks, etc. I'll be using this repetitively for building other variables.
Any ideas how I can streamline the current code? This is how the GUI appears after pressing F7.
I'm trying to engage the Class NN and ahk_class as detailed in the png.
However, I cant seem to activate and likely missing some key steps. Maybe there is another way to skin this nasty cat?
[/code]
Code: Select all
; For testing Copy and pasting
;ClassNN: EPListWnd1
;ClassNN: eRADTextInputWindow1
;ahk_class EPFloatingWindow
;ClassNN: eRADButtonWindow3 ;Copy to clipboard button
;ClassNN: eRADButtonWindow1 ;close button
Code: Select all
F11::
BlockInput, MouseMove
Send, {F7} ;USED in Program to load the GUI
Sleep, 200
WinGetPos, X, Y,,, ahk_class EPFloatingWindow ;This is the ahk_class for the floating window I want.
Coordmode, Mouse, Screen
Click, % X + 100 "," Y + 63
sleep, 50
Sendinput, (0028,0030) ;This is the Pixel Spacing filed I want to eventually copy data to clipboard.
Sleep, 550
Click, % X + 124 "," Y + 132
sleep, 50
Click, % X + 250 "," Y + 420
Sleep, 550
PS := Clipboard
PixelSpace := SubStr(PS,27,8)
Tooltip, % PixelSpace
SetTimer, RemoveToolTip, -1000
Click, % X + 720 "," Y + 11 ;Click X box to close
BlockInput, MouseMoveOff
Return