AutoHotkey Community

It is currently May 27th, 2012, 12:26 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: September 5th, 2010, 10:08 am 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
Thanks for the new version. Quick consideration on first run:
- on my machine it took ~50 seconds to search functions and display main window; a "please wait..." message box (or anything similar) would be welcome for users with slow machines
- a 'search' operation would freeze the main window for a long time after typing first keyword letter; for the same considerations as above, a toggle between static and dynamic search might be beneficial to certain users, unless the search in listview could be substantially improved in some way

Guess I asked for too much, last time... :lol: Nevertheless, I'm sure many people with powerful machines will be very thankful for the new version. Keep up the good work! ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 6th, 2010, 2:19 am 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Drugwash wrote:
- on my machine it took ~50 seconds to search functions and display main window;


I always thought my machine ( Dual Core 1.8Ghz / 1 GB Ram ) was slow, but it consumes less than 10s for the first run and less than 4s for consecutive runs.

Like many of my other short scripts, I mean to run this script directly from the forum.

Maybe - I could have opted to cache the function names... I will check it out.

Thanks for the feedback :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2011, 7:34 am 
Offline

Joined: December 19th, 2010, 5:32 am
Posts: 235
For some reason the new version doesn't work for me it wont start, so I'm still using the old version but would prefer the new one, any help would be appreciated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2011, 1:30 am 
Offline

Joined: March 23rd, 2011, 6:22 pm
Posts: 10
I'm also having problems with the new version. I never had a chance to try the first so I can't speak for that. I'm using Win7 x64 with AHK_L. I've tried copying to clipboard and as a block of text as well as saved as different encodings. In SciTE the Exit code: -1073740940 Time: 9.049

AutohotKey.exe crashes when I run the script with these details.
Quote:
Problem signature:
Problem Event Name: APPCRASH
Application Name: AutoHotkey.exe
Application Version: 1.0.92.2
Application Timestamp: 4d35a72e
Fault Module Name: StackHash_e517
Fault Module Version: 6.1.7600.16695
Fault Module Timestamp: 4cc7ab86
Exception Code: c0000374
Exception Offset: 000cea27
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 4105
Additional Information 1: e517
Additional Information 2: e5172115a769f8a3be8f4d12045a6e9f
Additional Information 3: 569b
Additional Information 4: 569b1f3d58adcae7db2d5bc338d8ba7c



Any ideas?

If it's just me, could you provide a link to the old version as this would be EXTREMELY helpful as I'm just getting to the point of understanding dllcalls.

Thanks yet again for another awesome idea/script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2011, 2:37 am 
Offline

Joined: March 23rd, 2011, 6:22 pm
Posts: 10
Just tried the previous version and it works well. Would be nice to have the dynamic one but oh well this will definetely do!

I am curious by you did the following
Code:
#SingleInstance, Force
SetBatchLines -1
SetWorkingDir, %A_ScriptDir%
IfNotExist, WinAPI.txt
   UrlDownloadToFile, http://www.autohotkey.net/~Skan/Utils/MSDN/WinAPI.txt, WinAPI.txt
