Search found 37 matches

by Tre4shunter
02 Jul 2019, 13:50
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 147
Views: 46054

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Hey Rinkadink - have you looked at the examples included with the Chrome.ahk class? They should tell you what you need to know - but if you are still confused, let me know and i can work up a quick example for you if you think you still need it. And thanks to Geekdude of course! Amazing work as alwa...
by Tre4shunter
10 Jan 2019, 08:08
Forum: Scripts and Functions
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 289
Views: 100214

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

haha how'd you know?!!? But, yes, always helpful! Your WebApp.ahk was my originial inspiration for most of my html gui projects!

Thanks again!
by Tre4shunter
09 Jan 2019, 19:30
Forum: Scripts and Functions
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 289
Views: 100214

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

Hey guys - Got another ActiveX Gui project. Calendar this time. I guess these are more of a display of HTML/CSS rather than Autohotkey but, oh well :P It is fully resizable, and can add events including multiday events dynamically. Still alot of work to do as far as even adding goes, but the interfa...
by Tre4shunter
06 Jan 2019, 13:07
Forum: Scripts and Functions
Topic: Excel Enum Constants Search
Replies: 13
Views: 1441

Re: Excel Enum Constants Search

Extremely useful script! Thanks so much for posting!
by Tre4shunter
18 Oct 2018, 07:52
Forum: Scripts and Functions
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 289
Views: 100214

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

Thanks guys :D Actually, i specifically did not want to use any external libraries, so its all done in pure CSS/HTML - no jQuery or anything. Also - the only Javascript i used was to attached onclick handlers and such to certain dynamically created elements. Here is a highly modified version - norma...
by Tre4shunter
10 Oct 2017, 21:00
Forum: Scripts and Functions
Topic: Func - AutoFit Row height on Excel Merged Cells
Replies: 0
Views: 579

Func - AutoFit Row height on Excel Merged Cells

Hey guys - Had to do this today for a project - thought it might be useful as you cannot use Excel's built in features to Autofit Row heights with word wrap enabled on cells that are merged. This function will allow the cell range you specify to autofit the row height so all text is visible in a mer...
by Tre4shunter
05 Sep 2017, 11:15
Forum: Tutorials
Topic: Using Selenium with AutoHotkey- Cross browser automation!
Replies: 98
Views: 36794

Re: Using Selenium with AutoHotkey- Cross browser automation!

Hey Joe! First off, thanks for all your other COM Tutorials as well as this one :) i use COM everyday now. I got Selenium up and running with AHK - and my first issue was not being able to connect to an exisiting instance of chrome - which as you stated doesnt look like can be done. However, i came ...
by Tre4shunter
31 Aug 2017, 08:17
Forum: Ask For Help
Topic: Converting DLL VBA code to AHK
Replies: 5
Views: 747

Re: Converting DLL VBA code to AHK

