Search found 170 matches

by Grendahl
26 Feb 2024, 12:02
Forum: Ask for Help (v2)
Topic: Help converting OnScreen Display function to v2
Replies: 12
Views: 581

Re: Help converting OnScreen Display function to v2

do a gui close before you call it the second time
by Grendahl
27 Jan 2023, 20:18
Forum: Ask for Help (v2)
Topic: Help converting OnScreen Display function to v2
Replies: 12
Views: 581

Help converting OnScreen Display function to v2

I've got a function from AHK v1.1 that pops up text in an on screen display, and I'm having a bear of a time getting it translated to AHK v2. Anyone able to assist? V1.1 code: ; Function to show OSD text OSD(Text, Color:="Lime", Size:=24, TimeInSec:=3) { Progress, y75 B ZH0 FM%Size% CWBlack CT%Color...
by Grendahl
27 Jan 2023, 15:30
Forum: Ask for Help (v2)
Topic: Error: Invalid key name Topic is solved
Replies: 4
Views: 904

Re: Error: Invalid key name Topic is solved

Thanks, that was it! I see what I was doing wrong there too. :)
by Grendahl
27 Jan 2023, 14:57
Forum: Ask for Help (v2)
Topic: Error: Invalid key name Topic is solved
Replies: 4
Views: 904

Re: Error: Invalid key name Topic is solved

