[Recycle bin] SKAN's Tips and Tricks
How to check for an AutoHotkey update ?
<!-- m -->http://www.autohotke... ... 5583#95583<!-- m -->
The following Hotkey goes into my always-running-script ( already 1361 lines long ). I wrote it for myself, and later, I realised it could be of interest to someone. Hence I am posting it:#NumpadEnter:: tb := Chr(9) , lf := Chr(10) , URL := "http://www.autohotkey.com/download/" UrlDownloadToFile, % URL "CurrentVersion.txt" , % A_Temp "\autohotkey.version" Fileread, data, % A_Temp "\autohotkey.version" StringSplit, ln, data, %lf% ln2 := SubStr(ln2,1,4) "-" SubStr(ln2,5,2) "-" SubStr(ln2,7,2), ln3 := ln3//1024 msg := A_AhkPath lf lf "Version:" tb ln1 lf "Rel.Dt.:" tb ln2 lf "Size-KB:" tb ln3 IfNotEqual, ln1, %A_AhkVersion%, Run, iexplore.exe %URL%,, Max tt := ( ln1 = A_AhkVersion ) ? "No Update Available..." : "NEW VERSION AVAILABLE !!" MsgBox, 262208, %tt%, %msg% tb:= "", lf:="", URL:="", data:="", ln1:="", ln2:="", ln3:="", msg:="", tt:="" Return
It checks for a new release, and if available, opens the download page in Internet Explorer.
Credit: See Serenity's Post. You can understand it better.
file = %A_Temp%\ahk-cv.txt url = http://www.autohotkey.com/download/ UrlDownloadToFile, %url%CurrentVersion.txt, %file% FileRead, v, %file% FileDelete, %file% FileGetVersion, c, %A_AhkPath% StringSplit, v, v, .`n n := 0, RegExMatch(v, "m)^([\d.]+)", d) Loop, Parse, c, . n += v%A_Index% > A_LoopField FormatTime, d, %d2%, LongDate If n { MsgBox, 4, New updates available, Would you like to download AutoHotkey %d1%? IfMsgBox, Yes Run, %url% } Else MsgBox, , No new updates , You are running the latest version of AutoHotkey. `n`nVersion: %d1%`nReleased: %d%
autohotkey.com/net Site Manager
Contact me by email (polyethene at autohotkey.net) or message tidbit
That looks really* confusing lol.
Yes! I too thought so after posting it. But it looked beautiful while I was coding it.
I don't see why you had to use tb := Chr(9) for a tab char
In some instances that makes me to understand my code better and readable, like:
; CSV listing of the Windows Folder ; q=quote, c=comma, s=space, lf=linefeed, tb=htab. rt=carriage return q:=Chr(34), c:=Chr(44), s:=Chr(32), lf:=Chr(10), tb:=Chr(9), rt:=Chr(13) Loop %WinDir%\*.* CSV .= q A_LoopFileName q s c s q A_LoopFileTimeModified q s c s q A_LoopFileSizeKB q lf MsgBox, % CSV
a bunch of SubStrs for the second line when FileReadLine/Regex would have worked.
Oh! SubStr() is a FoxPro command and it comes to me naturally.. I just wanted to crop the first 8 digits and there was some space left on the line.. and so .. you see.
Thanks for your version. That can be better understood.
I never knew until today that Control+S toggles the size of Volume Control dialog. I was googling for something more serious and I accidentally came to know about this. Thought this might be of some information. Or maybe, many of you already know :?: :roll:
Anyways.. I was quick to try whether the following works:
Run, SndVol32.exe /S
It works !!!
Regards,
but it would be good if we can see that tutorial on this superb tutorial list
whatever many thanks SKAN!
How to Refresh " Icons Display " in System Tray ?
<!-- m -->http://www.autohotke... ... 5641#55641<!-- m -->
See TrayIcon_Cleanup() for nicer way. (Tested on XP, prob not OK on Win7)
I'd like to be able to find some undoc'd allusive magical hex if possible .
thnx
don't duplicate, iterate!
I have a small request for how to brute force constants ( avoiding crashes if possible ).
Them are made for each other
But if you want to know how constants work, then it is quite a story and maybe I can post a tut.
I have a small request for how to brute force constants ( avoiding crashes if possible ).
Them are made for each other
But if you want to know how constants work, then it is quite a story and maybe I can post a tut.
Yes please :mrgreen:!
I mean I think I get the part of ratcheting threw sequential hex vals and seeing what each returns.
Its knowing exactly what the return part/errorlevel is doing that seems like it would be confusing.
Anyhoo, I'm sure this would come in handy for many users ..
Thnx again in advance..
don't duplicate, iterate!
Can anyone give a hint on how to track that files dragging is occuring over the gui?
I couldn't find any messages which would help me, the only one that related to dragging it is WM_DROPITEM (or something like that), but it occurs only when you release dragged item
If you have any thoughts about this, please don't hide
It seems i need to get this events:
<!-- m -->http://msdn.microsof... ... rop_Events<!-- m -->
DragEnter and DragOver
how can i do this with COM?
I GET ERRORS ON ALL THE LINKS TO SKAN'S TIPS AND TRICKS.oops caps