Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the 'act' command
#7
Quote:PLUS: what does this mean? is this a suggestion?
No, ignore it.

Macro Macro8
Code:
Copy      Help
int w=win("Font" "#32770")
int c=id(1 w) ;;push button 'OK'

out

if(c=0) end "control not found"
act w
int t1(GetCurrentThreadId) t2(GetWindowThreadProcessId(c 0))
if(!AttachThreadInput(t1 t2 1)) end "AttachThreadInput failed." 16
int prevFocus=SetFocus(c)
AttachThreadInput(t1 t2 0)
out "previous focus:"
outw prevFocus
This macro activates a Font dialog and sets focus to its OK button. It is how act works. Does it fail? What error it shows? If does not fail, how it works when you replace the first 2 lines with a code that finds the Nota Bene window and control?


Messages In This Thread
the 'act' command - by [email protected] - 07-20-2018, 10:26 PM
RE: the 'act' command - by Kevin - 07-20-2018, 11:23 PM
RE: the 'act' command - by Gintaras - 07-21-2018, 04:42 AM
RE: the 'act' command - by [email protected] - 07-21-2018, 11:57 AM
RE: the 'act' command - by Gintaras - 07-21-2018, 12:39 PM
RE: the 'act' command - by [email protected] - 07-21-2018, 03:01 PM
RE: the 'act' command - by Gintaras - 07-21-2018, 03:51 PM
RE: the 'act' command - by Kevin - 07-24-2018, 07:01 PM
RE: the 'act' command - by Gintaras - 07-24-2018, 07:11 PM
RE: the 'act' command - by Kevin - 07-24-2018, 07:31 PM
RE: the 'act' command - by Gintaras - 07-24-2018, 07:43 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)