Pulover / PuloversMacroCreator

Automation Utility - Recorder & Script Generator
http://www.macrocreator.com
Other
1.66k stars 235 forks source link

No ControlClick recording for basic Windows Forms app #218

Open mihaifm opened 2 years ago

mihaifm commented 2 years ago

Hey, thanks for this great tool, it's really nice.

I noticed that recording ControlClick doesn't really work, even for a basic Windows Forms app. To replicate, create a Windows Forms app with Visual Studio, containing just a button. Enable "Record ControlClick", start recording. The control is not identified, only normal Click events with coordinates are generated:

Click, 88, 109 Left, , Down
Sleep, 93
Click, 87, 111 Left, , Up

The button is correctly identified if I use the Control (F4) window (althought oddly enough there is no ControlClick command there). It's just the recording that doesn't seem to identify it....or maybe I'm missing something.

mihaifm commented 2 years ago

Looks like there's an artificial restriction here

Don't fully understand what that does but if I remove the (InStr(m_Class, "#32") > 1) part, it works fine.