English main discussion
Offline
Posts: 142 Joined: Fri Aug 15, 2008 8:58 am
Post
by Diamen » Mon May 22, 2017 5:42 pm
not work
work. no problem with ShellExecute
Offline
Posts: 1161 Joined: Sun Oct 20, 2013 11:44 am
Post
by Skif_off » Mon May 22, 2017 6:13 pm
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)
Offline
Posts: 142 Joined: Fri Aug 15, 2008 8:58 am
Post
by Diamen » Mon May 22, 2017 6:40 pm
I writed that ShellExecute work.
I use Win x64 and AkelPad x64.
MsPaint, in same folder that Osk, work.
Offline
Posts: 1161 Joined: Sun Oct 20, 2013 11:44 am
Post
by Skif_off » Mon May 22, 2017 9:33 pm
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");
?
Offline
Posts: 142 Joined: Fri Aug 15, 2008 8:58 am
Post
by Diamen » Mon May 22, 2017 9:34 pm
yes, not work.
Offline
Site Admin
Posts: 6311 Joined: Thu Jul 06, 2006 7:20 am
Post
by Instructor » Tue May 23, 2017 7:55 am
If you need ShellExecute, you can also use:
Code: Select all
AkelPad.Exec('rundll32.exe shell32,ShellExec_RunDLL "osk.exe"')