AutoHotkey Community

It is currently May 26th, 2012, 10:11 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: October 22nd, 2008, 9:59 pm 
Offline

Joined: June 14th, 2005, 10:47 am
Posts: 28
1st of all, a big THANK YOU for AHK ! I really love it.

(This is not a big problem, but sometimes it produces bugs - due to AHK's nature to accept undefined variable names)

The g- and v-Label characters in a line like
Code:
Gui Add, Edit, vNewText gCheckText,

CheckText:
GuiControlGet v ,, NewText
return

avoid the ability to do refactoring-like replacements over the sources.
(Nor can I select the variables name by double clicking it)

So I would love to have an additional syntax like

Code:
Gui Add, Edit, v:NewText g:CheckText,


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 22nd, 2008, 10:29 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
copa_ahk wrote:
Code:
Gui Add, Edit, v:NewText g:CheckText,


Good one! :)

PS:

Maybe also,
hwnd:Pic1
c:FFFFFF

x y w h are alphanumeric and hence good.

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 7th, 2008, 11:38 am 
I support it...especially if optional...

Maybe also...color:FFFFFF...c is nice & short, but color is fine too...

SKAN wrote:
x y w h are alphanumeric and hence good.

...I support it & don't...maybe x y w h should still work as-is, but also as x: y: w: h:...or even equals instead of colon (for all of this, not just x y w h)...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2008, 4:02 am 
Offline

Joined: June 26th, 2008, 3:58 am
Posts: 56
This is a good idea. I often am frustrated by not being able to select a variable name by double clicking. Also I can't think of any ill effects of implementing this, I don't think it would break old scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2008, 4:11 am 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
The reason why your gLabel isn't working, is because the gLabel of an edit control is activated by typing in it. Text,List(Box|View),DropDownList,TreeView,Button,Checkbox,Radio,Monthcal, and many other controls are activated via clicks of the left mouse button.

Also, I don't see the advantages of using a colon.. I like it just fine the way it currently is.

_________________
Religion is false. >_>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2008, 6:16 am 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
i support, and agree with SKAN, this would be useful for eyes and editors. There might be a problem tho, as : is valid as a g-label character. :? Actually, everything is valid as a g-label except for the escape character ` :shock: (and whitespace of course). Limiting labels to reasonable characters needs to be on the wish list too. :roll:
:D

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2008, 4:30 am 
infogulch wrote:
Actually, everything is valid as a g-label except for the escape character `
Any character, maybe. "Everything" is a bit of a stretch - obviously the label mustn't match hotstring/hotkey syntax. There are also a number of characters no line can begin with - i.e. continuation characters.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 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