Page 1 of 1

AkelPad.Exec("osk.exe") not work

Posted: Mon May 22, 2017 5:42 pm
by Diamen

Code: Select all

AkelPad.Exec("osk.exe");
not work

Code: Select all

AkelPad.Exec("mspaint.exe");
work. no problem with ShellExecute

Posted: Mon May 22, 2017 6:13 pm
by Skif_off
Windows x64 + AkelPad x86? Then problem with File System Redirector (AkelPad.Exec is not ShellExecute function).
For osk.exe you can use "Shell.Application" object, try button

Code: Select all

"On-screen keyboard" Call("Scripts::Main", 1, "EvalCmd.js", `CreateObject("Shell.Application").ShellExecute("osk.exe", "", "", 1);` ) Icon(0)

Posted: Mon May 22, 2017 6:40 pm
by Diamen
I writed that ShellExecute work.
I use Win x64 and AkelPad x64.
MsPaint, in same folder that Osk, work.

Posted: Mon May 22, 2017 9:33 pm
by Skif_off
osk.exe is a strange file, I read about the problems (AutoIt): ShellExecute work, CreateProcess not work, but work with full path.
Have you tried

Code: Select all

AkelPad.Exec("%WinDir%\System32\osk.exe");
?

Posted: Mon May 22, 2017 9:34 pm
by Diamen
yes, not work.

Posted: Tue May 23, 2017 7:55 am
by Instructor
If you need ShellExecute, you can also use:

Code: Select all

AkelPad.Exec('rundll32.exe shell32,ShellExec_RunDLL "osk.exe"')