Search found 34 matches

by nimda
08 Aug 2015, 22:01
Forum: Ask for Help (v1)
Topic: get original date of direct link file without DL.
Replies: 6
Views: 3353

Re: get original date of direct link file without DL.

Ah, that will do it.

Why are you making an async request, then immediately blocking? Is there an advantage over a synchronous request?
by nimda
08 Aug 2015, 21:35
Forum: Ask for Help (v1)
Topic: Windows 10 - run script on windows startup problem
Replies: 5
Views: 9753

Re: Windows 10 - run script on windows startup problem

Have you tried using 8.3 (dir /x) filenames? E.g. C:\MYSCRI~1\STARTS~1.AHK
by nimda
08 Aug 2015, 21:27
Forum: Ask for Help (v1)
Topic: get original date of direct link file without DL.
Replies: 6
Views: 3353

Re: get original date of direct link file without DL.

Different security settings, I would guess. Thanks for the fix. As for the topic, it might not be desirable to download the whole file before looking at the headers; there's probably a way to do it using async requests. If not, then you can call HTTPQueryInfo directly as in http://www.autohotkey.com...
by nimda
06 Aug 2015, 17:23
Forum: Ask for Help (v1)
Topic: Disable IME in specific window
Replies: 2
Views: 1443

Re: Disable IME in specific window

First guess: are you running a 64-bit version of AHK? Window handles are pointer-sized, so you might try "UPtr" instead of UInt, or the 32-bit AHK executable.
by nimda
06 Aug 2015, 17:05
Forum: Ask for Help (v1)
Topic: get original date of direct link file without DL.
Replies: 6
Views: 3353

Re: get original date of direct link file without DL.

Maybe look at the HTTP headers?

Code: Select all

URL = http://www.noderunner.net/~llin/psf/packs/1on1Government_psf.rar

request := ComObjCreate("MSXML2.XMLHTTP.6.0")
request.open("GET", URL, false)
request.send()
MsgBox % request.getResponseHeader("Last-Modified") ; Fri, 02 Apr 2010 03:02:06 GMT
by nimda
25 May 2015, 16:38
Forum: Ask for Help (v1)
Topic: How can I send a Windows toast notification?
Replies: 14
Views: 15054

Re: How can I send a Win8 toast notification?

Doesn't look like it will be easy. I'd suggest doing it with Gui instead.
// In order to display toasts, a desktop application must have a shortcut on the Start menu.
// Also, an AppUserModelID must be set on that shortcut.
by nimda
05 Jul 2014, 17:00
Forum: About This Community
Topic: AHK(v2) rebranding [Name Suggestions]
Replies: 120
Views: 67340

Re: AHK(v2) rebranding [Name Suggestions]

BoBo wrote:*.ah2

"Let's ah2 together, now I need you more than ever ..." Image
Gesundheit
by nimda
21 Jun 2014, 15:46
Forum: Ask for Help (v1)
Topic: Script to stutter step
Replies: 4
Views: 4850

Re: Script to stutter step

I suggest #If and GetKeyState().
by nimda
03 Jun 2014, 23:13
Forum: Ask for Help (v1)
Topic: Transparency of one control
Replies: 3
Views: 1820

Re: Transparency of one control

Worst case, make a separate GUI for the control, remove titlebar, margins etc, maybe cut it out with WinSet Region, then apply the transparency and Anchor() it to the main GUI.
by nimda
02 Jun 2014, 22:50
Forum: Ask for Help (v1)
Topic: Transparency of one control
Replies: 3
Views: 1820

Re: Transparency of one control

Controls have HWNDs as well; have you tried running Winset, Transcolor giving the hwnd of the control?
by nimda
02 Jun 2014, 22:46
Forum: Ask for Help (v1)
Topic: Send alt-JT in Outlook inserts time stamp?
Replies: 3
Views: 2509

Re: Send alt-JT in Outlook inserts time stamp?

What does just !j do? Can you then press t manually and get the desired result? (Not the solution, just feeling out the problem.)
by nimda
02 Jun 2014, 22:44
Forum: Ask for Help (v1)
Topic: How to transform like "€ " this code into character?
Replies: 8
Views: 3878

Re: How to transform like "€ " this code into characte

There are a few established libraries for this. HTML_Decode: http://www.autohotkey.com/board/topic/68222-func-html-decode-converts-html-entities-ahk-blunicode/ unHTML: http://www.autohotkey.com/board/topic/34992-stdlib-unhtml-strips-tags-and-entities-from-given-source/ unHTM: http://www.autohotkey.c...
by nimda
22 May 2014, 21:51
Forum: Ask for Help (v1)
Topic: Next key-value pair in assosiative array
Replies: 3
Views: 2447

Re: Next key-value pair in assosiative array

Until someone with more knowledge of AHK's inner workings comes along, you might try this:

Code: Select all

array:={1:"a",3:"b",1000:"c"}
linked := {}

for key in array
{
    if (A_Index > 1)
        linked[previous_key] := key
    previous_key := key
}

MsgBox % linked[3]
by nimda
22 May 2014, 10:21
Forum: About This Community
Topic: Documentation formatting changes?
Replies: 53
Views: 29856

Re: Documentation formatting changes?

See #95 Navigation components . very nice. and the <hr> s under the green headings make the doc pages much more readable (edit: actually looks like its a border-bottom but w/e) compare http://ahkscript.org/docs/commands/WinGetText.htm and https://googledrive.com/host/0Bw_Sh-zoqtWpbTVCVG1Gb00tT2c/do...
by nimda
22 May 2014, 09:06
Forum: Ask for Help (v1)
Topic: Mouse wheel conditional mapping
Replies: 3
Views: 2926

Re: Mouse wheel conditional mapping

You've already done the hard part, it seems. WheelUp:: if getKeyState("Down", "P"){ Send {Down Up} } else { Send {Up Down} } return WheelDown:: if getKeyState("Up", "P"){ Send {Up Up} } else { Send {Down Down} } return Try that. I see a few potential pitfalls. I believe if the keyboard hook is insta...
by nimda
21 May 2014, 20:45
Forum: Ask for Help (v1)
Topic: Mouse wheel conditional mapping
Replies: 3
Views: 2926

Re: Mouse wheel conditional mapping

Sure. The key is to use the keyboard hook so that when the shift+wheel sends a wheel, that wheel doesn't in turn send an arrow. $WheelUp::Up $WheelDown::Down +WheelUp::WheelUp +WheelDown::WheelDown This doesn't work for me due to a driver-level remap of shift+wheelup to wheelLeft. In my case I would...
by nimda
21 May 2014, 17:26
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4893
Views: 1392966

Re: « What's on your mind? » Topic is solved

Mathematicians avoid the beach because they can just divide sine by cosine to get a tan.


>________>
by nimda
09 May 2014, 12:01
Forum: Ask for Help (v1)
Topic: TreeView Comma & Variable
Replies: 2
Views: 1675

Re: TreeView Comma & Variable

You're looking for concatenation.

http://www.autohotkey.com/docs/Variables.htm#concat
by nimda
30 Apr 2014, 19:43
Forum: About This Community
Topic: Documentation formatting changes?
Replies: 53
Views: 29856

Documentation formatting changes?

I find the new formatting to be disorganized and very hard to read. Compare:
http://www.autohotkey.com/docs/commands/Run.htm
http://ahkscript.org/docs/commands/Run.htm

Tables are much better for presenting tabular data, IMHO.

Go to advanced search