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 

AHK2EXE default password?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jaco0646
Guest





PostPosted: Wed Mar 08, 2006 2:14 am    Post subject: AHK2EXE default password? Reply with quote

In AHK2EXE, what does the "default" button next to the password fields do?
Back to top
Thalon



Joined: 12 Jul 2005
Posts: 640

PostPosted: Wed Mar 08, 2006 7:28 am    Post subject: Reply with quote

Why don't you try it? Wink
It emptys the fields.. (so no Password is used)

Thalon
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
SacredVault
Back to top
View user's profile Send private message
incith



Joined: 01 Oct 2005
Posts: 119
Location: Canada

PostPosted: Wed Mar 08, 2006 1:11 pm    Post subject: Reply with quote

I kind of thought 'Random' would be a nice button to compliment it. Some form of 12+ random upper/lower/non-regular keys. I've never personally had the need to decompile something, and lately I find myself coming up with long strings per compile Razz
Back to top
View user's profile Send private message
Lemming



Joined: 20 Dec 2005
Posts: 158
Location: Malaysia

PostPosted: Wed Mar 08, 2006 1:37 pm    Post subject: Reply with quote

Heh, I just select and copy a chunk of text from whatever web page I happen to have open. I just make sure there's some punctuation in the selection. Seems random enough for me. Wink

Anyway, one could always write a rand password generator script. Laughing

incith wrote:
I kind of thought 'Random' would be a nice button to compliment it. Some form of 12+ random upper/lower/non-regular keys. ... Razz
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Wed Mar 08, 2006 1:50 pm    Post subject: Reply with quote

Search forum: random password
http://www.autohotkey.com/forum/viewtopic.php?t=6034
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
jaco0646
Guest





PostPosted: Wed Mar 08, 2006 6:54 pm    Post subject: default = clear Reply with quote

Thalon wrote:
Why don't you try it? Wink
It emptys the fields.. (so no Password is used)


I did try it, but I didn't believe there would be a button to do something that simple. In the rare event that you would type 2 passwords, then decide not to use one, couldn't you delete them manually in about 2 seconds? If that's all it does, the button should be titled "Clear" to actually indicate what it does. Since it says "default," I assumed there was some way to set a default password, so as to save on typing one every time.

Wouldn't it be nice if scripts automatically got a password (random or default) every time they were compiled, especially from the right-click menu?
Back to top
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Wed Mar 08, 2006 7:02 pm    Post subject: Reply with quote

Here:

Code:
SettitlematchMode, 2

password = default

WinWait Script to EXE Converter
WinActivate Script to EXE Converter
ControlSend Edit4, %password%
ControlSend Edit5, %password%

Back to top
View user's profile Send private message
jaco0646
Guest





PostPosted: Wed Mar 08, 2006 7:25 pm    Post subject: the answer Reply with quote

AHK Help wrote:
Quote:
Command Line: The compiler can be run from the command line with the following parameters:
Ahk2exe.exe /in MyScript.ahk [/out MyScript.exe][/icon MyIcon.ico][/pass password]
Parameters containing spaces should be enclosed in double quotes. If the "out" file is omitted, the EXE will have the same base filename as the script itself.


I just needed to change the command in the registry @ HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile\Command
Back to top
jaco0646
Guest





PostPosted: Wed Mar 08, 2006 7:41 pm    Post subject: P.S. Reply with quote

Quote:
I just needed to change the command in the registry @ HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile\Command


P.S. This is what that "default" button SHOULD do.
Back to top
Grendel



Joined: 18 Nov 2005
Posts: 25
Location: Germany

PostPosted: Thu Mar 09, 2006 12:27 pm    Post subject: Reply with quote

Lemming wrote:
Heh, I just select and copy a chunk of text from whatever web page I happen to have open. I just make sure there's some punctuation in the selection. Seems random enough for me. Wink

Anyway, one could always write a rand password generator script. Laughing

incith wrote:
I kind of thought 'Random' would be a nice button to compliment it. Some form of 12+ random upper/lower/non-regular keys. ... Razz



try this

example:

yourscript.ahk < your script
yourscript.ico < your icon

then name script below "yourscript_compile.ahk"
and start it to compile

Code:

; Get Name of Script  (remove "_compile" )
ifequal,A_IsCompiled,,Menu, Tray, Icon, %A_WinDir%\system32\shell32.dll,166
StringReplace, ScriptName, A_Scriptname, _compile
SplitPath, ScriptName,,,, ScriptName
; ---------------------------------------------------------------------
PassWd := crypt()
SplashTextOn,,,Compiling script: "%ScriptName%.ahk"
RunWait, %A_ProgramFiles%\AutoHotkey\Compiler\Ahk2Exe.exe  /in "%ScriptName%.ahk" /out "%ScriptName%.exe" /icon "%ScriptName%.ico" /pass %passwd%
SplashTextOff
MsgBox,64,Autocompile, "%ScriptName%.ahk" compiled and crypted to "%ScriptName%.exe"`n`nCrypt-Key:`n`n%PassWd%,3
; ---------------------------------------------------------------------
crypt(l=65)
{
   pass =
   chPool = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!"£$`%^&*()_-=+{}[]`;:``@'#~<>,./?\|¬¦
   StringSplit, list, chPool
   Loop, % l
   {
      Random, rnd, 1, % list0
      i := list%rnd%
      pass = %pass%%i%
   }
   Return, pass
}


_________________
greets Grendel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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