Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 3 Jahren, 1 Monat
Letzter Beitrag:
vor 3 Jahren, 1 Monat
Beteiligte Autoren:
Curtis, Fabrice Harari

[WD20] Dashboard control - Restore Initial Configuration and Save As Image

Startbeitrag von Curtis am 12.05.2015 13:50

When right clicking an empty spot on a dashboard control, the AAF options include Restore Initial Configuration and Save As Image. How could I call these options from a menu button?

I can't find any functions or processes to call. The only thing I can think to do is always use DashSaveConfiguration on startup and then DashLoadConfiguration on the respective menu button press. For Save As Image...I could attempt to print screen at certain coordinates, but that would leave out all of the dash you have to scroll to which is saved when using the AAF option.

Antworten:

I'm trying to use SendKey() to right click on the dashboard and then left click save as image.

My button code is:

SendKey("{RIGHTBTN}",DASH_Analytics)
SendKey("{LEFTBTN,10,20}",DASH_Analytics)

But it doesn't seem to call the second line. If I comment the first line, the second line runs correctly.

EDIT: I got this to work. The documentation says that sendKey won't work properly if Windows UAC is enabled, but my testing with this line of code has worked with it turned on.

SendKey("{RIGHTBTN},{LEFTBTN,10,30}",DASH_Analytics)


von Curtis - am 13.05.2015 21:12
Hi Curtis

did you try executeAAF?

Best regards

von Fabrice Harari - am 14.05.2015 13:57
Don't know how I missed that. Thanks. Looks like they added aafSaveAs in version 20, but still nothing for restore initial configuration.

von Curtis - am 14.05.2015 14:07
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.