AutoHotkey Community

It is currently May 27th, 2012, 6:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 414 posts ]  Go to page Previous  1 ... 19, 20, 21, 22, 23, 24, 25 ... 28  Next
Author Message
 Post subject:
PostPosted: May 3rd, 2010, 12:09 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2010, 9:20 pm 
Offline

Joined: May 29th, 2008, 5:02 pm
Posts: 21
Location: Madison, WI
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2010, 12:55 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2010, 10:47 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2010, 4:30 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 28th, 2010, 3:32 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2010, 3:22 pm 
Offline

Joined: November 29th, 2007, 3:29 pm
Posts: 100
Location: Québec Canada
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 :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2010, 7:36 pm 
Offline

Joined: January 2nd, 2008, 4:47 am
Posts: 150
Location: Freenode IRC
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

_________________
Image

Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2010, 7:43 am 
Offline

Joined: August 3rd, 2009, 9:10 am
Posts: 21
very cool! thank you! :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2010, 3:57 pm 
Offline

Joined: December 9th, 2009, 12:28 am
Posts: 9
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Malware?
PostPosted: November 1st, 2010, 1:54 pm 
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)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2010, 1:58 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
http://www.autohotkey.com/wiki/index.php?title=FAQ#Virus.3F

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject: LE: Malware?
PostPosted: November 1st, 2010, 2:01 pm 
It might also be the AutoHotkeys_L compiler that's problematic.


Report this post
Top
  
Reply with quote  
 Post subject: Thank you!
PostPosted: November 1st, 2010, 2:08 pm 
:) ...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.


Report this post
Top
  
Reply with quote  
 Post subject: It was definitely this
PostPosted: November 2nd, 2010, 2:19 pm 
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.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 414 posts ]  Go to page Previous  1 ... 19, 20, 21, 22, 23, 24, 25 ... 28  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Exabot [Bot], Google Feedfetcher, JamixZol, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group