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

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 142
Joined: Fri Aug 15, 2008 8:58 am

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

Post by Diamen »

Code: Select all

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

Code: Select all

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

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post 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)

Offline
Posts: 142
Joined: Fri Aug 15, 2008 8:58 am

Post by Diamen »

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 »

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 »

yes, not work.

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

If you need ShellExecute, you can also use:

Code: Select all

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