 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
jaco0646 Guest
|
Posted: Wed Mar 08, 2006 2:14 am Post subject: AHK2EXE default password? |
|
|
| In AHK2EXE, what does the "default" button next to the password fields do? |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 640
|
|
| Back to top |
|
 |
incith
Joined: 01 Oct 2005 Posts: 119 Location: Canada
|
Posted: Wed Mar 08, 2006 1:11 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Lemming
Joined: 20 Dec 2005 Posts: 158 Location: Malaysia
|
Posted: Wed Mar 08, 2006 1:37 pm Post subject: |
|
|
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.
Anyway, one could always write a rand password generator script.
| 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. ...  |
|
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
|
| Back to top |
|
 |
jaco0646 Guest
|
Posted: Wed Mar 08, 2006 6:54 pm Post subject: default = clear |
|
|
| Thalon wrote: | Why don't you try it?
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
|
Posted: Wed Mar 08, 2006 7:02 pm Post subject: |
|
|
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 |
|
 |
jaco0646 Guest
|
Posted: Wed Mar 08, 2006 7:25 pm Post subject: the answer |
|
|
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
|
Posted: Wed Mar 08, 2006 7:41 pm Post subject: P.S. |
|
|
| 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
|
Posted: Thu Mar 09, 2006 12:27 pm Post subject: |
|
|
| 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.
Anyway, one could always write a rand password generator script.
| 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. ...  |
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|