Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 support #4

Open
BlueBeN82 opened this issue Feb 3, 2017 · 6 comments
Open

Windows 10 support #4

BlueBeN82 opened this issue Feb 3, 2017 · 6 comments

Comments

@BlueBeN82
Copy link

Windows are not moved in Windows 10. Fullscreen is not working as well.

Der Typ [Tomin.Tools.KioskMode.Enums.ShowWindowCommands] wurde nicht gefunden.
In C:\KioskMode\HelperFunctions.ps1:43 Zeichen:34
+ ... dow($window, [Tomin.Tools.KioskMode.Enums.ShowWindowCommands]::Restor ...
+                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Tomin.Tools.Kio...wWindowCommands:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Es ist nicht möglich, eine Methode für einen Ausdruck aufzurufen, der den NULL hat.
In C:\KioskMode\HelperFunctions.ps1:44 Zeichen:5
+     $Helpers::MoveToMonitor($window, $MonitorNum)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Es ist nicht möglich, eine Methode für einen Ausdruck aufzurufen, der den NULL hat.
In C:\KioskMode\HelperFunctions.ps1:45 Zeichen:5
+     $Helpers::SendKey($window, '{F11}')
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Any ideas how to fix this?

@Sysa
Copy link

Sysa commented Oct 26, 2017

Looks like we should fix it ourselves :)

@Sysa
Copy link

Sysa commented Oct 26, 2017

if you can use chrome, check this: https://github.com/ControlExpert/chrome-multiwindow-positioner
this is not really depends on platform you use.

@ThomasRunting
Copy link

ThomasRunting commented Nov 10, 2017

@Sysa Download the code and rebuild the sln on windows 10.
I just did that with vscode 2017 and it now works.
also change the target to 4.6.1

@SteveDevOps
Copy link

@ThomasRunting I did exactly that but still getting (rebuilt using vs 2017 and targeted 4.6.1) --
Add-Type: Could not load file or assembly 'file:///c:\kiosk-mode\Tomin.Tools.KioskMode.dll' or one of its dependencies

and then upon further inspection.. it can't find the type Tomin.Tools.KioskMode.WinApi
What am I missing?

@SteveDevOps
Copy link

@boonkim
Copy link

boonkim commented Apr 2, 2020

I try this and work for Windows 10

Step 1
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Step 2
Right Click Tomin.Tools.KioskMode.dll And Checked Unblock

Step 3
Create Short cut Like this
powershell.exe -noexit -ExecutionPolicy Bypass -File c:\Kiosk-Mode<your_file_name>.ps1

It work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants