AutoHotkey Community

It is currently May 27th, 2012, 7:02 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: March 8th, 2006, 3:14 am 
In AHK2EXE, what does the "default" button next to the password fields do?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 8:28 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
Why don't you try it? ;)
It emptys the fields.. (so no Password is used)

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 2:11 pm 
Offline

Joined: October 1st, 2005, 2:09 am
Posts: 130
Location: Canada
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 :-P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 2:37 pm 
Offline

Joined: December 20th, 2005, 4:15 am
Posts: 165
Location: Malaysia
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. :lol:

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. ... :-P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 2:50 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Search forum: random password
http://www.autohotkey.com/forum/viewtopic.php?t=6034

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject: default = clear
PostPosted: March 8th, 2006, 7:54 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 8:02 pm 
Offline

Joined: December 22nd, 2005, 7:43 pm
Posts: 245
Here:

Code:
SettitlematchMode, 2

password = default

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



Report this post
Top
 Profile  
Reply with quote  
 Post subject: the answer
PostPosted: March 8th, 2006, 8:25 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject: P.S.
PostPosted: March 8th, 2006, 8:41 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2006, 1:27 pm 
Offline

Joined: November 18th, 2005, 11:18 pm
Posts: 25
Location: Germany
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. :lol:

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. ... :-P



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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Google [Bot], migz99, sjc1000, Yahoo [Bot] and 78 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