Author |
Topic |
|
TheMist
14 Posts |
Posted - 03/28/2016 : 15:48:14
|
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
|
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 |
|
|
Rob
USA
2615 Posts |
Posted - 03/28/2016 : 16:23:42
|
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. |
|
|
TheMist
14 Posts |
Posted - 03/28/2016 : 16:36:27
|
Same for 2.8.4.4 :( |
|
|
TheMist
14 Posts |
Posted - 03/28/2016 : 16:41:39
|
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 |
|
|
TheMist
14 Posts |
Posted - 03/28/2016 : 18:07:39
|
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 |
|
|
Rob
USA
2615 Posts |
Posted - 03/28/2016 : 18:43:00
|
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.
|
|
|
TheMist
14 Posts |
Posted - 03/28/2016 : 18:55:45
|
The issue is not critical, I will find workaround. Rob, thank you for putting your time in S+ |
|
|
Rob
USA
2615 Posts |
Posted - 03/28/2016 : 18:57:57
|
Well, acExpandEnvironmentString("%windir%") is a built-in action, if you need.. |
|
|
nober
29 Posts |
Posted - 09/06/2020 : 07:34:54
|
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 |
|
|
|
Topic |
|
|
|