Search found 1906 matches

by Rohwedder
Today, 01:10
Forum: Ask For Help
Topic: Using a modifier as a normal key and then as modifier
Replies: 1
Views: 40

Re: Using a modifier as a normal key and then as modifier

Hallo,
try:

Code: Select all

~^Alt Up::
	IF A_PriorHotkey <> ^!PgDn
		Send, b
Return
^!PgDn::Send, r
But!
Using a modifier as a normal key and then as modifier
is shit!
Use modifier keys, mouse buttons and wheel only in combination with other keys as hotkeys.
by Rohwedder
Today, 00:32
Forum: Ask For Help
Topic: Adding timers to a loop
Replies: 3
Views: 69

Re: Adding timers to a loop

Hallo, Timers cannot break loops! Timers interrupt loops. However, a loop can breaks itself with Break: [code]SetTimer, Break, 4000 Loop { Loop { IF Break Break ;inner loop breaks itself ToolTip,% A_Index Sleep, 100 } ToolTip, Break Break := False Sleep, 500 } Break: Break := True Return
by Rohwedder
Yesterday, 07:42
Forum: Ask For Help
Topic: Need help with some code
Replies: 1
Views: 70

Re: Need help with some code

Hallo, try: Loop { PixelGetColor, Color , 100, 200 ;check a color on X/Y If Color = x800080 ;compare it to a color im telling it Break ;If the colors are the same it should proceed Sleep, 100 ;else it should wait for x (milliseconds) } ;and then go back to checking the color and comparing it again
by Rohwedder
Yesterday, 01:29
Forum: Ask For Help
Topic: WinWaitActive in SetTimer keeps interfearing with the rest of the script
Replies: 4
Views: 139

Re: WinWaitActive in SetTimer keeps interfearing with the rest of the script

Hallo,
if you don't use Critical a timer with WinWaitActive is interruptible.
But why WinWaitActive? Try:

Code: Select all

SetTimer, Backup, 1000
Backup:
Process, Exist, ahk_exe YourProcess.exe
If ErrorLevel And WinActive("Your Window")
{
	;making backup
}
Return
by Rohwedder
16 Jun 2019, 10:52
Forum: Ich brauche Hilfe
Topic: LoopRead - nach success weiter lesen
Replies: 3
Views: 132

Re: LoopRead - nach success weiter lesen

