Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for some help about toolbar
#2
> I'm wondering if QM toolbar elements can handle the select item in a program/window?

It depends on item type, and what info you want to get from it. If it is a file in a folder window and you want to get file path, it is possible. If it is an accessible object in some other window, you can see in the "Find accessible object" dialog all texts you can get from it.

example
Toolbar Toolbar2
Trigger !a"" "CabinetWClass"     Help - how to add the trigger to the macro
Code:
Copy      Help
Test :sub.Test

#sub Test m

;get file name
Acc a.FromFocus
str name=a.Name
out name

;get full path
int w=GetToolbarOwner(TriggerWindow)
Acc a1.Find(w "WINDOW" "Address: *" "class=ToolbarWindow32[]id=1001" 0x1005) ;;tested only on Windows 10
str folder=a1.Name; folder.remove(0 9)
out folder
str path.from(folder "\" name)
out path


Messages In This Thread
RE: Looking for some help about toolbar - by Gintaras - 02-23-2019, 05:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)