AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

v1.0.47 released: Stdlib, RegisterCallback, NumGet/Put
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
POINTS not logged in
Guest





PostPosted: Thu Jun 21, 2007 5:02 am    Post subject: Re: SendRaw/SendPlay not working Reply with quote

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 Sad

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.
Back to top
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Thu Jun 21, 2007 2:43 pm    Post subject: Reply with quote

Quote:
I love you chris! (not the body-way ^^ )

Are you sure its not the body-way ? Razz Cool
_________________
Back to top
View user's profile Send private message MSN Messenger
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Fri Jun 22, 2007 5:53 pm    Post subject: Reply with quote

Chris wrote:
We should all thank JGR mostly. Without his RegisterCallback(), this release would be much less interesting. Smile

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

Thanks for the great contribution JGR Very Happy . Removing the "no callback functionality available" restriction definitely opens up a few more possibilities Very Happy .
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Sun Jul 08, 2007 10:33 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message Send e-mail
System Monitor



Joined: 09 Mar 2007
Posts: 383
Location: Unknown

PostPosted: Thu Jul 19, 2007 4:44 am    Post subject: Reply with quote

On Message() Link is Broken
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Thu Jul 19, 2007 1:27 pm    Post subject: Reply with quote

System Monitor wrote:
On Message() Link is Broken
where?
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Thu Jul 19, 2007 2:39 pm    Post subject: Reply with quote

The OnMessage links in the topmost post of this topic have been fixed. Thanks.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Thu Jul 19, 2007 3:10 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Aug 01, 2007 2:22 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message Send e-mail
Roland



Joined: 08 Jun 2006
Posts: 238

PostPosted: Wed Aug 01, 2007 6:09 pm    Post subject: Reply with quote

That was quick. Thanks! Smile
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Aug 28, 2007 1:57 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message Send e-mail
engunneer



Joined: 30 Aug 2005
Posts: 5957
Location: Pacific Northwest, US

PostPosted: Tue Aug 28, 2007 7:16 pm    Post subject: Reply with quote

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
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Aug 28, 2007 7:57 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Nov 21, 2007 2:46 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message Send e-mail
Ian



Joined: 15 Jul 2007
Posts: 1077
Location: Enterprise, Alabama

PostPosted: Wed Nov 21, 2007 11:42 pm    Post subject: Reply with quote

Wahoo, nice going Chris. I just downloaded the new version and will be using some of the new updates in my circulated executable scripts.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group