Search found 1129 matches

by TAC109
15 Nov 2015, 20:04
Forum: Ask for Help (v1)
Topic: Force Variable Declarations
Replies: 3
Views: 1254

Re: Force Variable Declarations

Assuming you're referring to AHK, check out the #warn directive.
by TAC109
31 Oct 2015, 20:33
Forum: Off-topic Discussion
Topic: Raspberry Pi
Replies: 7
Views: 4743

Re: Raspberry Pi

http://pi-hole.net/ could be a possbility
by TAC109
24 Oct 2015, 20:20
Forum: Forum Issues
Topic: Spam in OffTopic
Replies: 8
Views: 3740

Re: Spam in OffTopic

The point is that the other forum categories don't seem to get spam, only 'offtopic'.

Either the spammers are being courteous and only spamming 'offtopic', or there is a loophole relating solely to 'offtopic' allowing the spammers through there, but not in the other categories.
by TAC109
23 Oct 2015, 22:01
Forum: Forum Issues
Topic: Spam in OffTopic
Replies: 8
Views: 3740

Re: Spam in OffTopic

How come spammers are allowed to post in the 'offtopic' part of the forum?
I've seen several spam posts today, and also some in the past.
Are the anti-spam measures not working in 'offtopic'?
by TAC109
23 Oct 2015, 17:25
Forum: About This Community
Topic: Misleading example on autohotkey.com front page
Replies: 2
Views: 3541

Misleading example on autohotkey.com front page

I see that the misleading code example on autohotkey.com front page has made a comeback!
Could someone change the comment characters back to ; please?
by TAC109
06 Aug 2015, 22:04
Forum: Bug Reports
Topic: Forced expression fails in IfEqual
Replies: 1
Views: 1142

Forced expression fails in IfEqual

When IfEqual has a forced expression which includes a comma, and the action is on the same line, the IfEqual statement gives an incorrect result.

Code: Select all

x:=2
IfEqual x, % proc(2), MsgBox True1
IfEqual x, % proc(2,1), MsgBox True2
MsgBox End

proc(a,b=0)
{ return a
}
by TAC109
01 Aug 2015, 18:43
Forum: Scripts and Functions (v1)
Topic: Save GuiPos as textstream
Replies: 15
Views: 4745

Re: Save GuiPos as textstream

@haichen - Sorry for the confusing definition. I was writing from (hazy) memory in my first post.

@dd900 - As said before, this method will only work if your scripts are running on an NTFS file system.
by TAC109
31 Jul 2015, 22:52
Forum: Scripts and Functions (v1)
Topic: Save GuiPos as textstream
Replies: 15
Views: 4745

Re: Save GuiPos as textstream

I guess what I'm commenting on is 'alternate data streams'. There are utilities for showing ADS file names on your drives. I use 'ADS spy'. This URL explains the concept in more detail:
http://blogs.technet.com/b/askcore/arch ... -ntfs.aspx
by TAC109
31 Jul 2015, 19:42
Forum: Scripts and Functions (v1)
Topic: Save GuiPos as textstream
Replies: 15
Views: 4745

Re: Save GuiPos as textstream

Be aware that streams are part of the NTFS file system on Windows. Streams are not available in FAT type file systems like FAT32. A stream is separate hidden file, rather than 'data behind the EOF of a file'. Windows uses streams for its own purposes, such as to mark a file downloaded from the Inter...
by TAC109
17 Jun 2015, 23:30
Forum: Ask for Help (v1)
Topic: Indirect reference Mod() error
Replies: 5
Views: 2197

Re: Indirect reference Mod() error

just me wrote:%y% isn't a variable, it's a reference.
Yes, that is probably causing the unexpected result.
by TAC109
17 Jun 2015, 01:27
Forum: Ask for Help (v1)
Topic: Indirect reference Mod() error
Replies: 5
Views: 2197

Re: Indirect reference Mod() error

See help, scripts, variables and expressions, expression operators table , Comma (multi-statement) [v1.0.46+]. Commas may be used to write multiple sub-expressions on a single line. This is most commonly used to group together multiple assignments or function calls. For example: x:=1, y+=2, ++index,...
by TAC109
16 Jun 2015, 18:11
Forum: Ask for Help (v1)
Topic: Indirect reference Mod() error
Replies: 5
Views: 2197

Indirect reference Mod() error

Code: Select all

y:="ur"
ur:=2, ur=mod(++ur,3)     ; Works; ur=0
MsgBox %ur%
ur:=2, %y%=mod(++%y%,3)   ; Error; ur=3?
MsgBox %ur%
ur:=2, %y%:=mod(++%y%,3)  ; Works; ur=0
MsgBox %ur%
The failing code uses valid, allowable syntax.
by TAC109
16 May 2015, 18:12
Forum: Ask for Help (v1)
Topic: Need help with string manipulation
Replies: 3
Views: 1022

Re: Need help with string manipulation

The autohotkey.com front page example strikes again!
by TAC109
04 Apr 2015, 16:47
Forum: Forum Issues
Topic: Increase login timeout
Replies: 51
Views: 17197

Re: Increase login timeout

FYI I also read and post to this forum on my iPad using Safari. However my session stays logged in more or less indefinitely.
by TAC109
02 Apr 2015, 17:21
Forum: Ask for Help (v1)
Topic: Right-clicking an AHK menu item
Replies: 18
Views: 5589

Re: Right-clicking an AHK menu item

I see that another side effect of this approach is that the menu items are not selectable by keyboard.

Thanks again for all your efforts.
by TAC109
01 Apr 2015, 21:43
Forum: Ask for Help (v1)
Topic: Right-clicking an AHK menu item
Replies: 18
Views: 5589

Re: Right-clicking an AHK menu item

I've been giving your AHK code a good work out and found a couple of problems:- If the script is started by double clicking in a file explorer window (then caps lock is pressed to show the menu), if the first click on a menu item is a right-click it is sometimes not actioned. (When the script is sta...
by TAC109
01 Apr 2015, 19:11
Forum: Ask for Help (v1)
Topic: Right-clicking an AHK menu item
Replies: 18
Views: 5589

Re: Right-clicking an AHK menu item

Looking good!

Thanks for all your help with this, MJs (and Garry).

(I'm surprised that the ability to detect a right-click on a free-standing menu item is not built in to the AHK language. It seems a fairly basic requirement.)
by TAC109
31 Mar 2015, 02:17
Forum: Scripts and Functions (v1)
Topic: Window Snap in XP *like a boss*/1 more reason not to upgrade
Replies: 3
Views: 3130

Re: Window Snap in XP *like a boss*/1 more reason not to upg

After you have updated to the latest patch state, see the following sites for how to stay even more up-to-date with XP patches. http://www.ghacks.net/2014/05/24/get-security-updates-windows-xp-april-2019/ http://www.bobistheoilguy.com/forums/ubbthreads.php/topics/3379296/Re:_Windows_XP_Update_trick ...
by TAC109
30 Mar 2015, 21:00
Forum: Ask for Help (v1)
Topic: Right-clicking an AHK menu item
Replies: 18
Views: 5589

Re: Right-clicking an AHK menu item

Ok...
I've had a look at the items you referenced, but I'm no wiser as to how to get this to work. (I'm a relative beginner regarding AHK and Windows programming.) Any further ideas?

Go to advanced search