Thanks Capn Odin! i was able to get the 'connect' dllcall working with this: RTUConnect() { VarSetCapacity(Conf,48) NumPut(2,Conf,0) NumPut(19200,Conf,8) NumPut(0,Conf,16) NumPut(2,Conf,24) NumPut(300,Conf,32) NumPut(20,Conf,40) ret := dllcall("modbusdll\[email protected]",Ptr,&Conf) msgbo...
by Tre4shunter
30 Aug 2017, 08:06
Forum: Ask For Help
Topic: Converting DLL VBA code to AHK
Replies: 5
Views: 747

Re: Converting DLL VBA code to AHK

I use modbus alot for my job - and i am interested in using AHK to interact directly with certain hardware which are modbus RTU slave devices. If i can get this working, then i will be able to develop custom testing/datalogging/interfaces to alot of the instrumentation i deal with daily.

Thanks!
by Tre4shunter
30 Aug 2017, 07:34
Forum: Ask For Help
Topic: Converting DLL VBA code to AHK
Replies: 5
Views: 747

Converting DLL VBA code to AHK

Hey guys, I have a dll for modbus RTU functions which is working with an excel VBA program - i would like to see if i can make it work from within VBA. I'm pretty new to using dllcall, and also interpreting what params i need to send to the functions in the DLL. Heres the code from the VBA which i w...
by Tre4shunter
17 Apr 2017, 10:50
Forum: Scripts and Functions
Topic: Window Activate/Browser Tab Activate
Replies: 13
Views: 3275

Re: Window Activate/Browser Tab Activate

Try this: I removed includes, and just added everything to main script for you. It should work fine. What is your AHK version? ;~ https://autohotkey.com/boards/viewtopic.php?f=6&t=24716&sid=15508c1eb2e61c2e2cb26cd3503a6450 click, 1078, 574, 0 if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ; Requ...
by Tre4shunter
04 Apr 2017, 08:05
Forum: Scripts and Functions
Topic: Class_ScrollGUI - updated on 2015-03-13
Replies: 75
Views: 18008

Re: Class_ScrollGUI - updated on 2015-03-13

First off - Amazing class as always! Thank you!! Im using it almost to create a 'fake' tab control with each tab scrollable. Here is my current code: #NoEnv SetBatchLines, -1 ;Child GUI 1 Gui, New, +hwndHGUI Gui, Margin, 10, 10 Loop, 6 { Gui,Add,Text, ,First Section Gui, Add, combobox, w400 } ;Child...
by Tre4shunter
31 Mar 2017, 20:38
Forum: Scripts and Functions
Topic: Google Authentication Tool/Tracker
Replies: 0
Views: 404

Google Authentication Tool/Tracker

I put this together while trying to organize my own google API authorizations because my methods for acquiring access and refresh tokens and authorizing scopes was, well, terrible. This is a little better, i hope. You will need to Create a google API project in order to use this script. It's not har...
by Tre4shunter
28 Mar 2017, 07:53
Forum: Scripts and Functions
Topic: Window Activate/Browser Tab Activate
Replies: 13
Views: 3275

Re: Window Activate/Browser Tab Activate

Thanks so much for taking a look!

I wasnt really sure where to go with the code from here - as it was mostly just a proof of concept for me at the time. I might make some sort of a keyboard control scheme for it - for faster switching between windows/tabs and items etc etc.

Thanks!
by Tre4shunter
09 Dec 2016, 08:43
Forum: Ask For Help
Topic: Excel ComObject leaves excel.exe open after closing?
Replies: 10
Views: 1456

Re: Excel ComObject leaves excel.exe open after closing?

I think this is what you need: LRLocation := A_ScriptDir . "\" . "test" . ".xlsm" xl := ComObjCreate("Excel.Application") xl.application.displayalerts := 0 xl.Visible := true path = C:\Users\md.GESINC1.000\Desktop\contacts.xlsx xla := xl.WorkBooks.Open(Path) SaveLoc := A_MyDocuments . "\test - Price...
by Tre4shunter
09 Dec 2016, 08:09
Forum: Ask For Help
Topic: Help writing XML with namespace delcarations
Replies: 3
Views: 674

Re: Help writing XML with namespace delcarations

Yes, i definitely could use fileappends or just build variables with concatenations - but i just want to figure it out using an actual XML builder. But i guess if i cant, ill be building the xml strings manually :(
by Tre4shunter
08 Dec 2016, 16:47
Forum: Ask For Help
Topic: Parsing text file Topic is solved
Replies: 8
Views: 1076

Re: Parsing text file Topic is solved

I'm glad! mark topic as solved?
by Tre4shunter
08 Dec 2016, 16:15
Forum: Ask For Help
Topic: Parsing text file Topic is solved
Replies: 8
Views: 1076

Re: Parsing text file Topic is solved

Try something like this:

Code: Select all

Loop,read,C:\Users\md.GESINC1.000\Desktop\errors.txt
{
	If(LogNextLine=1)
	{
		msgbox % A_LoopReadLine
		LogNextLine:=
	}
	If(A_LoopReadLine="***ERROR***")
		LogNextLine=1
}


exitapp
There are other ways to do it as well, but that should work.

-Tre4
by Tre4shunter
08 Dec 2016, 15:19
Forum: Ask For Help
Topic: Help writing XML with namespace delcarations
Replies: 3
Views: 674

Help writing XML with namespace delcarations

Hi all, I'm trying to write XML use CoCo's XML class - and I'm hung up trying to add elements which have a namespace associated. Here is an example of the xml i need to create: <feed xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:batch="http://schemas.goog...

Go to advanced search