Search found 232 matches
- 09 Nov 2023, 06:41
- Forum: Ask for Help (v2)
- Topic: Question about PixelSeach
- Replies: 1
- Views: 218
Re: Question about PixelSeach
This is something I use to detect a sign out screen edit to your needs. It takes each file called "update_Artist_#" and checks for it. If it is found it will remember this location; then, some: {Tab}, {Down}, and {Enter} are sent. We then again go back to the top of the loop. Hold shift to break the...
- 06 Nov 2023, 11:05
- Forum: Ask for Help (v2)
- Topic: difference v1 or v2
- Replies: 2
- Views: 435
Re: difference v1 or v2
All Changes can be found here. For me, I prefer the syntax of version 2. You can have both installed. The installation should ask if you wish to install both versions if I recall correctly. I was only about 1yr into my AHK journey and was able to flip some scripts with a converter . Many Scripts an...
- 06 Nov 2023, 08:42
- Forum: Ask for Help (v2)
- Topic: hotkey blocked or other idea
- Replies: 14
- Views: 893
Re: hotkey blocked or other idea
there is always the same: class, exe pid and id And the same title? windowtitle.PNG Sadly, if there is no condition to check against, there is no way to detect just that window in the program. Try providing screenshots with some more information and possibly somebody will see something workable.
- 06 Nov 2023, 07:58
- Forum: Ask for Help (v2)
- Topic: Color when hovering above button
- Replies: 2
- Views: 274
Re: Color when hovering above button
#Requires AutoHotkey v2.0 ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------...
- 06 Nov 2023, 06:30
- Forum: Ask for Help (v2)
- Topic: hotkey blocked or other idea
- Replies: 14
- Views: 893
Re: hotkey blocked or other idea
continued from Everything is fine except that it fires all the time? Normally, the best option, you can change the "#HotIf (code_Entered)" to --> "#HotIf (code_Entered) && WinActive(window_Title)"; however, the window that pops up has the same EXE, Class, and everything... even the same title? Be s...
- 03 Nov 2023, 05:51
- Forum: Ask for Help (v2)
- Topic: Razer MMO Mouse + ahk + Davinci panel
- Replies: 16
- Views: 1274
Re: Razer MMO Mouse + ahk + Davinci panel
/* All of this does: Lbutton::LButton <-- replaces LButton with LButton (blocks native) ~LButton:: LButton <-- replaces LButton with LButton (sends native, causes double click) LButton & WheelUp::^WheelUp ; Vertical scroll up <-- replaces LButton WheelUp with ControlWheelUp ~LButton & WheelUp::^Whe...
- 02 Nov 2023, 11:32
- Forum: Ask for Help (v1)
- Topic: Very simple ImageSearch not working Topic is solved
- Replies: 2
- Views: 313
Re: Very simple ImageSearch not working Topic is solved
This forum is for AutoHotkey Version 2. So here is AHK Version 2 code:
Code: Select all
q:: {
Sleep(5000)
if (ImageSearch(&x, &y, 0, 0, 1919, 1079, "a.png")) {
MsgBox("true")
} else {
MsgBox("false")
}
return
}
return
- 02 Nov 2023, 11:21
- Forum: Ask for Help (v2)
- Topic: after a special barcode scan... the hotkey starts...
- Replies: 21
- Views: 2424
Re: after a special barcode scan... the hotkey starts...
THANK YOU for your many tips! I read and tried a lot. However, I always only get error messages. Very often: that I have the old version V1 in the script. Unfortunately I can't understand exactly what the V2 should look like :-( The latest code I provided was written during and runs with AutoHotkey...
- 02 Nov 2023, 08:25
- Forum: Ask for Help (v2)
- Topic: Change string to number
- Replies: 18
- Views: 1112
Re: Change string to number
I commented out the if statement and received the error. #Requires AutoHotkey 2.0 array_value := [] file_value := "Value_data.txt" value := FileRead(file_value) loop read file_value line_value := A_Index loop line_value { array_value.Push(SubStr(value, InStr(value, ";", , , A_Index) + 1, InStr(value...
- 02 Nov 2023, 08:10
- Forum: Ask for Help (v2)
- Topic: Change string to number
- Replies: 18
- Views: 1112
Re: Change string to number
I received no error with what was given as well. Maybe there is something else if the text such as a BOM?
Check out:
viewtopic.php?f=82&t=119959&hilit=math+with+string
viewtopic.php?f=82&t=120209&hilit=math+with+string
Check out:
viewtopic.php?f=82&t=119959&hilit=math+with+string
viewtopic.php?f=82&t=120209&hilit=math+with+string
- 01 Nov 2023, 06:57
- Forum: Ask for Help (v2)
- Topic: start and stop function
- Replies: 11
- Views: 1002
Re: start and stop function
Code: Select all
#Requires Autohotkey v2.0
toggle := false
$3:: {
global
toggle := !toggle
toggle ? SetTimer(doAction, 1000) : SetTimer(doAction, 0)
return
}
doAction() {
global
SendInput "{3}"
Return
}
- 01 Nov 2023, 05:49
- Forum: Ask for Help (v2)
- Topic: Dynamically assign value to undeclared variable Topic is solved
- Replies: 3
- Views: 423
Re: Dynamically assign value to undeclared variable Topic is solved
You can use a Map or Array if you want to avoid a wall of declarations or errors. #Requires Autohotkey v2.0 myVariables := ["The Number One As a String", 2, "Something Else"] MsgBox(myVariables[1]) MsgBox(myVariables[2]) MsgBox(myVariables[3]) Check out: https://www.autohotkey.com/boards/viewtopic.p...
- 31 Oct 2023, 13:09
- Forum: Ask for Help (v2)
- Topic: Complex arrays Topic is solved
- Replies: 3
- Views: 400
Re: Complex arrays Topic is solved
As far as I can tell this sets up the properties of "GuiReg_Value" to be arrays. It creates "Gui_Value" and "Reg_Value" as properties that are arrays? #Requires AutoHotkey v2.0 GuiReg_Value := [{Gui_Value: [], Reg_Value: []}, ;RV {Gui_Value: [], Reg_Value: []}, ;OG {Gui_Value: [], Reg_Value: []}, ;C...
- 31 Oct 2023, 08:04
- Forum: Ask for Help (v2)
- Topic: after a special barcode scan... the hotkey starts...
- Replies: 21
- Views: 2424
Re: after a special barcode scan... the hotkey starts...
Check out the documentation. In this case Send. It states
By default (that is, if neither SendText nor the Raw mode or Text mode is used), the characters ^+!#{} have a special meaning.
Code: Select all
Send("{#}AllesVerpacken{#}{Enter}")
- 30 Oct 2023, 12:45
- Forum: Ask for Help (v2)
- Topic: Why is reload not working here ?
- Replies: 2
- Views: 281
Re: Why is reload not working here ?
Maybe putting "#SingleInstance" would help, I doubt it.
As @mikeyww said, a return statement after the reload should help.
Reload:
As @mikeyww said, a return statement after the reload should help.
Reload:
- 30 Oct 2023, 11:43
- Forum: Ask for Help (v2)
- Topic: Can I use for loop like this? Topic is solved
- Replies: 3
- Views: 373
Re: Can I use for loop like this? Topic is solved
Something like this? ; examCmds := [ButLChop, TxtTypo, ButRChop, RadBeg, RadMid, RadEnd, ButUndo, TxtTlable, TxtRlable, EdtTlable, EdtRlable] ; for each, Cmd in examCmds { ; examCmds[each].Visible := False (pick one) ; Cmd.Visible := False (pick one) ; } examCmds := ["ButLChop", "TxtTypo", "ButRChop...
- 30 Oct 2023, 10:23
- Forum: Ask for Help (v2)
- Topic: after a special barcode scan... the hotkey starts...
- Replies: 21
- Views: 2424
Re: after a special barcode scan... the hotkey starts...
The code I provided does not give me any errors. Providing screenshots and/or exact error text will help determine what is going on. This is the forum for version 2 of AutoHotkey. The code provided is written and used with AutoHotkey version 2.0.10. Here is the code again, switching "OPEN" to "UP" a...
- 30 Oct 2023, 06:21
- Forum: Ask for Help (v2)
- Topic: after a special barcode scan... the hotkey starts...
- Replies: 21
- Views: 2424
Re: after a special barcode scan... the hotkey starts...
Here is the same code as above with slight altercations. I have not worked on this is some time, got it working and kind of left it. This is a bit more clean. I need to check and declare some variables because my script is included in other scripts. ; ------------------------- ; --------------------...
- 30 Oct 2023, 05:24
- Forum: Ask for Help (v2)
- Topic: after a special barcode scan... the hotkey starts...
- Replies: 21
- Views: 2424
Re: after a special barcode scan... the hotkey starts...
Hello. I have something set up that automatically puts the scanned code into another window, and even opens another webpage if holding a key while scanning. It only uses "1-9" and presses enter at the end. It would have to be adjusted to your needs. This is what it looks like: #HotIf WinActive("Comp...
- 25 Oct 2023, 11:41
- Forum: Gaming
- Topic: Roblox Shift Lock Turning Problem
- Replies: 2
- Views: 833
Re: Roblox Shift Lock Turning Problem
I thought I had provided some code with the previous post. #Requires AutoHotkey v2.0 #SingleInstance Force ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; -----------------------...