Search found 177 matches

by jethrow
12 Mar 2014, 12:31
Forum: Ask for Help (v1)
Topic: autohotkey method confusion sortkey()??
Replies: 15
Views: 4375

Re: autohotkey method confusion sortkey()??

Part of the issue is you are asking a question that you yourself could answer in a few seconds by trying the code.
by jethrow
06 Mar 2014, 20:23
Forum: Ask for Help (v1)
Topic: autohotkey method confusion sortkey()??
Replies: 15
Views: 4375

Re: autohotkey method confusion sortkey()??

Skrell wrote:jethrow, you removed all the ':' from my original array, did you do that on purpose?
Yes, but I updated my post so it's simpler & more effective.
Also, how are the methods SortArrayByValue and SortArrayByKey EVER called as i don't seem them references in any of the msgbox calls.
Fixed that too.
by jethrow
06 Mar 2014, 15:41
Forum: Ask for Help (v1)
Topic: autohotkey method confusion sortkey()??
Replies: 15
Views: 4375

Re: autohotkey method confusion sortkey()??

Skrell wrote:3. The thing i'm MOST confused about is that it seems like both SortKey and SortValue are already defined and we're using them to create these new functions (ByValue, ByKey). Please help clarify.
Nope - method/function beyond normal object members must be defined by the user.
by jethrow
06 Mar 2014, 01:43
Forum: Ask for Help (v1)
Topic: autohotkey method confusion sortkey()??
Replies: 15
Views: 4375

Re: autohotkey method confusion sortkey()??

