Search found 20 matches

by steventaitinger
02 May 2018, 11:12
Forum: Ask for Help (v1)
Topic: wb.navigate Javasript function
Replies: 19
Views: 9452

Re: wb.navigate Javasript function

@Blackholyman As a side note the simpler and more direct way to get the window object you need for iniMouseEvent is just wb.document.parentWindow 90% of my issues with automating IE is with getting the right event sent to the right element to make it do what I want. Also for reference I have only ha...
by steventaitinger
29 Dec 2017, 10:55
Forum: Ask for Help (v1)
Topic: Sending an Array to Autocad ActiveX/VBA Commands via COM
Replies: 2
Views: 874

Re: Sending an Array to Autocad ActiveX/VBA Commands via COM

Thank you! For others wondering the correct syntax is pt := ComObjArray(5, 3) ; VT_R8 = 5 pt[0] := d1 pt[1] := d2 pt[2] := d3 I can't believe I didn't try that. I knew the base value was 64 bit float (ie. double) but I didn't understand that the array code was built in even though it does say that i...
by steventaitinger
28 Dec 2017, 17:16
Forum: Ask for Help (v1)
Topic: Sending an Array to Autocad ActiveX/VBA Commands via COM
Replies: 2
Views: 874

Sending an Array to Autocad ActiveX/VBA Commands via COM

I have successfully automated many parts of autocad 2015 by accessing it's base activex object via acad_handle := ComObjActive("AutoCAD.Application.20") Now I am trying to call acad_handle.ActiveDocument.PickfirstSelectionSet.Select(acSelectionSetCrossing, Point1, Point2) but I keep getting an error...
by steventaitinger
03 Sep 2015, 11:07
Forum: Scripts and Functions (v1)
Topic: Send gmail message using autohotkey gmail api and python
Replies: 0
Views: 2077

Send gmail message using autohotkey gmail api and python

Hello, Bulk of this is in python and you need python 2.7 installed probably. Then open a command window and install the dependencies... py -m -2 easy_install pyOpenSSL py -m -2 easy_install pycrypto py -m -2 easy_install google-api-python-client Tip- make sure you install the modules to the correct ...
by steventaitinger
03 Dec 2014, 10:00
Forum: Bug Reports
Topic: Debugger gives wrong error if missing a }
Replies: 3
Views: 2093

Re: Debugger gives wrong error if missing a }

Thanks Lexikos! That doesn't fully makes sense to me as I put my functions at the end of the script too but if it isn't a bug than it doesn't matter. I will just have to watch my code more!
by steventaitinger
17 Oct 2014, 16:16
Forum: Bug Reports
Topic: Debugger gives wrong error if missing a }
Replies: 3
Views: 2093

Debugger gives wrong error if missing a }

Hi, I have found several times that under certain circumstances if I am missing a } somewhere in my script than it will error out and give me an error that it can't find whatever the first library function I use is. In my case that is always Acc_x function in the Acc library in my lib folder. It thr...
by steventaitinger
06 Oct 2014, 11:16
Forum: Ask for Help (v1)
Topic: Shell com object invokeverb issues
Replies: 2
Views: 1670

Re: Shell com object invokeverb issues