FileRead, Data, WinAPI.txt
VarSetCapacity( SS,20,32 ), Ctr := 0
Loop, Parse, Data, `n, `r
{ StringSplit, F, A_LoopField, `,
  ExpF .= SubStr( F3 SS,1,19) "|" SubStr( F2 SS,1,19) "|" F1 "`n", CTR := CTR+1
} StringTrimRight, ExpF, ExpF, 1
Gui, Font, s10, Tahoma
Gui, Add, Edit, w439 h20 -E0x200 UpperCase hWndhEdit cAA1010 Border vQuery gSTimer
SendMessage, 0xD3, 0x1,5,, ahk_id %hEdit%
Gui, Add, ListView, Yp+19 R15 w439  -E0x200 +Border gDClick, Function|Library|Link
LV_ModifyCol( 1, "290" ),LV_ModifyCol( 2, "125" ), LV_ModifyCol( 3, "0" ), Data := ""
Gui, Show,, MSDN - %CTR% Documented API Functions
Loop, Parse, ExpF, `n
     LV_Add("",SubStr(A_LoopField,41 ),SubStr(A_LoopField,21,19),SubStr(A_LoopField,1,19))
Return


Instead of just
Code:
#SingleInstance, Force
SetBatchLines -1
SetWorkingDir, %A_ScriptDir%
IfNotExist, WinAPI.txt
   UrlDownloadToFile, http://www.autohotkey.net/~Skan/Utils/MSDN/WinAPI.txt, WinAPI.txt
FileRead, Data, WinAPI.txt

Gui, Font, s10, Tahoma
Gui, Add, Edit, w439 h20 -E0x200 UpperCase hWndhEdit cAA1010 Border vQuery gSTimer
SendMessage, 0xD3, 0x1,5,, ahk_id %hEdit%
Gui, Add, ListView, Yp+19 R15 w439  -E0x200 +Border gDClick, Function|Library|Link
LV_ModifyCol( 1, "290" ),LV_ModifyCol( 2, "125" ), LV_ModifyCol( 3, "0" )
Gui, Show,, MSDN - %CTR% Documented API Functions
Loop, Parse, Data, `n
{
  StringSplit, F, A_LoopField, `,
     LV_Add("",F1,F2,F3)
}
Return


The original did not work for me. I believe it's probably a code page issues.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2011, 3:05 am 
Offline

Joined: March 23rd, 2011, 6:22 pm
Posts: 10
This is the entire script as I have edited it. I found this worked better for me.

SKAN: Please let me know if there is something wrong here and I will delete the post if so.

Thanks again
Code:
; WinAPI Listing - By SKAN ( arian.suresh@gmail.com )         |  CD:20090109 / LM:20090116

#SingleInstance, Force
SetBatchLines -1
SetWorkingDir, %A_ScriptDir%
IfNotExist, WinAPI.txt
   UrlDownloadToFile, http://www.autohotkey.net/~Skan/Utils/MSDN/WinAPI.txt, WinAPI.txt
FileRead, Data, WinAPI.txt

Gui, Font, s10, Tahoma
Gui, Add, Edit, w839 h20 -E0x200 UpperCase hWndhEdit cAA1010 Border vQuery gSTimer
SendMessage, 0xD3, 0x1,5,, ahk_id %hEdit%
Gui, Add, ListView, Yp+19 R35 w839  -E0x200 +Border gDClick, Function|Library|Link
LV_ModifyCol( 1, "490" ),LV_ModifyCol( 2, "125" ), LV_ModifyCol( 3, "200" )
Gui, Show,, MSDN - %CTR% Documented API Functions
Loop, Parse, Data, `n
{
  StringSplit, F, A_LoopField, `,
     LV_Add("",F1,F2,F3)
}
Return

sTimer:
 SetTimer, FunctionSearch, -250
Return

FunctionSearch:
 Critical
 LV_Delete()
 GuiControlGet, Query
 If ( Query="" )
 {
    Loop, Parse, Data, `n
    {
      StringSplit, F, A_LoopField, `,
      LV_Add("",F1,F2,F3)
    }
    Return
 }
 Loop, Parse, Data, `n
 { 
    Result := InStr(A_LoopField, Query) ? 1 : 0
    If ( Result = 1 )
    {
      StringSplit, F, A_LoopField, `,
      Result := InStr(F1, Query) ? 1 : 0
      If ( Result = 1 )
        LV_Add("",F1,F2,F3)
    }
  }
Return

DClick:
 IfNotEqual, A_GuiEvent, DoubleClick, Return
GotoURL:
 Critical
 Row := LV_GetNext( 0, "Focused" ), LV_GetText( Page,Row,3 ), LV_GetText( Func,Row,1 )
 Url1 := "http://www.google.com/search?hl=en&safe=off&as_qdr=all&q="
       . Func "+site%3Amicrosoft.com"
 Url2 := "http://msdn.microsoft.com/en-us/library/" RegExReplace(Page,"\s*$") ".aspx"
 If GetKeyState( "LControl", "P" )
      Run, %Url1%,,Max
 Else Run, %Url2%,,Max
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2011, 3:34 am 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
A lot of API have changed links in MSDN since MS redesigned MSDN.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Bon, SKAN, Yahoo [Bot] and 5 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