Search found 7774 matches

by Rohwedder
Today, 06:26
Forum: Gaming
Topic: Weird question, but can a script unlock the mouse?
Replies: 3
Views: 85

Re: Weird question, but can a script unlock the mouse?

Hallo,
only in "The Green Mile" John Coffey unlocked a mouse locked by Percy Wetmore.
by Rohwedder
Today, 06:12
Forum: Gaming
Topic: loop while button is pressed +alter on mana pixel color Topic is solved
Replies: 4
Views: 99

Re: loop while button is pressed +alter on mana pixel color Topic is solved

Then: #Requires AutoHotkey v2.0 7::{ while GetKeyState("7", "P") ;loop while button 7 is pressed { if !PixelSearch(&OutputVarX, &OutputVarY, 1317, 1008, 1317, 1008, 0x55524F, 7) ;if my managlobe is not dark/empty with variation 7 send "6" else send "{Shift down}5{Shift up}" Sleep 200 } }
by Rohwedder
Today, 03:53
Forum: Ask for Help (v1)
Topic: Can't get regexmatch to ignore punctuation and multiple lines
Replies: 5
Views: 186

Re: Can't get regexmatch to ignore punctuation and multiple lines

Hallo,
only a try! Replace:

Code: Select all

needle := "\b\Q" . test . "\E"
FoundPos := RegExMatch(YouTubeSRT, "msx)"needle , OutputVar)
by:

Code: Select all

needle := "\Q" . RegExReplace(test, "\W|\R") . "\E"
FoundPos := RegExMatch(RegExReplace(YouTubeSRT, "\W|\R"), "msx)"needle , OutputVar)
by Rohwedder
Today, 02:48
Forum: Gaming Help (v1)
Topic: Need Help Making this script please Topic is solved
Replies: 3
Views: 190

Re: Need Help Making this script please Topic is solved

In this case, you only need a single one-minute Timer: w:: ; Hotkey SetTimer, Tw,% 60*1000 ; every 1 min Tw: send é SetTimer, Tw2, -500 ; after 500 ms send " SetTimer, Tx2, -600 ; after 600 ms Return Tw2: send " SetTimer, Tw3, -600 ; after 600 ms Return Tx2: send é SetTimer, Tx3, -500 ; after 500 ms...
by Rohwedder
Today, 01:45
Forum: Gaming
Topic: loop while button is pressed +alter on mana pixel color Topic is solved
Replies: 4
Views: 99

Re: loop while button is pressed +alter on mana pixel color Topic is solved

Hallo,
try:

Code: Select all

#Requires AutoHotkey v2.0
7::{
	while GetKeyState("7", "P") 	;loop while button 7 is pressed
	{
		if PixelGetColor(1317, 1008) != 0x55524F	;if my managlobe is not dark/empty
			send "6"
		else
			send "{Shift down}5{Shift up}"
		Sleep 200
	}
}
by Rohwedder
Today, 01:31
Forum: Gaming Help (v1)
Topic: Need Help Making this script please Topic is solved
Replies: 3
Views: 190

Re: Need Help Making this script please Topic is solved

Hallo, … those both codes trigger by one key each … ? Then try: w:: ; Hotkey 1 SetTimer, Tw,% 60*1000 ; every 1 min Tw: send é SetTimer, Tw2, -500 ; after 500 ms Return Tw2: send " SetTimer, Tw3, -600 ; after 600 ms Return Tw3: send ' return x:: ; Hotkey 2 SetTimer, Tx,% 60*1000 ; every 1 min Tx: se...
by Rohwedder
Yesterday, 10:03
Forum: Ich brauche Hilfe
Topic: CNG (Cryptography API: Next Generation) VS Chatkontrolle
Replies: 1
Views: 167

Re: CNG (Cryptography API: Next Generation) VS Chatkontrolle

Hallo,
vor der CIA geben Verschlüsselungen mittels Windowstools wohl keine Sicherheit, aber wer diese braucht, fragt so etwas nicht öffentlich.
by Rohwedder
Yesterday, 09:35
Forum: Ask for Help (v1)
Topic: create a script that can scan a certain region for a color range
Replies: 2
Views: 160

Re: create a script that can scan a certain region for a color range