keys := [] ;Build lookup array, declare hotkeys Loop % key_list.MaxIndex() { key := key_list[A_Index] keys[key] := 0 ; init array values hotkey, $*%key%, keydown ; Declare hotkeys for up and down events hotkey, $*%key% up, keyup } Loop { for sendkey, value in keys { ; Loop through each of the keys ...
by Grendahl
27 Jan 2023, 14:37
Forum: Ask for Help (v2)
Topic: Error: Invalid key name Topic is solved
Replies: 4
Views: 904

Error: Invalid key name Topic is solved

I'm getting the error: Error: Invalid key name. Text: keydown The program will exit. from the code below. It was fine in 1.1L, but I'm having issues converting these two to v2. Anyone have any suggestions? Loop { for sendkey, value in keys { ; Loop through each of the keys in key_list if (value){ Se...
by Grendahl
23 Jan 2023, 14:49
Forum: Ask for Help (v1)
Topic: seeking Oauth2 lib
Replies: 2
Views: 323

Re: seeking Oauth2 lib

Not quite what I asked for. Anyone else?
by Grendahl
20 Jan 2023, 15:02
Forum: Ask for Help (v1)
Topic: seeking Oauth2 lib
Replies: 2
Views: 323

seeking Oauth2 lib

Does anyone have a link to a good copy of Oauth2.ahk or the Oauth2 lib?
Searching the forums here, github, and the web in general have yielded no valid links.
by Grendahl
17 Apr 2021, 19:30
Forum: Gaming Help (v1)
Topic: World Of Warcraft Press once A Hotkey And Spam it Topic is solved
Replies: 8
Views: 2053

Re: World Of Warcraft Press once A Hotkey And Spam it Topic is solved

@ali_tx
No, because that would be game automation instead of a simple keyspammer, and would be against ToS.
by Grendahl
11 Mar 2021, 10:22
Forum: Gaming Help (v1)
Topic: World Of Warcraft Press once A Hotkey And Spam it Topic is solved
Replies: 8
Views: 2053

Re: World Of Warcraft Press once A Hotkey And Spam it Topic is solved

ali_tx wrote:
11 Mar 2021, 09:06
sry but this script is like Press-and-Hold: Send or click while a button or key is held down
but i want to be like Toggle: Press once to activate, press again to turn it off tnx for your help & time
Then change it to a toggle instead of a getkeystate.
by Grendahl
11 Mar 2021, 08:54
Forum: Gaming Help (v1)
Topic: World Of Warcraft Press once A Hotkey And Spam it Topic is solved
Replies: 8
Views: 2053

Re: World Of Warcraft Press once A Hotkey And Spam it Topic is solved

Hi there guys. I'm new to AHK im looking for a script by pressing a hotkey once and realse it then it start to spam that hotkey . I want to make it for binds like 1-9 And q,w,e,r,t,y,u,a,s,d,f,g,z,x,c,v or i don't mind if it work on all keybidings if it's easier to make it for all keys I would also...
by Grendahl
13 Aug 2018, 12:25
Forum: Scripts and Functions (v1)
Topic: Play a sound every 00 and 30 minute marks
Replies: 2
Views: 1726

Re: Play a sound every 00 and 30 minute marks

You could also do something like this: ; ; TimeSpeak v1.1 ; by Grendahl ; Announces the time on the hour using Microsoft's text-to-speech engine ; ; Change Log ; v1.1 (2011-11-28) ; First version (inspired by http://www.autohotkey.com/forum/viewtopic.php?t=14305) ;********** settings, variable decla...
by Grendahl
09 Mar 2018, 13:16
Forum: Ask for Help (v1)
Topic: Mouse move, click, and click/drag in two differently sized windows
Replies: 0
Views: 1013

Mouse move, click, and click/drag in two differently sized windows

Thanks to Lexikos and his post at https://autohotkey.com/board/topic/40638-controlclick-dragging/#entry254408 I'm at least able to get clicking and dragging working between windows. The hitch is that I need to do the same but on differently scaled windows. EDIT: I got the scaling working. Still need...
by Grendahl
17 Mar 2017, 07:48
Forum: Ask for Help (v1)
Topic: Multiple ListViews in one GUI
Replies: 3
Views: 2407

Re: Multiple ListViews in one GUI

Figured it out.
The winspy utility shows them all as having the same ID, but they can be called.

Winspy says the control is named SysListView321, but I can call the sixth one like this:
ControlGet, DSTHLV, Hwnd,,SysListView326,%WindowName%
by Grendahl
09 Mar 2017, 09:51
Forum: Ask for Help (v1)
Topic: Multiple ListViews in one GUI
Replies: 3
Views: 2407

Multiple ListViews in one GUI

How do I get highlighting to only apply to a specified ListView when there are multiple ListViews in one GUI? ; ; AutoHotkey Version: 1.1_L ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other <myemail@nowhere.com> ; ; Script Function: ; Template script (you can customize this template by ed...
by Grendahl
16 Feb 2017, 11:10
Forum: Ask for Help (v1)
Topic: Copy & Paste Scripts
Replies: 5
Views: 52059

Re: Copy & Paste Scripts

Start here...
https://autohotkey.com/docs/Tutorial.htm

You're looking to create hotkeys.
by Grendahl
16 Feb 2017, 09:56
Forum: Ask for Help (v1)
Topic: Copy & Paste Scripts
Replies: 5
Views: 52059

Re: Copy & Paste Scripts

Paste your code in the forums here, using CODE tags from the full editor, and people can help.

Example:

Code: Select all

;this is a code block
MsgBox This is a message box
by Grendahl
16 Feb 2017, 09:16
Forum: Gaming Help (v1)
Topic: Imagesearch failure (new and confused!)
Replies: 1
Views: 1086

Re: Imagesearch failure (new and confused!)

ImageSearch, x, y, 532 , 903, 988, 948, C:\Users\EXAMPLE\Desktop\PixelMacro\buff1.bmp

the output variables are required.
by Grendahl
16 Feb 2017, 09:08
Forum: Gaming Help (v1)
Topic: Game Rotation Script, Need Help Topic is solved
Replies: 3
Views: 1778

Re: Game Rotation Script, Need Help Topic is solved

For one, you are in expression mode with your variable assignments, so anything that is a letter won't work.

For example,
habq := q
should be
habq := "q"
by Grendahl
06 Feb 2017, 11:37
Forum: Ask for Help (v1)
Topic: simple example of using file dll
Replies: 6
Views: 1764

Re: simple example of using file dll

Sorry... let me re-paste the code.
I'll edit my other post

Go to advanced search