| View previous topic :: View next topic |
| Author |
Message |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Mon May 03, 2010 11:09 am Post subject: |
|
|
| fragman wrote: | | I read about that method before, but the problem is that I can't do that with ahk. | Do you mean you can't create a task from within AutoHotkey? I suppose you could Run Schtasks.exe...
| Quote: | | Maybe requesting security privileges when they are first needed might work better? | You'd have to relaunch the script, requesting admin rights. This can be done via ShellExecuteEx - see example. Schtasks.exe might also require this. |
|
| Back to top |
|
 |
darklight_tr
Joined: 29 May 2008 Posts: 21 Location: Madison, WI
|
Posted: Wed Jul 28, 2010 8:20 pm Post subject: |
|
|
I'm having an issue with the latest v0.9.0.49 release where it will copy the Ahk2Exe.exe, AutoHotkeySC.bin and Upx.exe files to the directory containing the script I am compiling if I use the right-click option "Compile with Options"
If I remove the v0.9.0.49 release, install v0.9.0.48, run a "test" compile and then install v0.9.0.49 over it the problem goes away.
This happens in both Windows XP and Windows 7.
Any ideas? |
|
| Back to top |
|
 |
ribbs2521
Joined: 28 Sep 2007 Posts: 273 Location: New York
|
Posted: Thu Aug 12, 2010 11:55 am Post subject: |
|
|
Are there any plans on updating this to support AutoHotKey_COM? When I compile it and try to run it I get an error
Could not extract script from .EXE |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Thu Aug 12, 2010 9:47 pm Post subject: |
|
|
| There's nothing this script has to do to support it - all the real work is done by Ahk2Exe. However, you'll have that problem if you try to use the /NoDecompile option with any custom build of AutoHotkey. Also note that AutoHotkey_COM is obsolete; AutoHotkey_L is more up to date. |
|
| Back to top |
|
 |
ribbs2521
Joined: 28 Sep 2007 Posts: 273 Location: New York
|
Posted: Fri Aug 13, 2010 3:30 pm Post subject: |
|
|
| Lexikos wrote: | | There's nothing this script has to do to support it - all the real work is done by Ahk2Exe. However, you'll have that problem if you try to use the /NoDecompile option with any custom build of AutoHotkey. |
Nice, I didn't know that, that would explain what my issue is, I never tried it without the no decompile option.
| Lexikos wrote: | | Also note that AutoHotkey_COM is obsolete; AutoHotkey_L is more up to date. |
My mistake, I meant AutoHotKey_L, the issue is there with either.
Thanks for the feedback, I really like this application but was disappointed it wouldn't work with the modified versions. Now that I know it was a simple checkbox causing my problem I'm back up and running like normal. |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Sat Aug 28, 2010 2:32 am Post subject: |
|
|
| darklight_tr wrote: | | I'm having an issue with the latest v0.9.0.49 release where it will copy the Ahk2Exe.exe, AutoHotkeySC.bin and Upx.exe files to the directory containing the script ... | I've been having the same issue, but no idea which version I'm using. I think I must've deleted the script's temporary folder (along with everything else in %TEMP%) at some point, and this version is incapable of recreating it. This is the problem section:
| Code: | CheckPortableApp:
IfExist , %Global_Defaults_Ini%
{
Portable_App := 1
Defaults_Ini := A_ScriptDir . "\Defaults.ini"
Language_Ini := A_ScriptDir . "\Language.ini"
SetWorkingDir , %A_ScriptDir%
SplitPath, A_ScriptDir , , Used_AHK_Dir
} Else {
Defaults_Ini := A_AppData . "\Compile_AHK\Defaults.ini"
Language_Ini := A_AppData . "\Compile_AHK\Language.ini"
SetWorkingDir , %A_TEMP%\AutoHotkey\Compiler
Used_AHK_Dir = %A_TEMP%\AutoHotkey
}
IfNotExist , %A_WorkingDir%
FileCreateDir , %A_WorkingDir%
Return | This simply won't work. If the directory doesn't exist, SetWorkingDir will fail and A_WorkingDir will remain unchanged. However, it appears to be fixed in the current version:
| Code: | FileCreateDir , %A_TEMP%\AutoHotkey\Compiler
SetWorkingDir , %A_TEMP%\AutoHotkey\Compiler |
|
|
| Back to top |
|
 |
capbat
Joined: 29 Nov 2007 Posts: 100 Location: Québec Canada
|
Posted: Wed Sep 08, 2010 2:22 pm Post subject: |
|
|
Hi
Tks for the nice application.
Question: The passord is for compilation I have tested it and it does not seemed to be for execution. Can you confirm this.l? Tks.
Bat  |
|
| Back to top |
|
 |
Raccoon
Joined: 02 Jan 2008 Posts: 150 Location: Freenode IRC
|
Posted: Wed Sep 08, 2010 6:36 pm Post subject: |
|
|
| capbat wrote: | Hi
Tks for the nice application.
Question: The passord is for compilation I have tested it and it does not seemed to be for execution. Can you confirm this.l? Tks.
Bat  |
The password used for compilation is used to decompile, not to run the script.
You can script your own password prompt if you want to prevent unauthorized execution of the script.
| Code: | Suspend, On
Loop,
{
InputBox, pwrd, Password Required, Please enter your password to proceed., HIDE
if ErrorLevel ; User clicked Cancel
ExitApp
if pwrd == ThEpAsSw0rD ; User entered the correct password
Break
if A_Index >= 3 { ; User entered incorrect password 3 times
MsgBox, 0x30, Authorization Failed, You entered an incorrect password too many times.`nExiting Application!
ExitApp
}
}
Suspend, Off |
_________________
Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk |
|
| Back to top |
|
 |
zengjia
Joined: 03 Aug 2009 Posts: 21
|
Posted: Wed Sep 15, 2010 6:43 am Post subject: |
|
|
very cool! thank you!  |
|
| Back to top |
|
 |
duveit
Joined: 08 Dec 2009 Posts: 9
|
Posted: Tue Oct 12, 2010 2:57 pm Post subject: |
|
|
For some reason, when using this, it insist about overwriting my source code, I woud have lost all if I didnt have it open in editplus, so that was kinda nasty.
Using AH version 1.0.48.05.161
Also have all files stored in a dropbox folder. |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Nov 01, 2010 12:54 pm Post subject: Malware? |
|
|
| Trojan-GameThief.Win32.OnLineGames.tnys detected by kaspersky when i try to compile. maybe that's also why user duveit has his source code rewritten, maybe it tries to add some other hacks too. (it happened to me too) |
|
| Back to top |
|
 |
fincs
Joined: 05 May 2007 Posts: 1163 Location: Seville, Spain
|
|
| Back to top |
|
 |
Guest
|
Posted: Mon Nov 01, 2010 1:01 pm Post subject: LE: Malware? |
|
|
| It might also be the AutoHotkeys_L compiler that's problematic. |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Nov 01, 2010 1:08 pm Post subject: Thank you! |
|
|
...and sorry, you were answering as i was posting. I read about that but the trojan it finds seems pretty specific, and a version of my script compiled in 2009 is not detected as malware. I now edited my script and recompiled it with AutoHotkeys_L only for the Unicode support. |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Nov 02, 2010 1:19 pm Post subject: It was definitely this |
|
|
| I uninstalled this compiler and AutoHotkey_L with an uninstaller that also cleaned the registry, reinstalled and used Ahk2Exe.exe to compile it and no more malware alert. |
|
| Back to top |
|
 |
|