Hallo, sollte jetzt eigentlich nach den 2 MsgBoxen und den 2 IniWrites einfach weiterlesen. SearchString := "lol:" Line := False Loop, Read, Results.txt { If !Trim(A_LoopReadLine) Continue If InStr(A_LoopReadLine, SearchString . A_Index && A_Index) { Line := A_LoopReadLine word_array := StrSplit(Lin...
by Rohwedder
16 Jun 2019, 10:17
Forum: Ask For Help
Topic: Help-me - Ajuda ! Script gui multiple buttons and actions
Replies: 1
Views: 88

Re: Help-me - Ajuda ! Script gui multiple buttons and actions

Hallo, perhaps??: ;imagem de fundo Gui, Add, Picture, x0 y0 w817 h358, C:\sistema\bg.png ;botoes - all Gui, Add, Button, x254 y228 w60 h20 gHurry, Hurry Gui, Add, Button, x317 y228 w20 h20 gConfighurry, ? Gui, Add, Button, x254 y257 w60 h20 gMb, Mana Blk Gui, Add, Button, x317 y257 w20 h20 gConfigmb...
by Rohwedder
16 Jun 2019, 09:41
Forum: Ask For Help
Topic: Keybind Shift to mouse button 5
Replies: 1
Views: 72

Re: Keybind Shift to mouse button 5

Hallo,
try:

Code: Select all

XButton2::Shift
by Rohwedder
16 Jun 2019, 04:01
Forum: Ich brauche Hilfe
Topic: Taste Gedrückt halten
Replies: 1
Views: 77

Re: Taste Gedrückt halten

Hallo,
versuch mal:

Code: Select all

Alt::Send, {Alt DownR} ;Alt Taste: Ein 
*Esc::Send, {Alt Up} ;Escape Taste: Aus
by Rohwedder
15 Jun 2019, 12:09
Forum: Ask For Help
Topic: Presiings a sequence of two keys at different time
Replies: 2
Views: 116

Re: Presiings a sequence of two keys at different time

Hallo,
as an answer to your first post.
Try:

Code: Select all

TF1:
Send, {F1} ;Press "F1"
SetTimer, TSpace, -10000 ;Wait 10 seconds
Return
TSpace:
Send, {Space} ;Press "Space"
SetTimer, TF1, -30000 ;Wait 30 seconds
Return ;and then starts over
by Rohwedder
15 Jun 2019, 09:39
Forum: Ask For Help
Topic: Return focus to selected items on Desktop Topic is solved
Replies: 5
Views: 187

Re: Return focus to selected items on Desktop Topic is solved

Hallo, there is no object part! Only: if Var in MatchList https://www.autohotkey.com/docs/commands/IfIn.htm Perhaps: #IF WinActive("ahk_class Progman") Or WinActive("ahk_class WorkerW") F1:: Send, !{Enter} WinWaitActive, ahk_class #32770,,.5 IF ErrorLevel Return WinWaitNotActive, ahk_class #32770 { ...
by Rohwedder
13 Jun 2019, 17:07
Forum: Ask For Help
Topic: Launching function on HOTKEY HOLD for specified time, else send normal key
Replies: 2
Views: 76

Re: Launching function on HOTKEY HOLD for specified time, else send normal key

Hallo, try: HotKey, LWin, mToggler Return mToggler() { Send, {Blind}{%A_ThisHotKey% Down}{VK07 Down} ;prevent Start Menu T := A_TickCount + 800, K := -1 While, (A_TickCount < T) And GetKeyState(A_ThisHotKey,"P") { Key := Format("VK{:X}",K := Mod(++K,256)) IF GetKeyState(Key,"P") And !InStr(Keys, Key...
by Rohwedder
13 Jun 2019, 13:19
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 34
Views: 761

Re: Solved:Need simple example,real time calculating and output the result

The code was made by YoucefHam. I only removed one bug. Unfortunately, both still make mistakes! vsub-mistake: No1 Youcef-mistake: No4 MsgBox, % "No1" calc_Percent( "125.2%+.5%" ) MsgBox, % "No2" calc_Percent( "((5+15)*4)/20%+20+3%" ) MsgBox, % "No3" calc_Percent( "150/50%" ) MsgBox, % "No4" calc_Pe...
by Rohwedder
13 Jun 2019, 09:56
Forum: Ask For Help
Topic: my script wont work please help
Replies: 1
Views: 47

Re: my script wont work please help

Hallo,
I would also refuse to work.
Admit it! You not once tested!
Error at line 6.

Line Text: PixelGetColour, colour, 950, -10
Error: This line does not contain a recognized action.

The program will exit.
by Rohwedder
13 Jun 2019, 07:41
Forum: Ask For Help
Topic: Match class, but only if no window Title Topic is solved
Replies: 2
Views: 89

Re: Match class, but only if no window Title Topic is solved

Hallo,
run Notepad and try:

Code: Select all

SetTitleMatchMode, RegEx
#IfWinActive ^$ ahk_class Notepad
q::MsgBox, Notepad without title!
#IfWinActive ahk_class Notepad
q::WinSetTitle ahk_class Notepad,,,
The first press of key Q deletes the title, the second press shows the MsgBox
by Rohwedder
13 Jun 2019, 07:00
Forum: Ask For Help
Topic: WinHide wihout Hotkey Topic is solved
Replies: 8
Views: 159

Re: WinHide wihout Hotkey Topic is solved

Hallo,
try:

Code: Select all

SetTimer, WinHide, 200
Return
WinHide:
IF WinExist("ahk_class #32770")
{
	SetTitleMatchMode, RegEx
	WinHide ahk_class Listary_WidgetWin_*
}
Return
by Rohwedder
13 Jun 2019, 04:06
Forum: Ask For Help
Topic: Script to sleep monitors + other devices
Replies: 4
Views: 148

Re: Script to sleep monitors + other devices

Hallo, try: F1::PostMessage, 0x0112, 0xF170, % (i:=!i)?2:-1,, A ; << Press F1 to toggle On/Off F2 Up:: ; << Press F2 to toggle On/Off IF !F2 := !F2 Return BlockInput, On While, !GetKeyState("F2","P") Sleep, 100 BlockInput, Off Return Note: F2 might have no effect if UAC is enabled or the script has ...
by Rohwedder
12 Jun 2019, 02:19
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 34
Views: 761

Re: Solved:Need simple example,real time calculating and output the result

Sorry! not yet good enough. MsgBox, % calc_Percent( "125.2%" ) ;1.252000 OK MsgBox, % calc_Percent( "((5+15)*4)/20%+20+3%" ) ;((5+15)*4)/0.200000+20+0.600000 wrong! MsgBox, % (calc_Percent( "150+50%" )) ;150+75.000000 wrong! MsgBox, % (calc_Percent( "150-50%" )) ;150-75.000000 wrong! MsgBox, % (calc...
by Rohwedder
12 Jun 2019, 01:49
Forum: Ask For Help
Topic: keypress linked to mouse movement
Replies: 2
Views: 70

Re: keypress linked to mouse movement

Hallo, try: F6:: ;On/Off with key F6 IF Toggle := !Toggle { MouseGetPos, XOld SetTimer, MouseTimer, 100 } Else SetTimer, MouseTimer, Off Return MouseTimer: MouseGetPos, X Key = IF (X < XOld) Key = a Else If (X > XOld) Key = b XOld := X If (Key = KeyOld) Return IF KeyOld Send, {%KeyOld% Up} IF KeyOld...

Go to advanced search