| Author |
Message |
Forum: Support Topic: Compiled script (exe) with no icon |
| calculon |
|
Posted: June 2nd, 2010, 6:45 pm
|
|
Replies: 2 Views: 283
|
SKAN wrote: you have to remove the icon in ?:\Program Files\AutoHotkey\Compiler\AutohotkeySC.bin with ResHacker.
Be informed that: Once the above is done, all the scripts you compile thereafter, will have no icon! Create a backup of .bin file before you use ResHacker.
Brilliant, thanks! |
|
 |
Forum: Support Topic: Compiled script (exe) with no icon |
| calculon |
|
Posted: May 31st, 2010, 11:24 am
|
|
Replies: 2 Views: 283
|
Hi,
Is it possible to compile a script with no icon (so the default Windows exe icon is used)?
I can't seem to find a way to do this.
I've tried removing the icon resource using Resource Hacker, but it corrupts the exe.
Any help much appreciated. |
|
 |
Forum: Issues Topic: FileInstall bug? |
| calculon |
|
Posted: March 18th, 2010, 1:40 pm
|
|
Replies: 1 Views: 528
|
| Hi, I think I've found a problem with FileInstall. It is assumed to be in %A_WorkingDir% if an absolute path isn't specified In this example the script should install 'banana1' to the 'bananas' folder. Instead it ends up in the script's directory. filecreatedir, bananas setworkingdir, bananas msgbox... |
|
 |
Forum: Support Topic: OS-wide single instance |
| calculon |
|
Posted: March 12th, 2010, 1:05 pm
|
|
Replies: 3 Views: 367
|
| AHK's '#SingleInstance force' is user-specific. In other words a script/ compiled exe can still have multiple instances under different user accounts (using fast user switching). I'm about to write a script to ensure OS-wide single instance, but I thought I'd check if anyone has already dealt with t... |
|
 |
Forum: Support Topic: Dealing with GUI and command line |
| calculon |
|
Posted: February 25th, 2010, 1:39 am
|
|
Replies: 1 Views: 367
|
| Hi all, I'm writing a script that'll be compiled into a small exe. It's a utility. It'll have 3 operating modes: 1) Regular - GUI 2) Command line - GUI progress 3) Command line - no GUI/ completely silent Here's a simplified version of what I've got so far: #noenv #notrayicon #singleinstance ignore ... |
|
 |
Forum: Support Topic: Put here requests of problems with regular expressions |
| calculon |
|
Posted: February 24th, 2010, 10:30 pm
|
|
Replies: 788 Views: 41728
|
sinkfaze wrote: Stuff
Thank you sooo much!
Think I'm getting to grips with RegEx now.
On a related topic, this seems a good way to extract the 2nd half of a key:
Code: key= something:longstring regexmatch(key, "(?<=something:).*", bingo) msgbox %bingo% |
|
 |
Forum: Support Topic: Put here requests of problems with regular expressions |
| calculon |
|
Posted: February 24th, 2010, 12:31 am
|
|
Replies: 788 Views: 41728
|
| This is probably a place where a lookbehind will be helpful: html =<img src="/image/abc" alt="def" /> RegExMatch(html, "(?<=src=""/image/)[^""]+",bingo) ; matches all non-quotation marks that are directly preceded by 'src="/imag... |
|
 |
Forum: Support Topic: Put here requests of problems with regular expressions |
| calculon |
|
Posted: February 23rd, 2010, 7:34 pm
|
|
Replies: 788 Views: 41728
|
| That's great. Thanks (everyone) for the help. Another query... I'm using all this to grab the url of an image from a line (or page) of HTML. This works: html := "<img src=""/image/abc"" alt=""def"" />" regexmatch(html, "<img src=""... |
|
 |
Forum: Support Topic: Put here requests of problems with regular expressions |
| calculon |
|
Posted: February 21st, 2010, 10:39 pm
|
|
Replies: 788 Views: 41728
|
| x = abcdef regexmatch(x, "^abc(.*)", var) msgbox, %var1% First you need to enclose what you want to extract with ( and ). The given variable (here var) is the base name of the array. The first capture, which is the text .* enclosed between the ( and ) is copied to var1. BA... |
|
 |
Forum: Support Topic: Put here requests of problems with regular expressions |
| calculon |
|
Posted: February 21st, 2010, 6:26 pm
|
|
Replies: 788 Views: 41728
|
| x = abcdef regexmatch(x, "^abc(.*)", var) msgbox, %var1% First you need to enclose what you want to extract with ( and ). The given variable (here var) is the base name of the array. The first capture, which is the text .* enclosed between the ( and ) is copied to var1. BA... |
|
 |
Forum: Support Topic: Put here requests of problems with regular expressions |
| calculon |
|
Posted: February 21st, 2010, 6:10 pm
|
|
Replies: 788 Views: 41728
|
Can someone tell me how to get this to return only 'def' in 'var2'?
Code: var1 = abcdef match := regexmatch(var1, "^abc.*", var2) msgbox, %var2%
Thanks. |
|
 |
Forum: Support Topic: Launch Windows 'Run' dialog box |
| calculon |
|
Posted: February 8th, 2010, 11:40 pm
|
|
Replies: 4 Views: 898
|
Jeremiah wrote: Maybe something like this might work. Code: !1::send #r
Thanks, but as I said 'I can't use the keyboard shortcut'.
I need to launch it as an admin. |
|
 |
Forum: Support Topic: Launch Windows 'Run' dialog box |
| calculon |
|
Posted: February 8th, 2010, 11:06 pm
|
|
Replies: 4 Views: 898
|
| Evening all. I've found this solution online for opening the 'Run' dialog box: rundll32.exe shell32.dll,#61 Unfortunately, it launches the dialog box in the middle of the screen; not the bottom-left corner. Does anyone know a similar command that achieves this? For my purpose I can't use the keyboar... |
|
 |
Forum: Support Topic: Changing Desktop Background (Wallpaper) & Windows 7 |
| calculon |
|
Posted: November 30th, 2009, 1:34 pm
|
|
Replies: 3 Views: 968
|
Another question (if anyone can help),
How do I get this (above) command to return an error code/ level?
Thanks. |
|
 |
Forum: Support Topic: Changing Desktop Background (Wallpaper) & Windows 7 |
| calculon |
|
Posted: November 27th, 2009, 6:31 pm
|
|
Replies: 3 Views: 968
|
Anonymous wrote: tested in w7 pro 32 bit parm2 works
Thanks, so it's not just me.
I'd still like to know why this works! Anyone?
Ta. |
|
 |
| Sort by: |