Even if someone would show me how to use run to open a file in an app that would be great! like run, "app_file_name >"file_to_open"" (doesn't work for me) "app" "file" works in a command prompt. Just a stupid syntax thing I can't figure out how to do it in ahk using %comspec%... nm see below for wor...
by steventaitinger
06 Oct 2014, 10:00
Forum: Ask for Help (v1)
Topic: Shell com object invokeverb issues
Replies: 2
Views: 1670

Shell com object invokeverb issues

Hi All, So I am trying to use something like below to select the open with, and an option on the open with menu. open_in_pdf_editor(hWnd=0) { SetTitleMatchMode, RegEx If hWnd || (hWnd := WinExist("ahk_class (?:Cabinet|Explore)WClass")) { For window in ComObjCreate("Shell.Application").Windows doc :=...
by steventaitinger
30 Sep 2014, 13:02
Forum: Tips and Tricks (v1)
Topic: Faster File Loop for Multiple Queries
Replies: 2
Views: 4766

Re: Faster File Loop for Multiple Queries

Thanks for the tips Lexikos. Our files don't have ~ in it by policy and I don't want temp files because I am publishing released tech unit files to pdf so that wasn't a problem for me. I spent more time formatting our files to be consistent so I didn't have so many different cases to consider and sw...
by steventaitinger
24 Sep 2014, 15:37
Forum: Scripts and Functions (v1)
Topic: Autocad Com Scripts
Replies: 3
Views: 7096

Re: Autocad Com Scripts

If anyone could tell me how to get the below function to work in autohotkey that would be awesome! vba example ' Return the bounding box for the line and return the minimum ' and maximum extents of the box in the minExt and maxExt variables. lineObj.GetBoundingBox minExt, maxExt Autohotkey things I ...
by steventaitinger
24 Sep 2014, 13:11
Forum: Scripts and Functions (v1)
Topic: Autocad Com Scripts
Replies: 3
Views: 7096

Autocad Com Scripts

Hi All, Here is a list of tips and scripts that due useful things in Autocad. All are tested in Autocad Mechanical 2012. acad_handle:= ComObjActive("AutoCAD.Application.18") ;get a com object handle to an existing Autocad Session In the Autocad VBA help file (super hard to find online I found https:...
by steventaitinger
08 Sep 2014, 13:07
Forum: Ask for Help (v1)
Topic: How to build a sorted list of Autocad text objects
Replies: 1
Views: 1342

Re: How to build a sorted list of Autocad text objects

See working version below msgbox Select a column of values to write to acad. winactivate ahk_class XLMAIN ControlGet, hwnd, hwnd, , Excel71, ahk_class XLMAIN window := Acc_ObjectFromWindow(hwnd, -16) x_win := window.application sendinput {esc} x_win.CutCopyMode:=False loop % x_win.selection.rows.cou...
by steventaitinger
08 Sep 2014, 10:01
Forum: Ask for Help (v1)
Topic: How to build a sorted list of Autocad text objects
Replies: 1
Views: 1342

How to build a sorted list of Autocad text objects

Hi! See code below for my first attempt at this: acad_handle:= ComObjActive("AutoCAD.Application.18") ;get a com object handle to an existing Autocad Session active_selection:=acad_handle.ActiveDocument.PickfirstSelectionSet index:=0 object_list:=Object() for object in active_selection { if !(object...
by steventaitinger
14 Aug 2014, 16:09
Forum: Ask for Help (v1)
Topic: [Solved] instr neither false or true?
Replies: 5
Views: 3146

Re: [Solved] instr neither false or true?

Hi Guys, Happy to see all the responses! For any other user this is a better way to do what I was trying to do. if instr(A_LoopFileName, "~") continue When initially testing my code I found that specifically for the line with the ! I needed the parenthesis (sorry about saying bracket) like below if ...
by steventaitinger
10 Jul 2014, 11:03
Forum: Tips and Tricks (v1)
Topic: Faster File Loop for Multiple Queries
Replies: 2
Views: 4766

Faster File Loop for Multiple Queries

This is just a few tips on working with a bunch of files. Nothing shocking but I couldn't find exactly what I was looking for oline. Here is where I got some code from http://www.autohotkey.com/board/topic/98371-faster-searching-loop-of-files-in-a-folder/. I implemented the solution of building an i...
by steventaitinger
30 Jun 2014, 14:14
Forum: Ask for Help (v1)
Topic: [Solved] instr neither false or true?
Replies: 5
Views: 3146

Re: instr neither false or true?

Need brackets around instr... thanks tidbit.
by steventaitinger
30 Jun 2014, 12:37
Forum: Ask for Help (v1)
Topic: [Solved] instr neither false or true?
Replies: 5
Views: 3146

[Solved] instr neither false or true?

I have a little piece of code trying to work around the fact that loop file pattern matches with the 8.3 shortname. if instr(A_LoopFileLongPath, section_number ".doc") { msgbox % "we found " A_LoopFileLongPath " - " string } if !instr(A_LoopFileLongPath, section_number ".doc") { msgbox % A_LoopFileL...
by steventaitinger
10 Jun 2014, 18:01
Forum: Ask for Help (v1)
Topic: Using AHK with Creo or Pro/ENGINEER
Replies: 7
Views: 3715

Re: Using AHK with Creo or Pro/ENGINEER

I have had the same experience as you. Much of what it sounds like you are trying to do should be done with native mapkeys in Creo though. I am just learning that you can record mapkeys and modify them as trail files and even do quite a bit of automation that way. I would like to figure out how to g...
by steventaitinger
28 Jan 2014, 17:11
Forum: Scripts and Functions (v1)
Topic: A Somewhat Comprehensive Word Properties Miner
Replies: 2
Views: 2460

Re: A Somewhat Comprehensive Word Properties Miner

An example would be if you go and try to set the width of a cell in a table the default unit is points but potentially if you record that it could be in a percent or something like that. Autohotkey seems to handle units a lot differently than vba which I think causes some confusion (at least I was c...
by steventaitinger
14 Jan 2014, 10:33
Forum: Scripts and Functions (v1)
Topic: A Somewhat Comprehensive Word Properties Miner
Replies: 2
Views: 2460

A Somewhat Comprehensive Word Properties Miner

I used this when I needed to discover how a cell was formatted. It loops through all the cell, paragraph, and font properties/formatting options and styles and records them in excel columns so you can easily compare two formats if you are trying to duplicate an existing format. Note that when trying...

Go to advanced search