... this is why the class syntax was introduced. This might be easier to understand: arr:={a:10,b:"test",c:"AHK",1:2,2:"hello", base:SortArray} MsgBox % arr.SortKey() MsgBox % arr.SortKey("ByValue") MsgBox % arr.SortValue() MsgBox % arr.SortValue("ByKey") class SortArray { SortValue(options="",delim...
by jethrow
04 Mar 2014, 16:08
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4897
Views: 1398779

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

nnnik wrote:Nope you need to calculate with your head from time to time.
Sounds like the foot logic :) . I don't even know you, yet I can tell you your forearm is 1 foot. If you doubt, take your shoe off & check.
by jethrow
04 Mar 2014, 14:38
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4897
Views: 1398779

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

Logically speaking, shouldn't everything be base 2? :)
by jethrow
04 Mar 2014, 02:58
Forum: Ask for Help (v1)
Topic: [solved] Focus On A Field In Internet Explorer
Replies: 8
Views: 8022

Re: Focus On A Field In Internet Explorer

Using the developer menu in Internet Explorer, I have selected the field that I am trying to focus on and have found the following attributes: tabindex 1 id txtUserName The window name according to windowspy is: Report Exec - Windows Internet Explorer ahk_class IEFrame ClassNN: Internet Explorer_Se...
by jethrow
04 Mar 2014, 01:49
Forum: Ask for Help (v1)
Topic: [solved] Focus On A Field In Internet Explorer
Replies: 8
Views: 8022

Re: Focus On A Field In Internet Explorer

levisimcoe wrote:I have tried using javascript, COM, and I can't seem to get anything to work.
Can you post what you've tried?

Also, have you read through these tutorials?
by jethrow
25 Feb 2014, 02:14
Forum: Tutorials (v1)
Topic: [How To] Implement Tabstop for ActiveX > Shell.Explorer
Replies: 5
Views: 9198

Re: [How To] Implement Tabstop for ActiveX > Shell.Explorer

Please confirm - the following is all that would need updated to make this 32bit/64bit compatible: ;~ Original: TranslateAccelerator := NumGet( NumGet( pipa+0 ) + 20 ) ;~ Updated: TranslateAccelerator := NumGet( NumGet( pipa+0 ) + 5*A_PtrSize ) ;~ Original VarSetCapacity( MSG, 28, 0 ) ; MSG STructur...
by jethrow
25 Feb 2014, 00:46
Forum: Ask for Help (v1)
Topic: calling MSWord macros from AHK scripts
Replies: 2
Views: 1493

Re: calling MSWord macros from AHK scripts

I want to change the font color of the selected text. This seems easier to do this with a VBA macro that I have written ... The AHK equivalent is actually easier, imo. Here's an example: Word := ComObjActive("Word.Application") Word.Selection.Range.Font.ColorIndex := 6 ... you may notice this looks...
by jethrow
23 Feb 2014, 16:24
Forum: Scripts and Functions (v1)
Topic: Internet Explorer / FireFox - Activate Tab (UIA - 64bit AHK)
Replies: 15
Views: 9124

Re: Internet Explorer / FireFox - Activate Tab (UIA - 64bit

With 64 bit compatible you mean the AHK version or do you mean the OS? I have here only Win7 x64. 64bit AHK - which would then limit the user to a 64bit OS. I already know the issue exists using 32bit AHK on 64bit Win7. I've seen a page that mentions Pointer Truncation as an issue, but I'm not sure...
by jethrow
22 Feb 2014, 01:28
Forum: Scripts and Functions (v1)
Topic: Internet Explorer / FireFox - Activate Tab (UIA - 64bit AHK)
Replies: 15
Views: 9124

Re: Internet Explorer / FireFox - Activate Tab (UIA - 64bit

Could someone test whether this issue exists on 32bit windows? Ideally WIN7 or XP SP3.
by jethrow
21 Feb 2014, 09:56
Forum: Off-topic Discussion
Topic: How Can Rockets Travel To The Moon, If MoonTravels at 6mKPM
Replies: 36
Views: 17677

Re: How Can Rockets Travel To The Moon, If MoonTravels at 6m

From what perspective - you in the car, or someone standing still outside the car? If you look look at yourself in the mirror, you will still see your reflection, and you will still see your headlights as normal. But then, how do we measure what we see - what medium is it relative to?
by jethrow
20 Feb 2014, 15:53
Forum: Ask for Help (v1)
Topic: if var is number, numeric string key of object
Replies: 13
Views: 7316

Re: if var is number, numeric string key of object

I believe you've touched here on a minor issue that in one way or another will be resolved in v2. For now, consider the following: obj := {1: "chicken", 2: "cow", 3: "duck", "1": "CH", 2: "CO", 3: "DU"} for key, val in obj if obj.haskey(key+0) nums .= key " :: " val "`n" for key, val in obj if obj.h...
by jethrow
20 Feb 2014, 10:18
Forum: Ask for Help (v1)
Topic: Click a Action button in webpage with COM
Replies: 1
Views: 1260

Re: Click a Action button in webpage with COM

You can prolly just submit the form. The form looks to be 2 levels above the textbox element you accessed, or you can access a forms collections using document.forms.
by jethrow
19 Feb 2014, 11:12
Forum: Ask for Help (v1)
Topic: accessing an existing web page and filling form
Replies: 15
Views: 5613

Re: accessing an existing web page and filling form

sv270190 wrote:what is WBget() ??
See your original post ... or the Tutorial I linked you to earlier in this thread.
by jethrow
19 Feb 2014, 01:59
Forum: Scripts and Functions (v1)
Topic: Internet Explorer / FireFox - Activate Tab (UIA - 64bit AHK)
Replies: 15
Views: 9124

Re: Internet Explorer / FireFox - Activate Tab (UIA - 64bit

Could you port it to 32bit or is that too much trouble? I'd like to think it's not too much trouble to port it to 32bit - is that a good enough answer? If anyone wants to point out where the library needs modified to make it 32bit compatible, I'd appreciate it. Such tasks are not my strong point. ....
by jethrow
18 Feb 2014, 15:22
Forum: Ask for Help (v1)
Topic: accessing an existing web page and filling form
Replies: 15
Views: 5613

Re: accessing an existing web page and filling form

Do you realize that the following 2 strings are equivalent? "UBILAPS " "270190" "RAILWAY FEEDER ROAD - RAJAPALAYAM" "" "UBILAPS 270190RAILWAY FEEDER ROAD - RAJAPALAYAM" The title of a window can contain pretty much any character - the question is do you know how to specify that character in a string...
by jethrow
18 Feb 2014, 11:46
Forum: Ask for Help (v1)
Topic: accessing an existing web page and filling form
Replies: 15
Views: 5613

Re: accessing an existing web page and filling form

jethrow wrote:To answer your first question [again], you shouldn't have to modify IEGet or WBGet. You can get a webbrowser object as such:

Code: Select all

wb := WBGet()
For question #2, go ahead. But what if multiple tabs have the same substring?
by jethrow
18 Feb 2014, 01:44
Forum: Scripts and Functions (v1)
Topic: Internet Explorer / FireFox - Activate Tab (UIA - 64bit AHK)
Replies: 15
Views: 9124

Re: Internet Explorer / FireFox - Activate Tab (UIA - 64bit

:roll: meh - the UIA Library is currently only 64bit compatible.

Go to advanced search