Search found 3779 matches

by Rohwedder
Today, 05:41
Forum: Ask For Help
Topic: calculate 2+3=
Replies: 3
Views: 57

Re: calculate 2+3=

Hallo,
try:

Code: Select all

q::
ClipBoard = 2+3
FileDelete, ~.ahk
FileAppend, ClipBoard := %ClipBoard%, ~.ahk, UTF-8
RunWait, ~.ahk
MsgBox,% ClipBoard ;5
Return
Or use tidbit's eval(exp)
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=15389
by Rohwedder
14 Jan 2021, 11:57
Forum: Ask For Help
Topic: Repeat a hotkey after its first thread is finished? Topic is solved
Replies: 2
Views: 55

Re: Repeat a hotkey after its first thread is finished? Topic is solved

Hallo,
try:

Code: Select all

varv:=0
tooltip % varv
#MaxThreadsPerHotkey 10
F1::
Critical
sleep 5000
varv++
tooltip % varv
return
by Rohwedder
14 Jan 2021, 02:35
Forum: Gaming
Topic: bind with two buttons simultaneously?
Replies: 3
Views: 98

Re: bind with two buttons simultaneously?

Try: Joy5:: Joy6:: Suspend, On ;prevents an additional thread Sleep, 400 ;waits for a 2nd JoyKey Switch, SubStr(A_ThisHotkey,0) GetKeyState("Joy5") GetKeyState("Joy6") { Case "510","500":WinMaximize, ahk_class Notepad++ ;Joy5 Case "601","600":WinMinimize, ahk_class Notepad++ ;Joy6 Case "511":Run, no...
by Rohwedder
13 Jan 2021, 15:17
Forum: Ask For Help
Topic: LButton & RButton :: MButton
Replies: 2
Views: 52

Re: LButton & RButton :: MButton

Hallo, try: RButton & LButton::SendInput, {MButton Down} RButton & LButton Up::SendInput, {MButton Up} RButton::RButton Regardless of the order in which the buttons are pressed would make LButton unusable! If LButton would be pressed first, Autohotkey would have to hide this event from your applicat...
by Rohwedder
13 Jan 2021, 13:02
Forum: Ich brauche Hilfe
Topic: Icon der Titelleiste in Gui anzeigen
Replies: 6
Views: 137

Re: Icon der Titelleiste in Gui anzeigen

Dank deinem Hinweis googelte ich die Funktion JEE_WinGetIcon(hWnd) von jeeswg.
Das Icon mit BackgroundTrans über meinen blauen Farbgradienten 0x0A246A - 0xA6CAF0 gelegt sieht wirklich WinXp-stylisch aus.
by Rohwedder
13 Jan 2021, 10:17
Forum: Gaming
Topic: hold shift and rapid press "k" with slight delay Topic is solved
Replies: 3
Views: 52

Re: hold shift and rapid press "k" with slight delay Topic is solved

Hallo,
try:

Code: Select all

~Shift::
While, GetKeyState("Shift","P")
{
	Send, {Blind}k
	Sleep, 300
}
Return
by Rohwedder
13 Jan 2021, 10:00
Forum: Ask For Help
Topic: Problem with my mouse whilst having my AHK script open
Replies: 1
Views: 56

Re: Problem with my mouse whilst having my AHK script open

Hallo,
try:

Code: Select all

Del::ExitApp
`::toggle:=!toggle
#If toggle
$Lbutton::
;...
return
#If
by Rohwedder
13 Jan 2021, 03:44
Forum: Gaming
Topic: bind with two buttons simultaneously?
Replies: 3
Views: 98

Re: bind with two buttons simultaneously?

Hallo,
joystick buttons are special! Perhaps something like this?:

Code: Select all

Joy5::
Joy6::
Switch, GetKeyState("Joy5") GetKeyState("Joy6")
{
Case "10":ToolTip, only Joy5
Case "01":ToolTip, only Joy6
Default:ToolTip, both Joy5 + Joy6
}
Return
by Rohwedder
13 Jan 2021, 02:19
Forum: Gaming
Topic: Holding Shift key remap mouse buttons
Replies: 2
Views: 63

Re: Holding Shift key remap mouse buttons

Hallo,
try:

Code: Select all

#If WinActive("ahk_exe MWOClient.exe")
LShift::Return
#If GetKeyState("LShift", "p") && WinActive("ahk_exe MWOClient.exe")
MButton::5
RButton::4
LButton::3
#If
by Rohwedder
12 Jan 2021, 08:53
Forum: Ask For Help
Topic: LShift and RShift with arrow key, not working as I expected
Replies: 3
Views: 49

Re: LShift and RShift with arrow key, not working as I expected

Then perhaps:

Code: Select all

<+Right::Send, {End} ;RShift + Right
+Right::Send, +{End} ;LShift (+ RShift) + Right
by Rohwedder
12 Jan 2021, 04:09
Forum: Ask For Help
Topic: LShift and RShift with arrow key, not working as I expected
Replies: 3
Views: 49

Re: LShift and RShift with arrow key, not working as I expected

Hallo,
which key combinations should send what? I can't tell from your snippets.
by Rohwedder
12 Jan 2021, 01:41
Forum: Ask For Help
Topic: Looking for help for sending repeating text.
Replies: 3
Views: 77

Re: Looking for help for sending repeating text.

Hallo, try: F1:: ;On/Off with key F1 If !TF1 := !TF1 { SetTimer, TF1, Off Return } Text = ( first line second line third line forth line ) SetTimer, TF1, 10 ;instantly Return TF1: SetTimer, TF1,% 15*60*1000 ;every 15 minutes Loop, Parse, Text, `n { Send, %A_LoopField%{Enter} Sleep, 3000 } Until, !TF...
by Rohwedder
12 Jan 2021, 01:21
Forum: Ask For Help
Topic: Need help setting WordPad position/size
Replies: 2
Views: 39

Re: Need help setting WordPad position/size

Hallo,
replace:

Code: Select all

WinMove, -7, 0, 682, 1050
by:

Code: Select all

WinMove, ahk_id %ID%,, -7, 0, 682, 1050
by Rohwedder
11 Jan 2021, 09:33
Forum: Ask For Help
Topic: Sending keys to inactive window Topic is solved
Replies: 11
Views: 153

Re: Sending keys to inactive window Topic is solved

Windows Spy, (Focused Control)
by Rohwedder
11 Jan 2021, 09:00
Forum: Ask For Help
Topic: Sending keys to inactive window Topic is solved
Replies: 11
Views: 153

Re: Sending keys to inactive window Topic is solved

Hallo,
this works here (Win 10) on my german calculator:

Code: Select all

q::ControlSend, Windows.UI.Core.CoreWindow1, 12345, Rechner
Try:

Code: Select all

q::ControlSend, Windows.UI.Core.CoreWindow1, 12345, Calculator
by Rohwedder
11 Jan 2021, 02:53
Forum: Spiele
Topic: Ich will dass er eine Taste solange spammt bis ich den stoppe
Replies: 1
Views: 39

Re: Ich will dass er eine Taste solange spammt bis ich den stoppe

Hallo,
versuch mal:

Code: Select all

#MaxThreadsPerHotkey 2
1::
IF !Spam := !Spam
{
	Reload
	ExitApp
}
Loop
{
	Sendinput i
	Sleep 500
	Mouseclick left
	Sleep 500
	Send e
	Sleep 7000
	Send, {Space 15}
}
return
by Rohwedder
11 Jan 2021, 02:28
Forum: Ask For Help
Topic: Problems passing in files with spaces in name Topic is solved
Replies: 7
Views: 116

Re: Problems passing in files with spaces in name Topic is solved

Hallo,
https://imagemagick.org/script/command-line-processing.php
If the image path includes one or more spaces, enclose the path in quotes:
'my title.jpg'
by Rohwedder
10 Jan 2021, 10:11
Forum: Ask For Help
Topic: using class_NN with IfWinActive
Replies: 3
Views: 57

Re: using class_NN with IfWinActive

Hallo,
perhaps:

Code: Select all

SetTitleMatchMode, 2
Return

~RButton::
IfWinActive, New Mail ahk_class WindowsForms10.Window.8.app.0.bea234_m4_bv4
{
	MsgBox, The cursor is at X%xpos% Y%ypos%.
}
by Rohwedder
09 Jan 2021, 13:01
Forum: Ask For Help
Topic: Ideas for this simple 'pin to top' script?
Replies: 3
Views: 48

Re: Ideas for this simple 'pin to top' script?

Hallo, I had the same idea. Try: ^SPACE:: WinGetActiveTitle, Title Title := StrReplace(Title, "<Window Pinned>") ID := WinExist("A") WinGet, ExStyle, ExStyle, ahk_id %ID% If (ExStyle & 0x8) ;ExStyle = AlwaysOnTop { Winset, Alwaysontop, Off, A WinSetTitle, , ,%Title% } Else ;ExStyle = Not AlwaysOnTop...

Go to advanced search