Hallo, perhaps?: q:: ; Hotkey Q starts the thread CoordMode, Pixel, Screen ColorID = 0xFFFF00 ; color = Yellow Variation = 7 ; color range = 7 X1 := 10, Y1 := 50 X2 := 110, Y2 := 200 ; a certain Screen region Loop { Send, {w Down} ; holds w down for 2 seconds Sleep, 2000 Send, {w Up} PixelSearch,,, ...
by Rohwedder
Yesterday, 02:05
Forum: Ask for Help (v2)
Topic: Remapping USB volume knob Topic is solved
Replies: 2
Views: 123

Re: Remapping USB volume knob Topic is solved

Hallo,
I have tried to play around with Send and Sleep, but don’t really know what I am doing.
AutoHotkey Beginner Tutorial
by Rohwedder
14 Jun 2024, 09:29
Forum: Ask for Help (v1)
Topic: How can I add a period to a headline using a regular expression?
Replies: 5
Views: 186

Re: How can I add a period to a headline using a regular expression?

Hallo, perhaps?: Text = ( 1. This is my first headline This is normal text. This is normal text. This is normal text. This is normal Text. This is normal text. This is normal Text. This is normal Text. This is normal text. 2. This is my second headline This is normal text. This is normal text. This ...
by Rohwedder
14 Jun 2024, 05:48
Forum: Ask for Help (v2)
Topic: run or activate Topic is solved
Replies: 3
Views: 188

Re: run or activate Topic is solved

Hallo,
here it works.
by Rohwedder
14 Jun 2024, 01:47
Forum: Ask for Help (v1)
Topic: Anti-afk script
Replies: 1
Views: 189

Re: Anti-afk script

Hallo,
try:

Code: Select all

#Persistent
SetTimer, Right,% -5*60*1000
Return
Right:
Send, {Right}
Return
by Rohwedder
13 Jun 2024, 12:26
Forum: Ask for Help (v1)
Topic: Problem with a hotkey code, not a valid key name Topic is solved
Replies: 5
Views: 288

Re: Problem with a hotkey code, not a valid key name Topic is solved

Hallo, try: ; Requires AutoHotkey v1.1.33.11 #NoEnv #SingleInstance Force ; I want to disable every key except for these allowedKeys := " b p z h 0 1 2 3 4 5 6 7 8 9 Space RAlt LControl CapsLock LButton RButton MButton " ; Disable all other keys and buttons For all, LF in [[0x1FF,"sc{:X}"],[0xFE,"vk...
by Rohwedder
13 Jun 2024, 05:40
Forum: Ask for Help (v2)
Topic: Renaming script used to work, now doesn't?
Replies: 1
Views: 98

Re: Renaming script used to work, now doesn't?

Hallo, anything like that? This does not match your patterns but can be customized: #Requires AutoHotkey v2.0 MsgBox Replic("A", 3) ; AAA Loop 7 { SourcePattern := A_ScriptDir "\Test" A_Index ".ahk" DestPattern := A_ScriptDir "\" Replic("​", 7-A_Index) "Test" A_Index ".ahk" ; with zero-width spaces ...
by Rohwedder
13 Jun 2024, 01:41
Forum: Ask for Help (v1)
Topic: Keyboard shortcuts
Replies: 2
Views: 184

Re: Keyboard shortcuts

Hallo,
perhaps?:

Code: Select all

RAlt::Send,% (Copy_now:=!Copy_now)?"^c":"^v"
by Rohwedder
13 Jun 2024, 01:29
Forum: Ask for Help (v1)
Topic: CTRL+ALT+E to type the Euro sign?
Replies: 4
Views: 178

Re: CTRL+ALT+E to type the Euro sign?

Hallo,
try:

Code: Select all

#Requires AutoHotkey v1.1.33
^!e::Send, {U+20AC} ; €

Code: Select all

#Requires AutoHotkey v2.0
^!e::Send "{U+20AC}" ; €
by Rohwedder
12 Jun 2024, 11:52
Forum: Ask for Help (v1)
Topic: Using a settimer with a_timeidle condition to restart a loop
Replies: 5
Views: 288

Re: Using a settimer with a_timeidle condition to restart a loop

Life or Death!
Life: To keep the script alive, the thread with the loop must free itself if it gets stuck somewhere, i.e. no other thread (whether started with timer or hotkey) can help it!
Death (with resurrection): Another thread (e.g. started with a timer) can reload the script.
by Rohwedder
12 Jun 2024, 05:49
Forum: Gaming Help (v1)
Topic: Simple code not being acknowledged by game
Replies: 1
Views: 182

Re: Simple code not being acknowledged by game

Try (untested): #SingleInstance, Force If !A_IsAdmin Try Run *RunAs "%A_ScriptFullPath%" SendMode, Input Return ^b:: Loop, 100 { Send {F1 down} Sleep 500 Send {F1 up} Send {F2 down} Sleep 500 Send {F2 up} Send {F3 down} Sleep 500 Send {F3 up} Send {F2 down} Sleep 2000 Send {F2 up} Send {F3 down} Sle...
by Rohwedder
12 Jun 2024, 02:35
Forum: Ask for Help (v1)
Topic: 2 script execution
Replies: 3
Views: 252

Re: 2 script execution

Then remove all

Code: Select all

Process, Priority,, R
and viruses.
by Rohwedder
12 Jun 2024, 02:10
Forum: Ask for Help (v1)
Topic: 2 script execution
Replies: 3
Views: 252

Re: 2 script execution

Hallo,
making EXE files from AHK is nonsense anyway, except for passing them on to computers without Autohotkey installation ore hiding code.
There are always resources that scripts have to share, even scripts on different computers share the same Internet.

Go to advanced search