Search found 224 matches
- 09 Sep 2017, 15:33
- Forum: Ask For Help
- Topic: WinActive error question Topic is solved
- Replies: 1
- Views: 421
Re: WinActive error question Topic is solved
Use IfWinActive . IfWinExist only detects whether a window exists. IfWinActive in other hand detects whether an existing window is active or not. If the particular window doesn't exist, nothing happens. This example gives a messagebox if your specified window is active, and also gives a messagebox w...
- 08 Sep 2017, 20:52
- Forum: Ask For Help
- Topic: Use square brackets "[" in RegExMatch? How? Topic is solved
- Replies: 2
- Views: 692
Re: Use square brackets "[" in RegExMatch? How? Topic is solved
Wow.. That was quite simple. Thanks.
- 08 Sep 2017, 19:56
- Forum: Ask For Help
- Topic: Use square brackets "[" in RegExMatch? How? Topic is solved
- Replies: 2
- Views: 692
Use square brackets "[" in RegExMatch? How? Topic is solved
How can I include square brackets in RegExMatch? Example code: data = ( something[99] ) F1:: Loop, Parse, data, `n { Line = %A_LoopField% RegExMatch(Line, "something[(.*)]", Var) ;When I put in the square brackets, nothing happens. MsgBox shows nothing either.. MsgBox, %Var1% } Return Help would be ...
- 06 Sep 2017, 15:29
- Forum: Gaming
- Topic: How to start Autohotkey work when pressing button? TES:Oblivion
- Replies: 7
- Views: 1253
Re: How to start Autohotkey work when pressing button? TES:Oblivion
I might have misunderstood what you meant then..
- 06 Sep 2017, 15:16
- Forum: Gaming
- Topic: How to start Autohotkey work when pressing button? TES:Oblivion
- Replies: 7
- Views: 1253
Re: How to start Autohotkey work when pressing button? TES:Oblivion
Something like this perhaps?:
Code: Select all
#maxthreadsperhotkey 2
Tab::
{
toggle:=!toggle
while, toggle
{
a::Left
d::Right
w::Up
s::Down
Return
}
}
return
- 04 Sep 2017, 08:27
- Forum: Ask For Help
- Topic: dual key command
- Replies: 4
- Views: 859
Re: dual key command
Here:
Good luck. 
Code: Select all
y::
{
Count++
SetTimer, Actions, 150
}
Return
Actions:
{
If (Count = 1)
{
Send, q
}
Else If (Count = 2)
{
Send, Q
}
Count := 0
}
Return

- 04 Sep 2017, 08:18
- Forum: Ask For Help
- Topic: problem: capture name for Help button in MsgBox
- Replies: 5
- Views: 1046
Re: problem: capture name for Help button in MsgBox
Hey, these are the buttons that are currently accepted by the IfMsgBox command:
Yes
No
OK
Cancel
Abort
Ignore
Retry
Continue [v1.0.44.08+]
TryAgain [v1.0.44.08+]
Timeout
What do you mean by "Info" and "?" ?
Yes
No
OK
Cancel
Abort
Ignore
Retry
Continue [v1.0.44.08+]
TryAgain [v1.0.44.08+]
Timeout
What do you mean by "Info" and "?" ?
- 03 Sep 2017, 16:30
- Forum: Ask For Help
- Topic: guys, help me edit this script to send clipboard texts from the the bottom to top Topic is solved
- Replies: 10
- Views: 2079
Re: guys, help me edit this script to send clipboard texts from the the bottom to top Topic is solved
sir the reverse stuff worked but it just pastes a word per command, pls i want it to paste all the lines at once sir. Here, try this: #IfWinActive, WhatsApp ^m:: clpbrd := Clipboard ArrayOfText := StrSplit(clpbrd , "`r") Clipboard := LineIndex := ArrayOfText._MaxIndex() for index, value in ArrayOfT...
- 03 Sep 2017, 12:55
- Forum: Ask For Help
- Topic: guys, help me edit this script to send clipboard texts from the the bottom to top Topic is solved
- Replies: 10
- Views: 2079
Re: guys, help me edit this script to send clipboard texts from the the bottom to top Topic is solved
You are welcome ;) : #IfWinActive, WhatsApp Var := Clipboard StringReplace, Var, Var, `n, `n, UseErrorLevel if SubStr(Var, 0) != "`n" ;Checks the total amount of lines in a variable/Clipboard ErrorLevel++ LineIndex = %ErrorLevel% ^m:: Loop, Parse, Clipboard, `n { If(A_Index == LineIndex){ ;If curren...
- 01 Sep 2017, 21:25
- Forum: Ask For Help
- Topic: storing variable using loop
- Replies: 4
- Views: 893
Re: storing variable using loop
Try this, it should work: Decrypted = <Sunquest<[email protected],@MySunQuestPassword>Sunquest><Viracor<[email protected],@MyViracorPassword>Viracor> Sites = ( Sunquest Viracor ) Loop, Parse, Sites, `n Loop, %A_Index% { Loop, Parse, Sites, `n { Site = %A_LoopField% RegExMatch(Decrypted, "<" Site ...
- 01 Sep 2017, 09:55
- Forum: Ask For Help
- Topic: Click - Dubble Click - ReMapp keys
- Replies: 5
- Views: 955
Re: Click - Dubble Click - ReMapp keys
Change your hotkeys.
You can't have duplicate hotkeys.
You can't have duplicate hotkeys.
- 31 Aug 2017, 17:32
- Forum: Ask For Help
- Topic: Click - Dubble Click - ReMapp keys
- Replies: 5
- Views: 955
Re: Click - Dubble Click - ReMapp keys
if i click with my mouse on a txt file it select that file if i dubble click with my mouse on a txt file it opens that file You can do them without AutoHotkey. Unless you have further plans in your mind.. X pressed one time - A happens X pressed two times - B happens: x:: { Count++ SetTimer, Action...
- 30 Aug 2017, 03:43
- Forum: Ask For Help
- Topic: Hotkey only working once?
- Replies: 2
- Views: 810
Re: Hotkey only working once?
It's probably because of WinClose, that you placed before Goto, Top
If you press the Numpad1 button, it will first close the window and, AFTER that go to Top label where it will get stuck in WinWaitActive because there is no window to be activated.
If you press the Numpad1 button, it will first close the window and, AFTER that go to Top label where it will get stuck in WinWaitActive because there is no window to be activated.
- 29 Aug 2017, 18:18
- Forum: Ask For Help
- Topic: dual key usage - question
- Replies: 2
- Views: 722
Re: dual key usage - question
You can do it like this:
Code: Select all
F1::
{
Count++
SetTimer, Actions, 150
}
Return
Actions:
{
If (Count = 1)
{
MsgBox, Single press. ;<--- Your code here
}
Else If (Count = 2)
{
MsgBox, Double press. ;<--- Your code here
}
Count := 0
}
Return
- 29 Aug 2017, 17:31
- Forum: Ask For Help
- Topic: Two scripts
- Replies: 9
- Views: 1300
Re: Two scripts
See Include Have your "Keyboard layout" script included in your other scripts. That way your scripts will recognize your layout.. Example "Keyboard layout" script: Your code... Now include the "Keyboard layout" script in your other script. #Include, Keyboard_Layout_Script.ahk ;Just place your includ...
- 25 Aug 2017, 13:04
- Forum: Ask For Help
- Topic: If window is active{ Do mouse click} if not do nothing
- Replies: 6
- Views: 1167
Re: If window is active{ Do mouse click} if not do nothing
Open Window Spy and tell me what it shows when you click on the "Live Color" window, and tell me also what is shows when you click on Adobe Illustrators main window.
- 25 Aug 2017, 08:06
- Forum: Ask For Help
- Topic: If window is active{ Do mouse click} if not do nothing
- Replies: 6
- Views: 1167
Re: If window is active{ Do mouse click} if not do nothing
It's working for me.
Every time the window becomes active, it executes the script under IfWinActive,...
Every time the window becomes active, it executes the script under IfWinActive,...
- 24 Aug 2017, 13:40
- Forum: Ask For Help
- Topic: Multiple-Key Script
- Replies: 2
- Views: 593
Re: Multiple-Key Script
Code: Select all
Send, 1
Send, 2
Send, 3
Send, 4
Send, 5
- 24 Aug 2017, 13:25
- Forum: Ask For Help
- Topic: If window is active{ Do mouse click} if not do nothing
- Replies: 6
- Views: 1167
Re: If window is active{ Do mouse click} if not do nothing
Here, try this:
Code: Select all
Start:
Window = Live Color
IfWinExist, %Window%
WinWaitActive, %Window%
IfWinActive, %Window%
{
Sleep, 100
MouseClick, left, 391, 98
Sleep, 1000
MouseClick, left, 400, 492
Sleep, 1000
Goto Start
}
Return
- 24 Aug 2017, 01:08
- Forum: Ask For Help
- Topic: is it possible to script a toggle loop?
- Replies: 2
- Views: 3099
Re: is it possible to script a toggle loop?
You can do it like this:
Code: Select all
#MaxThreadsPerHotkey 2
F6::
{
Toggle:=!Toggle
While, Toggle
{
MsgBox, Something...
Sleep, 1000
}
}
Return