Search found 515 matches

by noname
13 Jan 2014, 11:28
Forum: Scripts and Functions (v1)
Topic: [LIB] SysProcInfo - system and processes performance info
Replies: 1
Views: 2236

Re: [LIB] SysProcInfo - system and processes performance inf

Thanks amazing what info it provides.I only had to provide a full path for the test.txt otherwise it is not created ( this is not the first time fileappend fails without a full path on my system...) Maybe it would be a good idea to have a general index of user created functions on the forum webpage ...
by noname
15 Dec 2013, 05:18
Forum: Ask for Help (v1)
Topic: In use file/folder
Replies: 13
Views: 6868

Re: In use file/folder

You can use sysinternals handle.exe and parse the the result.There are plenty of option parameters to configure it.

http://technet.microsoft.com/en-us/sysi ... 96655.aspx
by noname
08 Dec 2013, 11:57
Forum: Scripts and Functions (v1)
Topic: [LIB] EWinHook - SetWinEventHook implementation
Replies: 19
Views: 11197

Re: [LIB] EWinHook - SetWinHookEvent implementation

Thanks i will take a look at RegisterShellHookWindow. For a final test of the "EVENT_SYSTEM_SOUND " i installed ahk and the program in a clean original winXP (SP2) installation in a VMWare virtual system. The result is the same no triggering of the event only the alert was triggered by the msgbox.So...
by noname
07 Dec 2013, 11:20
Forum: Scripts and Functions (v1)
Topic: [LIB] EWinHook - SetWinEventHook implementation
Replies: 19
Views: 11197

Re: [LIB] EWinHook - SetWinHookEvent implementation

I will use it mostly for the foreground,destroy,moveresize event ,there is one application where i like to react on it starting ,it gives a beep and a colored indicator so at the moment i use pixelgetcolor but it would be nice to have the sound as event trigger so i do not have to keep its window on...
by noname
07 Dec 2013, 10:55
Forum: Scripts and Functions (v1)
Topic: [LIB] EWinHook - SetWinEventHook implementation
Replies: 19
Views: 11197

Re: [LIB] EWinHook - SetWinHookEvent implementation

As I told you only system sounds trigger the event. I tried it the way you suggested "press backspace when the msgbox appears" in my earlier post i only added soundbeep to have another sound and also when the messagebox in the code pops up you hear a system sound but no event triggering occurs.I al...
by noname
07 Dec 2013, 09:51
Forum: Scripts and Functions (v1)
Topic: [LIB] EWinHook - SetWinEventHook implementation
Replies: 19
Views: 11197

Re: [LIB] EWinHook - SetWinHookEvent implementation

hi cyruz I tried it but it does not trigger the code.The msgbox triggers the "alert" but trying the systemsounds i can hear them but they are not registered.I use winXP installed in 2004 so i guess the 9 years of misuse must have altered some settings :) the code i tried using ahk_l 1.1.13.01 filede...
by noname
07 Dec 2013, 07:12
Forum: Ask for Help (v1)
Topic: simple function works in ahk basic but not in ahk unicode
Replies: 16
Views: 4931

Re: simple function works in ahk basic but not in ahk unicod

@tmplinshi

I think i will take a closer look at RTrim ,i always ignored it because i just moved from basic to ahk_l but as you shown it can give creative solutions to a problem :)
by noname
07 Dec 2013, 07:05
Forum: Ask for Help (v1)
Topic: Control get type using hwnd
Replies: 2
Views: 2302

Re: Control get type using hwnd

You can find a function that will get it inside the forum post from VxE. ;http://www.autohotkey.com/board/topic/45515-remap-hjkl-to-act-like-left-up-down-right-arrow-keys/#entry283368 GetClassName( hwnd ) { ; returns HWND's class name without its instance number, e.g. "Edit" or "SysListView32" VarSe...
by noname
06 Dec 2013, 15:08
Forum: Ask for Help (v1)
Topic: simple function works in ahk basic but not in ahk unicode
Replies: 16
Views: 4931

Re: simple function works in ahk basic but not in ahk unicod

TrimZeros(number){ return (SubStr(number,1,-1)=number?RegExReplace(number,"\.?0+$"):number) } Very clever Afterlemon ! Simple and effective. I only hope that the problem does not arise from the mixing strings and numbers going from ahk basic to ahk_l because that will give other surprises in the od...
by noname
06 Dec 2013, 11:54
Forum: Ask for Help (v1)
Topic: simple function works in ahk basic but not in ahk unicode
Replies: 16
Views: 4931

Re: simple function works in ahk basic but not in ahk unicod

Yes that converts correct but it looks odd....... :) .It is frustrating that such a simple code for a yet unknown reason does not work. Following your remark about removing the dot when there are no 0 following i tried with regex and came up with the following function. RemoveTrailingZeros(number) {...
by noname
06 Dec 2013, 08:32
Forum: Ask for Help (v1)
Topic: simple function works in ahk basic but not in ahk unicode
Replies: 16
Views: 4931

Re: simple function works in ahk basic but not in ahk unicod

Thanks Pulover but it needs also correction for the case like number:=100 it will be converted to 1 using RTrim.

It would be not to difficult to do but i wonder why the original coe fails in ahk_l, i do not see why it works in ahk basic but not in ahk_l and even more just crashes the program?
by noname
06 Dec 2013, 06:51
Forum: Ask for Help (v1)
Topic: simple function works in ahk basic but not in ahk unicode
Replies: 16
Views: 4931

simple function works in ahk basic but not in ahk unicode

number:=17.0023000 msgbox % RemoveTrailingZeros(number) RemoveTrailingZeros(number) { StringTrimRight n, number, 1 If (n - number <> 0) ; not numbers: "" <> 0 Return number Return RemoveTrailingZeros(n) } If i use it in ahk unicode the script exits without even the msgbox but i cannot find why.It w...
by noname
06 Dec 2013, 03:18
Forum: Scripts and Functions (v1)
Topic: [LIB] EWinHook - SetWinEventHook implementation
Replies: 19
Views: 11197

Re: [LIB] EWinHook - SetWinHookEvent implementation

Thanks for sharing i use wineventhook a lot so this code will make it a lot easier! Do you have any idea why the "EVENT_SYSTEM_SOUND " does not seem to be triggered by anything?From the documentation is seems to be straight forward but i tried it with a lot of different sound generating programs/cod...
by noname
19 Nov 2013, 11:16
Forum: Ask for Help (v1)
Topic: inputbox syntax error
Replies: 2
Views: 1708

Re: inputbox syntax error

Thanks gregster you saved my day! I had been misinterpreting the old reply given on the forum where the parameter was the literal word blank but it was just to indicate it must be blank it was not code to be used.The original code problem was a missing "," !

Thanks for the quick reply.
by noname
19 Nov 2013, 09:25
Forum: Ask for Help (v1)
Topic: inputbox syntax error
Replies: 2
Views: 1708

inputbox syntax error

InputBox, String, Send command, Enter a command, , 200, 100,100,100, blank, 5,goto there I need the timeout function but cannot get past the "font" parameter.Using space or just leaving it blank gives same errror. ahk version 1.1.10.01 I found on the forum a similar problem and the solution seemed ...

Go to advanced search