This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Bug and Issues
 New Bugs
 Is Aliencore broken in Windows 10 ?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

TheMist

14 Posts

Posted - 03/28/2016 :  15:48:14  Show Profile
I've been using this script in windows7 with no problem.
But in win10 it makes mouse pointer to move really slow and windows dialog appears asking to close strokesplus.

aliencore = alien.core
kernel32 = aliencore.load("kernel32.dll")
-- Input Subst drive letter i.e. "P:"
-- Returns path of the Subst drive.
function QueryDosDevice(var)
local eev = kernel32.QueryDosDeviceA
eev:types{ ret = 'long', abi = 'stdcall', 'string', 'pointer', 'long' }
local buffer = aliencore.buffer(512)
eev(var, buffer, 512)
return tostring(buffer)
end

TheMist

14 Posts

Posted - 03/28/2016 :  16:20:58  Show Profile
Same problem for this script:

function Env(var)
local eev = kernel32.ExpandEnvironmentStringsA
eev:types{ ret = "long", abi = 'stdcall', "string", "pointer", "long" }
local buffer = aliencore.buffer(512)
eev("%" .. var .. "%", buffer, 512)
return tostring(buffer)
end
Go to Top of Page

Rob

USA
2615 Posts

Posted - 03/28/2016 :  16:23:42  Show Profile  Visit Rob's Homepage
Try version 2.8.4.4 out of curiosity. In 2.8.5, I moved the project to Visual Studio 2015 and recompiled, so there may be some other compiler-specific issues that arose.
Go to Top of Page

TheMist

14 Posts

Posted - 03/28/2016 :  16:36:27  Show Profile
Same for 2.8.4.4 :(
Go to Top of Page

TheMist

14 Posts

Posted - 03/28/2016 :  16:41:39  Show Profile
Test program on pascal I wrote works fine:

var
fp,drive: string;
begin
drive:= 'P:';
SetLength(fp,Max_Path+1);
SetLength(fp,QueryDosDevice(pchar(drive),pchar(fp),length(fp)));
WriteLn(PChar(fp));
end
Go to Top of Page

TheMist

14 Posts

Posted - 03/28/2016 :  18:07:39  Show Profile
Is it only me? Could somebody try this sample script?
It does not work for me on win10 64bit:

local alien = alien.core
local mb = alien.load("user32.dll")
local messagebox = mb.MessageBoxA
messagebox:types{ ret = 'long', abi = 'stdcall', 'long', 'pointer', 'string', 'long' }
test = "test"
messagebox(0, test, "test2", 0)

Edited by - TheMist on 03/28/2016 18:10:28
Go to Top of Page

Rob

USA
2615 Posts

Posted - 03/28/2016 :  18:43:00  Show Profile  Visit Rob's Homepage
Can confirm (64-bit also), it's all just crashing :(

The alien project seems to be pretty dead, so I'm not sure how to fix. The source code is very cryptic and even has some assembly code for 64bit...I wouldn't even know where to start in troubleshooting. I was just happy when it all compiled and worked, lol.

The new version of S+ won't be using Lua anymore, and I'm currently pouring all of my time and energy into developing it, so unfortunately this probably won't get fixed... I tried changing some of the compilation settings, but it still crashes every time.
Go to Top of Page

TheMist

14 Posts

Posted - 03/28/2016 :  18:55:45  Show Profile
The issue is not critical, I will find workaround.
Rob, thank you for putting your time in S+
Go to Top of Page

Rob

USA
2615 Posts

Posted - 03/28/2016 :  18:57:57  Show Profile  Visit Rob's Homepage
Well, acExpandEnvironmentString("%windir%") is a built-in action, if you need..
Go to Top of Page

nober

29 Posts

Posted - 09/06/2020 :  07:34:54  Show Profile
I have the opportunity of using Windows 10 recently, and would like to add that alien is partially but not totally broken in Win10.

The alien codes in this thread and the keyboard language detecting code on the forum do not work, but the following code still works in Win10.

		hideWindow = alien.core.load'user32.dll'.ShowWindow
		hideWindow:types{'int', 'int'}
		hideWindow(acGetForegroundWindow(), 'SW_HIDE')


The Chinese government probably used the above function on the outbreak earlier this year. :p
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000