IronAHK (alpha): cross platform .NET rewrite of AutoHotkey
IA under Ubuntu runned from MonoDevelop
I get this error
Could not execute: Diesem Objekt ist kein Prozess zugeordnet.
(this object has no process)
<german>runas didn't work
I get this error
Could not execute: Diesem Objekt ist kein Prozess zugeordnet.
(this object has no process)
Sorry aber das macht keinen Sinn :?
RunAs setzt berechtigungen, führt aber selber nichts aus. Dieser Fehler kommt sicher nicht von einem RunAs Command, sondern wenn ein Run auf eine Datei ausgeführt wird, deren Endung dem OS nicht bekannt ist.
</german>
Please post your Source that we can reproduce the exception. Thanks
EDIT:
Ah I got it by myself:
RunAs, User, 1234 Run, C:\test.txt
This works with IronAHK, a cmd opens.Run, C:\Windows\system32\cmd.EXE
This results in above error message.RunAs, myUsername, myPassword
Run, C:\Windows\system32\cmd.EXE
Same script works with original Autohotkey
The problem was, that IA uses UseShellExecute = true by default. This is not allowed when User/Pass are given, so I had to disable it after StartInfo is configured:
if(prc.StartInfo.UserName != null || prc.StartInfo.Domain != null) { prc.StartInfo.UseShellExecute = false; }
Fix: Fixed Run when user/pass is set by RunAs
Edit: Fixed Code
Well I found the error and fixed it in my branch
Did you release binaries?
if(prc.StartInfo.UserName != null || prc.StartInfo.UserName != null) { prc.StartInfo.UseShellExecute = false; }
That makes no sense.
Do you mean something like
prc.StartInfo.UserName != null || prc.StartInfo.Domain != null?
Indeed! :lol: Holy crap.That makes no sense.
Well, actually the development cycle is kind of first merging foregin forks (like mine) into the main branch of Poly and then he releases binaries.Did you release binaries?
But if you like I can provide a Nightbuild of my current branch. There are many of non merged fixes & new features like Input/KeyWait Command, and some testing would be apreciated
Well, actually the development cycle is kind of first merging foregin forks (like mine) into the main branch of Poly and then he releases binaries.
ok, found IronAHK only accidently and didn't look through the hole thread.
But if you like I can provide a Nightbuild of my current branch. There are many of non merged fixes & new features like Input/KeyWait Command, and some testing would be apreciated
Yeah, would be nice.
<!-- m -->http://dl.securityvi....ch/IronAHK/bin<!-- m -->
I've created a minimal DL page for my current builds:
<!-- m -->http://dl.securityvi....ch/IronAHK/bin<!-- m -->
Works, but found another bug :-)
Run, ""c:\windows\system32\cmd.exe""If you run it directly from IronAHK it gives correct error, else it crashes.
Would be nice if compiled exe reports the exception same way like interpreted version.
Meanwhile, I've found another strange behavior:
msgbox %errorlevel% ;--> didn't work (errorlevel can't be looked up) msgbox % errorlevel ; --> returns correct errorlevelJust in Expression Mode, errorlevel is resolved correctly, so I'll try to fix that too.
Edit:
The lookup from Errorlevel failed because it was assumed that reserved Properties have a Prefix of A_, so Errorlevel wasn't found. I removed that check now.
That's very disappointing imo =(
IronAHK in an OOP way would be perfect.
please tell me that the information was wrong! pleeeeease! =P