Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Towanda
4 discussion posts
Hi!

I found a script that helps me out very much and is the main reason I got DisplayFusion. After purchasing a license now I get the follwoing error message (translated from swedish, dunno why its in swedish. I have set language to Engliesh).

Compile Failed.
Line 1: A name area can not contain direct members as fields or methods
[System.Exception]

The script is the following:
scripet som lägger easy teams i focusläge och lägger på luren:
using System;
using System.Drawing;

public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
BFS.Window.Focus(BFS.Application.GetMainWindowByFile("*easy teams.exe"));

//send the H key.
BFS.Input.SendKeys("H");
}
}

easy teams.exe is highlighted in red text.

I would very much appreciate som help on why its suddenly invalid, It's worked the entire test period.

Also, is there a way to get a line in the jump list to execute this script?

Thanks in advance!
Jun 23, 2020  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you try exporting the script in the DF settings window and attaching it here so that I can test it out?

Thanks!
Jun 26, 2020  • #2
User Image
Towanda
4 discussion posts
Thanks! I removed the script since I found another one that worked. Tried now to and copied the old script back to DP and now the same script i posted works again...
Jun 26, 2020  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, glad to hear it!
Jun 26, 2020  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)