Search found 177 matches
- 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.
- 06 Mar 2014, 20:23
- Forum: Ask for Help (v1)
- Topic: autohotkey method confusion sortkey()??
- Replies: 15
- Views: 4375
Re: autohotkey method confusion sortkey()??
Yes, but I updated my post so it's simpler & more effective.Skrell wrote:jethrow, you removed all the ':' from my original array, did you do that on purpose?
Fixed that too.Also, how are the methods SortArrayByValue and SortArrayByKey EVER called as i don't seem them references in any of the msgbox calls.
- 06 Mar 2014, 15:41
- Forum: Ask for Help (v1)
- Topic: autohotkey method confusion sortkey()??
- Replies: 15
- Views: 4375
Re: autohotkey method confusion sortkey()??
Nope - method/function beyond normal object members must be defined by the user.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.
- 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...
- 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
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.nnnik wrote:Nope you need to calculate with your head from time to time.
- 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?
- 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...
- 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
Can you post what you've tried?levisimcoe wrote:I have tried using javascript, COM, and I can't seem to get anything to work.
Also, have you read through these tutorials?
- 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...
- 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...
- 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...
- 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.
- 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?
- 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...
- 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.
- 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
See your original post ... or the Tutorial I linked you to earlier in this thread.sv270190 wrote:what is WBget() ??
- 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. ....
- 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...
- 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
For question #2, go ahead. But what if multiple tabs have the same substring?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()
- 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
meh - the UIA Library is currently only 64bit compatible.