Search found 18 matches

by nitrofenix
28 Nov 2019, 02:49
Forum: Ask for Help (v1)
Topic: which Windows versions does AutoHotkey support?
Replies: 2
Views: 3074

Re: which Windows versions does AutoHotkey support?

Patch notes for 1.1.32 show this:
lexikos wrote:Removed obsolete Windows 9x/NT4 support code and performed other maintenance.
by nitrofenix
26 Nov 2019, 22:41
Forum: Ask for Help (v1)
Topic: How Do I Format This Excel COM to Insert Variable?
Replies: 1
Views: 475

Re: How Do I Format This Excel COM to Insert Variable?

No need to define the xlWhole or xlPart enums, try this for the radio buttons:

Code: Select all

If RadioWhole = 1

   WholePartial := 1

Else If RadioPartial = 1

   WholePartial := 2
And keep the Find method as you have it.
by nitrofenix
20 Nov 2019, 22:43
Forum: Ask for Help (v1)
Topic: Office/WORD; COM; insert a plain text with "Selection.PasteSpecial"
Replies: 2
Views: 1041

Re: Office/WORD; COM; insert a plain text with "Selection.PasteSpecial"

Try this: wdApp.Selection.PasteSpecial(,,,, DataType := 2) The reason your original code wasn't working is that .Selection is not a valid member of a Document object (i.e., ActiveDocument). There's also no need to define the wdPasteText enum (or even DataType as I've typed above, fairly sure it will...
by nitrofenix
19 Nov 2019, 18:57
Forum: Ask for Help (v1)
Topic: How to translate javascript regex to AHK ?
Replies: 18
Views: 2582

Re: How to translate javascript regex to AHK ?

I'm not familiar with JavaScript regex, but ran it through an online regex tester and came up with this:

Code: Select all

data := RegExReplace(data, "([<])", "\n\n\n$1")
by nitrofenix
18 Nov 2019, 19:54
Forum: Ask for Help (v1)
Topic: COM Question
Replies: 3
Views: 2625

Re: COM Question

Tried UIA? It should be able to access/invoke controls, at least in theory...
by nitrofenix
14 Nov 2019, 01:29
Forum: Ask for Help (v1)
Topic: RButton not functioning if used in the script
Replies: 4
Views: 634

Re: RButton not functioning if used in the script

Checking the version of AHK that I am running, it is 1.1.30.02, other people have version 1.1.30.03. This script used to work for me on another computer and I think I was running version 1.1.30.01 back than. Unfortunately I am in a company environment and can only download/install what is available...
by nitrofenix
13 Nov 2019, 22:57
Forum: Ask for Help (v1)
Topic: RButton not functioning if used in the script
Replies: 4
Views: 634

Re: RButton not functioning if used in the script

Just spit-balling, but tried SendEvent?

Code: Select all

RButton::SendEvent {RButton}
by nitrofenix
10 Nov 2019, 22:16
Forum: Ask for Help (v1)
Topic: Clicking on an object using UIA? (UI automation) Topic is solved
Replies: 13
Views: 11076

Re: Clicking on an object using UIA? (UI automation) Topic is solved

Haven't had time to play with it in-depth, but would first suggest checking out this post and checking out both Inspect.ahk and UIA.ahk from the linked GitHub, since it will shortcut your way around looking-up/coding vtable offsets. This is how they've achieved it in Inspect.ahk as part of an IUIAut...
by nitrofenix
07 Nov 2019, 23:05
Forum: Ask for Help (v1)
Topic: Clicking on an object using UIA? (UI automation) Topic is solved
Replies: 13
Views: 11076

Re: Clicking on an object using UIA? (UI automation) Topic is solved

Have only played with UIA fleetingly, so might be barking up the wrong tree, but have you tried accessing either UIA_BoundingRectanglePropertyId or UIA_CenterPointPropertyId for the IUIAutomationElement? Assuming you can process/access the returned coordinates, it should allow you to then feed the X...
by nitrofenix
07 Nov 2019, 19:33
Forum: Ask for Help (v1)
Topic: Open Excel or when already active go to active Excel window
Replies: 15
Views: 9399

Re: Open Excel or when already active go to active Excel window

WinActivate, Excel But, this will work until Excel releases an update which removes the '- Excel' part after the title in the header of the window :) Adding my $0.02 -- I used this for bringing Excel to the front and switching to the required workbook, matching title by handle rather than a string:...
by nitrofenix
10 Oct 2019, 20:31
Forum: Ask for Help (v1)
Topic: Triggering events - Internet Explorer Topic is solved
Replies: 14
Views: 2972

Re: Triggering events - Internet Explorer Topic is solved

Hi nitrofenix, thanks for the reply. <snip> Any more ideas?? How can the outerHTML be updated with the changed .value? Just checking -- does Loginname actually contain a value? This seemed to work for me (getIEobj is just a helper function for getting/setting my IE object): oIE := getIEobj("http au...
by nitrofenix
09 Oct 2019, 22:30
Forum: Ask for Help (v1)
Topic: Triggering events - Internet Explorer Topic is solved
Replies: 14
Views: 2972

Re: Triggering events - Internet Explorer Topic is solved

After manually inserting the login name into the field … the class part has changed as the field contains no longer "ng-untouched" or "ng-empty", it is now "ng-not-empty", "ng-dirty" Does it work if you manipulate the ClassName of the input field to match what happens when you manually insert the l...
by nitrofenix
09 Oct 2019, 21:48
Forum: Ask for Help (v1)
Topic: Making a macro for work
Replies: 2
Views: 499

Re: Making a macro for work

Have you looked into using COM/DOM? I think it might be easier to find all buttons of a certain class/style/etc and click them using some kind of timed loop.

There's a pretty good guide in the Tutorials subforum here.
by nitrofenix
03 Oct 2019, 04:00
Forum: Gaming Help (v1)
Topic: AHK Veteran Puzzled by Mouse in Inquisitor Game
Replies: 9
Views: 2493

Re: AHK Veteran Puzzled by Mouse in Inquisitor Game

Have you tried setting CoordMode? As far as I understand it, MouseGetPos should return coordinates relative to the active window without setting it, but setting it explicitly might be worth experimenting with.

Something like:

Code: Select all

CoordMode, Mouse, Client
by nitrofenix
03 Oct 2019, 03:48
Forum: Gaming Help (v1)
Topic: Disable Alt+Enter in game
Replies: 2
Views: 1666

Re: Disable Alt+Enter in game

Have you tried using ahk_class or ahk_exe rather than matching the window by title? Could also try using a different SendMode? Something like this (amend the exe name to suit, I took a guess at what it actually is -- also, I use braces with #IfWin from habit but I don't know if it makes a massive di...
by nitrofenix
02 Oct 2019, 03:32
Forum: Ask for Help (v1)
Topic: problem with the global variable
Replies: 5
Views: 1274

Re: problem with the global variable

You'll need to amend your syntax for MsgBox slightly to force it to evaluate the variable:

Code: Select all

global test := "x"

#f11::
global test
msgbox, % test
return
by nitrofenix
20 Sep 2019, 22:53
Forum: Other Programming Languages
Topic: Excel Question (Data Validation)
Replies: 7
Views: 9590

Re: Excel Question (Data Validation)

i want this code in AHK But i can't find 'With' statement in AHK What should I do? You don't really need it -- what you do need is to enumerate xlValidateList, xlValidAlertStop and xlEqual (or have variables/constants for them): F1:: xl:=ComObjActive("Excel.Application") xl.Visible := True ; xlVali...

Go to advanced search