AutoHotkey Community

It is currently May 26th, 2012, 3:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: October 15th, 2006, 1:59 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
I am one of those thankful to you for your Tutorial on posting messages to Windows.

Many Regards, :D

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 12:49 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Quote:
How to check for an AutoHotkey update ?
http://www.autohotkey.com/forum/viewtop ... 5583#95583

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:

Code:
#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.

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 1:21 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
That looks really* confusing lol. I don't see why you had to use tb := Chr(9) for a tab char and a bunch of SubStrs for the second line when FileReadLine/Regex would have worked. Here's a simplified version:
Code:
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%

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2006, 1:59 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Titan wrote:
That looks really* confusing lol.


Yes! I too thought so after posting it. But it looked beautiful while I was coding it. :(

Quote:
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:

Code:
; 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


Quote:
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. :D

Thanks for your version. That can be better understood.

:)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2006, 9:28 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Hi Friends, :)

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:

Code:
Run, SndVol32.exe /S


It works !!! :D

Regards, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2008, 8:44 pm 
i don't know how inserting own menu to system context menu would be done.
but it would be good if we can see that tutorial on this superb tutorial list
whatever many thanks SKAN!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2009, 9:49 am 
Offline

Joined: May 29th, 2009, 8:05 am
Posts: 17
similar topic. sound alert whenver a network cable is unplugged. any idea?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2009, 11:08 pm 
Nice


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 5:12 am 
Offline

Joined: November 8th, 2009, 2:46 am
Posts: 234
Location: Canberra Oz
Quote:
How to Refresh " Icons Display " in System Tray ?
http://www.autohotkey.com/forum/viewtop ... 5641#55641


See TrayIcon_Cleanup() for nicer way. (Tested on XP, prob not OK on Win7)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2010, 9:17 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
I have a small request for how to brute force constants ( avoiding crashes if possible ).
I'd like to be able to find some undoc'd allusive magical hex if possible ;).

thnx

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2010, 7:26 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
TLM wrote:
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. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2010, 4:32 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
SKAN wrote:
TLM wrote:
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. :)
Image
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..

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 29th, 2010, 11:51 am 
Offline

Joined: May 16th, 2010, 2:38 pm
Posts: 185
hi all
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:
http://msdn.microsoft.com/en-us/library ... rop_Events
DragEnter and DragOver
how can i do this with COM?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: nimda 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