Clicking a button in Windows 10

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Jerryth31
Newbie
Posts: 19
Joined: Wed Jun 18, 2008 6:03 pm

Clicking a button in Windows 10

Post by Jerryth31 » Wed Jan 03, 2018 11:38 pm

I understand this may be difficult to diagnose since I can't include a copy of our software (may be possible to share privately)
When I do the following using Calculator, there is no problem - everything works as expected.
However, with our software (written in Delphi), when I try to click a dialog button, nothing happens.
(This is part of the installer code)

Any ideas / suggestions?

Code: Select all

  UIPos>Intelli-MAX Software Setup,Cancel,ElemPos
  Separate>ElemPos,COMMA,ElemPosArray

  MouseMove>{%ElemPosArray_1%+10},{%ElemPosArray_2%+10}

// I have tried all of these - none work
  UIClick>Intelli-MAX Software Setup,Cancel,ElemPos
  LClick
  LDown  // Followed by LUp
  Press Enter

Jerryth31
Newbie
Posts: 19
Joined: Wed Jun 18, 2008 6:03 pm

Re: Clicking a button in Windows 10

Post by Jerryth31 » Thu Jan 04, 2018 8:14 pm

After further investigation, this Windows Security preventing from automating the installer.
Once the software is installed, then I can click buttons and everything is fine.

So I am stuck fighting the UAC.
Any suggestions?

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Clicking a button in Windows 10

Post by Marcus Tettmar » Tue Jan 09, 2018 9:57 am

If the software is running as Admin then only an admin level process will be able to interact with it, so you'll have to also run Macro Scheduler (or your compiled .exe) with admin privs. See:

http://help.mjtnet.com/article/11-contr ... n-as-admin
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts