AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile_AHK II - for those who compile!
Goto page Previous  1, 2, 3 ... 21, 22, 23 ... 26, 27, 28  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Lexikos



Joined: 17 Oct 2006
Posts: 7299
Location: Australia

PostPosted: Mon May 03, 2010 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
darklight_tr



Joined: 29 May 2008
Posts: 21
Location: Madison, WI

PostPosted: Wed Jul 28, 2010 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
ribbs2521



Joined: 28 Sep 2007
Posts: 273
Location: New York

PostPosted: Thu Aug 12, 2010 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7299
Location: Australia

PostPosted: Thu Aug 12, 2010 9:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ribbs2521



Joined: 28 Sep 2007
Posts: 273
Location: New York

PostPosted: Fri Aug 13, 2010 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7299
Location: Australia

PostPosted: Sat Aug 28, 2010 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
capbat



Joined: 29 Nov 2007
Posts: 100
Location: Québec Canada

PostPosted: Wed Sep 08, 2010 2:22 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Raccoon



Joined: 02 Jan 2008
Posts: 150
Location: Freenode IRC

PostPosted: Wed Sep 08, 2010 6:36 pm    Post subject: Reply with quote

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 Smile


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
View user's profile Send private message
zengjia



Joined: 03 Aug 2009
Posts: 21

PostPosted: Wed Sep 15, 2010 6:43 am    Post subject: Reply with quote

very cool! thank you! Very Happy
Back to top
View user's profile Send private message
duveit



Joined: 08 Dec 2009
Posts: 9

PostPosted: Tue Oct 12, 2010 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Mon Nov 01, 2010 12:54 pm    Post subject: Malware? Reply with quote

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

PostPosted: Mon Nov 01, 2010 12:58 pm    Post subject: Reply with quote

http://www.autohotkey.com/wiki/index.php?title=FAQ#Virus.3F
_________________
fincs
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Nov 01, 2010 1:01 pm    Post subject: LE: Malware? Reply with quote

It might also be the AutoHotkeys_L compiler that's problematic.
Back to top
Guest






PostPosted: Mon Nov 01, 2010 1:08 pm    Post subject: Thank you! Reply with quote

Smile ...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






PostPosted: Tue Nov 02, 2010 1:19 pm    Post subject: It was definitely this Reply with quote

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
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 21, 22, 23 ... 26, 27, 28  Next
Page 22 of 28

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group