AutoHotkey Community

It is currently May 25th, 2012, 6:11 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: June 21st, 2007, 5:02 am 
POINTS wrote:
Ok, I'll try this out tonight.


It's working now... It was just some fluke that I attributed to the new version :(

What the script is actually doing is this:
Code:
SendPlay, +{Enter}
SendPlay, {Raw}%strMessage%
SendPlay, {Enter}


Which should be ok. Works 99.9% of the time.


Top
  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2007, 2:43 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
I love you chris! (not the body-way ^^ )

Are you sure its not the body-way ? :P 8)

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2007, 5:53 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Chris wrote:
We should all thank JGR mostly. Without his RegisterCallback(), this release would be much less interesting. :)

Definitely. Standard Library functionality definitely also makes this release interesting though. I had been anxiously waiting for that one for quite a while :) .

Thanks for the great contribution JGR :D . Removing the "no callback functionality available" restriction definitely opens up a few more possibilities :D .


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2007, 10:33 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Here are the changes for v1.0.47.01:

Fixed RunAs not to crash or misbehave when a domain is specified. [thanks Markus Frohnmaier]

Changed relational operators to yield integers even when the inputs are floating point; e.g. 1.0 < 2.0 yields 1 vs. 1.0. [thanks Lexikos]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 4:44 am 
Offline

Joined: March 9th, 2007, 2:47 am
Posts: 509
Location: Unknown
On Message() Link is Broken


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 1:27 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
System Monitor wrote:
On Message() Link is Broken
where?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 2:39 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The OnMessage links in the topmost post of this topic have been fixed. Thanks.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 3:10 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Here are the changes for v1.0.47.02:

Fixed the Number option of Edit controls to properly display balloon tips when the user types something other than a digit. [thanks tfcahm]

Fixed WM_TIMER not to be blocked unless it's posted to the script's main window. [thanks tfcahm]

Fixed wildcard hotkeys not to acquire tilde behavior when the same hotkey exists in the script with a tilde. [thanks Lexikos]

Fixed declaration initializers not to retain whitespace at the end of literal numbers. Also, they now allow spaces between a closing quote and the next comma. [thanks Hardeep]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2007, 2:22 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Here are the changes for v1.0.47.03:

Fixed expressions to allow literal negative hexadecimal numbers that end in "E"; e.g. fn(-0xe). [thanks Laszlo]

Fixed block syntax to allow a function-call immediately to the right of a '}'. [thanks Roland]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2007, 6:09 pm 
Offline

Joined: June 8th, 2006, 9:38 pm
Posts: 307
That was quick. Thanks! :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 28th, 2007, 1:57 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Here are the changes for v1.0.47.04:

Fixed key-up hotkeys like "a up::" not to block the pressing of the "a" key unless the hotkey's #IfWin criteria are met. [thanks Roland]

Fixed Round(Var, NegativeNumber), which in rare cases was off by 1. [thanks Icarus]

Fixed crash of scripts that end in a syntax error consisting of an orphaned IF-statement (broken by 1.0.47.00). [thanks msgbox of the German forum]

Eliminated the "GetClipboardData" error dialog. Instead, an empty string is retrieved when the data cannot be accessed within the #ClipboardTimeout period. [thanks ManaUser & Sean]

Changed GUI checkboxes and radio buttons to default to "no word-wrap" when no width, height, or CR/LF characters are specified. This solves display issues under certain unusual DPI settings. [thanks Boskoop]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 28th, 2007, 7:16 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8660
Location: Salem, MA
I have two questions about the standard library:

1: from the manual
Quote:
If a library function uses #Include, the working directory for #Include is the library function's own directory. This can be used to create a redirect to a larger library file that contains that function and others related to it.


Is this also true for DllCall? If I have a function and a dll used by that function in my library, do I need to call out the full path to the DLL (which I may not know), or will the function find it since it is in the same folder as the function, even though it may not be the working folder for the script?


2: from the manual
Quote:
Although a library file generally contains only a single function of the same name as its filename, it may also contain private functions and subroutines that are called only by it. However, such functions should have fairly distinct names because they will still be in the global namespace; that is, they will be callable from anywhere in the script.


I think this may not be working right. Taking Titan's XPath.ahk as an example, I was trying to call both XPath() and XMLDoc() from my script without explicitly including the file. XPath() works as expected, but even though the file should have autoincluded itself for the XPath function, the XMLDoc function could not be found until I renamed it XPath_XMLDoc in both scripts. I assumed that this was because my code called XMLDoc before calling XPath, but changing the order did not seem to matter.

Does AHK build a list of functions it needs to find before including any? or does it include as it finds them?

thanks

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 28th, 2007, 7:57 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
engunneer wrote:
1: from the manual
Quote:
If a library function uses #Include, the working directory for #Include is the library function's own directory. This can be used to create a redirect to a larger library file that contains that function and others related to it.
Is this also true for DllCall? If I have a function and a dll used by that function in my library, do I need to call out the full path to the DLL (which I may not know), or will the function find it since it is in the same folder as the function, even though it may not be the working folder for the script?
I don't think that will work; so eventually a new feature such as A_StdLibPath will probably be needed (though until the stdlib path becomes customizable, A_AhkPath and SplitPath can be used to derive the location).

engunneer wrote:
2: from the manual
Quote:
Although a library file generally contains only a single function of the same name as its filename, it may also contain private functions and subroutines that are called only by it. However, such functions should have fairly distinct names because they will still be in the global namespace; that is, they will be callable from anywhere in the script.
I think this may not be working right. Taking Titan's XPath.ahk as an example, I was trying to call both XPath() and XMLDoc() from my script without explicitly including the file. XPath() works as expected, but even though the file should have autoincluded itself for the XPath function, the XMLDoc function could not be found until I renamed it XPath_XMLDoc in both scripts. I assumed that this was because my code called XMLDoc before calling XPath, but changing the order did not seem to matter.

Does AHK build a list of functions it needs to find before including any? or does it include as it finds them?
I believe functions are scanned from the top of the script to the bottom (though since this is undocumented, scripts probably shouldn't rely on it). When a call to a nonexistent function is reached, the program tries to load a file of that name from one of the libraries. If it finds such a file, the entire file is included, which should imake available all functions in that file for subsequent lookups of functions.

If you find this doesn't work, it would help to have a simple example to reproduce the problem.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2007, 2:46 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Here are the changes for v1.0.47.05:

Fixed the Sort command: 1) fixed the "function" option not to misbehave when it's the last option in the list; 2) fixed the "unique" option so that when the delimiter is CRLF, the last item can be detected as a duplicate even when it doesn't end in CRLF; 3) fixed the "unique" option not to append a trailing delimiter when the last item is a duplicate. [thanks Roland]

Fixed RegExMatch() and RegExReplace() to yield correct results even when the same variable is used for Haystack and OutputVar. [thanks Superfraggle]

Fixed inability to pass a parameter that is "a variable to which ClipboardAll has been assigned". [thanks Joy2DWorld & Lexikos]

Updated RegEx/PCRE from 7.0 to 7.4. For a summary of the major changes, see www.pcre.org/news.txt. For full details of every change and fix, see www.pcre.org/changelog.txt

Added GUI control "Tab2" that fixes rare redrawing problems in the original "Tab" control (e.g. activating a GUI window by clicking on a control's scrollbar). The original Tab control is retained for backward compatibility because "Tab2" puts its tab control after its contained controls in the tab-key navigation order. [thanks Xander]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2007, 11:42 pm 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
Wahoo, nice going Chris. I just downloaded the new version and will be using some of the new updates in my circulated executable scripts.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot 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