Search found 68 matches

by AHK_user
05 Jul 2020, 02:13
Forum: Ask For Help
Topic: WinActivate on Chrome tabs
Replies: 6
Views: 2552

Re: WinActivate on Chrome tabs

For the latest chrome, I made some modifications to make it work: ChromeActivate(SearchText, AccPath_TabList := "4.1.2.1.1.1") { TabList := Acc_Get("Object", AccPath_TabList, 0, "ahk_class Chrome_WidgetWin_1") Loop, % Acc_Children(TabList).MaxIndex() { _tab := Acc_Child(TabList, A_Index) tabTitle :=...
by AHK_user
01 Jul 2020, 13:13
Forum: Gaming
Topic: New to AHK. Trying to figure out how to make a GUI visible.
Replies: 2
Views: 1023

Re: New to AHK. Trying to figure out how to make a GUI visible.

This script seems to result in a visible gui, so I do not understand the problem.
by AHK_user
01 Jul 2020, 13:04
Forum: Ask For Help
Topic: Advice: Abstracting a Program GUI as a Class?
Replies: 2
Views: 1235

Re: Advice: Abstracting a Program GUI as a Class?

In this post you find a few examples, including mine that makes it simple to add tooltip and statusbar responses to the controls.
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=68912&start=20
by AHK_user
29 Jun 2020, 13:40
Forum: Scripts and Functions
Topic: Ixiko's collections of functions and libraries
Replies: 27
Views: 10653

Re: Ixiko's collections of functions and libraries

Extreme interesting collection and very nicely documented :bravo:
It will take a while to study this.

Maybe an idea to add some extra buttons in the AHK-Rara_TheGui to let users add missing examples and descriptions en send the data to you to update the documentation of the functions.
by AHK_user
22 Jun 2020, 14:28
Forum: Ask For Help
Topic: Excel COM objects and sharepoint
Replies: 0
Views: 256

Excel COM objects and sharepoint

Does anybody has some experience with using COM objects in an excel file that is edited by multiple users? At my work, we use an excel with sharepoint that we edit at the same time, but as a result we disconnect a lot. So we get a message that the file is not syncronized anymore and needs to be clos...
by AHK_user
20 Jun 2020, 11:50
Forum: Ask For Help
Topic: Autohotkey in Excel
Replies: 9
Views: 2526

Re: Autohotkey in Excel

I think the correct code is: Send ^gG14{Enter}^c But I would recommend a different approach, the use of com objects gives a lot of control, flexibility and speed: oExcel := Excel_Get() MsgBox, % oExcel.ActiveWorkbook.ActiveSheet.Range("G14").value return Excel_Get(WinTitle="ahk_class XLMAIN") { ; by...
by AHK_user
11 Mar 2020, 15:13
Forum: Gaming
Topic: *.ini file <=> *.ahk Topic is solved
Replies: 4
Views: 749

Re: *.ini file <=> *.ahk Topic is solved

Here is a working example: #SingleInstance, Force SetWorkingDir %A_ScriptDir% iniFile = Temp.ini IniRead, V_Input1, %iniFile%, Section, Input1 IniRead, V_Input2, %iniFile%, Section, Input2 IniRead, V_Input3, %iniFile%, Section, Input3, No Gui, Add, Text, x12 y9 w360 h40, > AutoHotKey Forum < try to ...
by AHK_user
09 Mar 2020, 06:21
Forum: Ask For Help
Topic: Keep my code safe from casual coders
Replies: 6
Views: 795

Re: Keep my code safe from casual coders

I haven't tried/tested it, but you could try AHK Dynamic Obfuscator L by DigiDon:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=49887&hilit=encrypt+code
by AHK_user
02 Mar 2020, 06:20
Forum: Ask For Help
Topic: Combing Keys
Replies: 7
Views: 388

Re: Combing Keys

I spotted a mistake in my latest code, maybe this will fix it: I reccomend you to do some errorchecking, like adding simple MsgBox functions to check if the script is behaving as you woud predict. These can be removed if you verified that it works. #SingleInstance, Force global Toggle_F11:=1 ;#IfWin...
by AHK_user
01 Mar 2020, 16:13
Forum: Ask For Help
Topic: Combing Keys
Replies: 7
Views: 388

Re: Combing Keys

Strange, normally you could "reset" your key states by pressing the Ctrl and Mbutton once (to tell your system to release them). What is the name of your CAD program? You could try a different method, not checking the keystates, but tolling with a variable: #SingleInstance, Force global Toggle_F11:=...
by AHK_user
01 Mar 2020, 10:52
Forum: Ask For Help
Topic: Reading mdb files - Microsoft Data Base Access Topic is solved
Replies: 4
Views: 655

Re: Reading mdb files - Microsoft Data Base Access Topic is solved

Thanks a lot, it seemed indeed that Microsoft Access Database Engine 2010 Redistributable was missing :thumbup: This helped me to start the connection. Here is a simple example how you can loop trough the data: #SingleInstance, Force ; to use this, please download "Microsoft Access Database Engine 2...
by AHK_user
01 Mar 2020, 02:32
Forum: Ask For Help
Topic: Combing Keys
Replies: 7
Views: 388

Re: Combing Keys

This code should work.

Code: Select all

#SingleInstance, Force

;#IfWinActive, Ahk_exe Program.exe
F11::
if (GetKeyState("Ctrl") = "D" or GetKeyState("MButton") = "D"){
	SendInput,  {Ctrl Up}{MButton Up}
}
else{
	SendInput,  {Ctrl Down}{MButton Down}
}
return
by AHK_user
01 Mar 2020, 02:12
Forum: Forum Issues
Topic: Slow forum
Replies: 88
Views: 14720

Re: Slow forum

Good job!
:bravo:
by AHK_user
29 Feb 2020, 12:53
Forum: Ask For Help
Topic: Help setting default printer (picking the right one if it moves) Topic is solved
Replies: 5
Views: 426

Re: Help setting default printer (picking the right one if it moves) Topic is solved

Try to use the following functions, these should work more stable: Printer_SetDefault(sPrinter){ DefaultPrinter := Printer_GetDefault() If DefaultPrinter = %sPrinter% ; Checks if current printer is correct { return } DllCall("system32\winspool.drv\SetDefaultPrinterW", "str", sPrinter) TrayTip, Print...
by AHK_user
25 Feb 2020, 14:44
Forum: Scripts and Functions
Topic: GDIP AutoCrop
Replies: 1
Views: 475

GDIP AutoCrop

This code automatically extracts the first object from an image and automatically crops the background away. Does anybody knows a similar script that is maybe faster? If interested, I cann add that it allows a gradient background, but this would reduce the speed. Input: IMG_0203 - kopie.JPG Output: ...
by AHK_user
25 Feb 2020, 14:15
Forum: Gaming
Topic: Random Action Tool Topic is solved
Replies: 2
Views: 476

Re: Random Action Tool Topic is solved

Something like this? In this example I do not used MouseMove, a little easier to test. #SingleInstance, Force Data_coordinates= ( 100, 200 200, 200 400, 200 200, 600 200, 800 800, 200 ) Loop, Parse, Data_coordinates, `n, `r { Arr_Coord:=StrSplit(A_LoopField, ",") MouseMove, % Arr_Coord[1], % Arr_Coo...
by AHK_user
25 Feb 2020, 13:42
Forum: Ask For Help
Topic: Reading mdb files - Microsoft Data Base Access Topic is solved
Replies: 4
Views: 655

Reading mdb files - Microsoft Data Base Access Topic is solved

Does anybody has a working script to read values mdb files (microsoft data base/ Access) without MS Access on Windows 10?

I found some posts on this forum, but they appear not to work on mdb files anymore.
by AHK_user
23 Feb 2020, 15:11
Forum: Scripts and Functions
Topic: Function_Table - Loop functions through data in excel
Replies: 1
Views: 491

Re: Function_Table - Loop functions through data in excel

Update:
- Cleaned up code
- Added Function_maxtix function
by AHK_user
20 Feb 2020, 14:39
Forum: Scripts and Functions
Topic: Function_Table - Loop functions through data in excel
Replies: 1
Views: 491

Function_Table - Loop functions through data in excel

This script can be used to run ahk functions based on data in Excel. I use it a lot with custom functions to create a quick loop. How to use: - Select a table in excel with in the first column a ahk function, in the second column the first variable, in the third column the second variable,... - Pres...

Go to advanced search