Title

Message

Confirm

Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< DiscussionsReply

Script just became invalid

Avatar from Gravatar.com
Towanda
2 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!
19 days ago  • #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!
16 days ago  • #2
Avatar from Gravatar.com
Towanda
2 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...
16 days ago  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, glad to hear it!
16 days ago  • #4
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply