Search found 143 matches
- 26 Jul 2018, 14:33
- Forum: Ask for Help (v1)
- Topic: Code for function
- Replies: 2
- Views: 758
Re: Code for function
F9::Visor(5) F10:: ExitApp FormatarTempo(segundos) { tempoFormat = 20000101 tempoFormat += %segundos%, Seconds FormatTime, mmss, %tempoFormat%, mm:ss return mmss } Visor(tempo) { Gui, janela: +AlwaysOnTop -SysMenu Gui, janela:Font, s20 bold, Arial Gui, janela:Add, Text, Center w90 h30 vTX, % Format...
- 21 Jul 2018, 17:14
- Forum: Ask for Help (v1)
- Topic: Very basic autoclclicker with random delay.
- Replies: 1
- Views: 714
Re: Very basic autoclclicker with random delay.
Code: Select all
F8::
Toggle := !Toggle
While Toggle{
Click
Random, rand, 1000, 4000 ; ms
sleep %rand%
}
return
f2:: pause
- 18 Jul 2018, 09:40
- Forum: Gaming Help (v1)
- Topic: Trying to open a LOT of crates in Injustice... Topic is solved
- Replies: 1
- Views: 809
Re: Trying to open a LOT of crates in Injustice... Topic is solved
#Persistent #z:: if (isDisabled == 1) { isDisabled = 0 SetTimer, KeyPresser, Off } else { isDisabled = 1 SetTimer, KeyPresser, 500 } Return KeyPresser: if (WinActive("ahk_class LaunchUnrealUWindowsClient")) { Send, {a down} Sleep 20 Send, {a up} } Return #Persistent SetTimer, KeyPresser, 500 Return...
- 18 Jul 2018, 08:05
- Forum: Ask for Help (v1)
- Topic: Looking for a Guild wars 2 (stealth) - Countdown Scipt
- Replies: 1
- Views: 738
Re: Looking for a Guild wars 2 (stealth) - Countdown Scipt
currentSecs := 20 ;"floating string" StringTrimLeft, background_color, background_color, 2 Gui, 99:destroy Gui, 99: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop +E0x20 Gui, 99:Color, c888888 Gui, 99:Font, s16 q1 c0xffffff, Arial gui, 99:margin,, 0 gui, 99:add, text, vtimer_text, 10...
- 17 Jul 2018, 07:00
- Forum: Ask for Help (v1)
- Topic: need help with my code
- Replies: 1
- Views: 707
Re: need help with my code
Code: Select all
CapsLock::
loop
{
while GetKeyState("LShift","P"){
Sleep, 50
}
send, {b DOWN}
sleep, 50
send, {b UP}
}
return
- 16 Jul 2018, 05:31
- Forum: Ask for Help (v1)
- Topic: capture time (in ms) between pixel changes of color
- Replies: 3
- Views: 773
Re: capture time (in ms) between pixel changes of color
replace "pixelColorChanged" with your color change check
Code: Select all
lastTick := A_TickCount
;your Code
if(pixelColorChanged)
{
ticksPassed := A_TickCount - lastTick
lastTick := A_TickCount
MsgBox, % ticksPassed
}
- 16 Jul 2018, 05:15
- Forum: Ask for Help (v1)
- Topic: Move Enter key to NumpadMult Topic is solved
- Replies: 3
- Views: 939
Re: Move Enter key to NumpadMult Topic is solved
Code: Select all
*NumpadMult::Enter
- 15 Jul 2018, 11:17
- Forum: Ask for Help (v1)
- Topic: SoundBeep after GUI moving?
- Replies: 4
- Views: 1258
Re: SoundBeep after GUI moving?
Maybe Something like this
Code: Select all
Gui, Add, MonthCal, x2 y9 w360 h310 ,
Gui, Show, w365 h320, MyGui
return
~$*LButton::
WinGetPos, guiXold, guiYold,,, MyGui
return
~$*LButton Up::
WinGetPos, guiX, guiY,,, MyGui
if(guiXold != guiX or guiYold != guiY)
SoundBeep, 500, 500
return
- 14 Jul 2018, 18:13
- Forum: Ask for Help (v1)
- Topic: HELP ME TO EDIT THIS SCRIPT PLEASE
- Replies: 3
- Views: 834
Re: HELP ME TO EDIT THIS SCRIPT PLEASE
be honest would you click on a post that is called "HELP ME TO EDIT THIS SCRIPT PLEASE"?you realy all a very good persons.
Big thanks for no any reply or help.
- 14 Jul 2018, 18:09
- Forum: Ask for Help (v1)
- Topic: New to AHK and stuck Topic is solved
- Replies: 6
- Views: 1326
Re: New to AHK and stuck Topic is solved
F7 to toggle the "c" hotkey
Code: Select all
F7::Toggle := !Toggle
#if Toggle
C::MsgBox, hi!
- 14 Jul 2018, 11:49
- Forum: Ask for Help (v1)
- Topic: : Fix script to pause macro when mouse bottom is pressed
- Replies: 3
- Views: 998
Re: : Fix script to pause macro when mouse bottom is pressed
Code: Select all
o::
Loop
{
if(GetKeyState("LButton", "p") or GetKeyState("MButton", "p") or GetKeyState("RButton", "p"))
{
Sleep, 50
continue
}
Send W
Sleep 400
}
p::exitapp
- 14 Jul 2018, 11:36
- Forum: Gaming Help (v1)
- Topic: Need a little help please
- Replies: 1
- Views: 870
Re: Need a little help please
*0:: ; Before: 0:: toggle := !toggle if (toggle) { SetTimer, Timer_Spam, 10 } else { SetTimer, Timer_Spam, Off Send {w Up} ; Release the Key Send {LShift Up} ; Release the Key } return Timer_Spam: Send {c} Sleep 800 Send {w Down} ; Before: Send {w, Down} Send {LShift Down} ; Before: Send {LShift, D...
- 14 Jul 2018, 04:15
- Forum: Ask for Help (v1)
- Topic: check for pixel color of a specific pixel?
- Replies: 2
- Views: 906
Re: check for pixel color of a specific pixel?
Code: Select all
PixelGetColor, pColor, 1000, 1000
while(pColor == 777777) ; Replace "777777" with your hex color
{
Sleep, 1000
PixelGetColor, pColor, 1000, 1000
}
Code: Select all
F7::
MouseGetPos, mx, my
PixelGetColor, mColor, %mx%, %my%
MsgBox, % mColor
Clipboard := mColor
return
return
- 14 Jul 2018, 04:08
- Forum: Ask for Help (v1)
- Topic: holding shift or alt disabled my script
- Replies: 1
- Views: 608
Re: holding shift or alt disabled my script
Code: Select all
*WheelDown::
Send {LButton}
return
*WheelUp::
SendInput {LButton}
return
- 13 Jul 2018, 13:38
- Forum: Ask for Help (v1)
- Topic: Multiple scripts trying to set same hotkey?
- Replies: 3
- Views: 1081
Re: Multiple scripts trying to set same hotkey?
; Disable default CapsLock functionality SetCapsLockState, AlwaysOff ; Post Esc if pressed alone ~CapsLock:: KeyWait, CapsLock If (A_PriorKey="CapsLock") Send {Esc} return ; Map CapsLock modified hotkeys #If, GetKeyState("CapsLock", "P") h::Left j::Down k::Up l::Right SetCapsLockState, AlwaysOff #I...
- 13 Jul 2018, 13:05
- Forum: Ask for Help (v1)
- Topic: Gui help
- Replies: 5
- Views: 1308
Re: Gui help
Nice idea to use while(!GetKeyState("Enter", "p")) . But at least add 1 milliseconds to it, otherwise the script will take up a lot of CPU, 8% for me. while(!GetKeyState("Enter", "p")) sleep 1 True. i didnt thought about that :) var := sendInputBox() MsgBox, %var% return sendInputBox() { global edi...
- 13 Jul 2018, 12:34
- Forum: Ask for Help (v1)
- Topic: Find and replace bullet points
- Replies: 3
- Views: 1418
Re: Find and replace bullet points
Code: Select all
clipboard = ; Start off empty
Sleep 200
Send ^c
Sleep 200
Clipboard := StrReplace(StrReplace(Clipboard,"•",""),"`r`n","|*")
Sleep 200
Send, %clipboard%
- 13 Jul 2018, 12:27
- Forum: Ask for Help (v1)
- Topic: Gui help
- Replies: 5
- Views: 1308
Re: Gui help
Do you mean something like this?
Code: Select all
var := sendInputBox()
MsgBox, %var%
sendInputBox()
{
global editfield
Gui, 99:Add, Edit, x2 y9 w270 h20 veditfield,
Gui, 99:Show, w278 h36, InputBox
while(!GetKeyState("Enter", "p"))
continue
Gui, 99:Submit, nohide
Gui, 99:Destroy
return editfield
}
- 13 Jul 2018, 06:00
- Forum: Ask for Help (v1)
- Topic: how to find two pixelcolors ?
- Replies: 3
- Views: 1016
Re: how to find two pixelcolors ?
Hello I need to add to this code one more color 0x080C0C Can anyone help me ? ;) ~LButton:: while GetKeyState("LButton") { mousegetpos, xx, yy PixelSearch, Px, Py, xx-10, yy-10, xx+10, yy+10, 0x29625F, 3, Fast mousemove %Px%, %Py%, 0 } return ~LButton:: while GetKeyState("LButton") { mousegetpos, x...
- 13 Jul 2018, 05:54
- Forum: Gaming Help (v1)
- Topic: Finding text in game by scrolling mouse button. Topic is solved
- Replies: 3
- Views: 1161
Re: Finding text in game by scrolling mouse button. Topic is solved
Ah thanks, but unfortunately it doesn't work. I made a screenshot of the text where should the macro stop on and i saved it on my desktop. Then i've set the coordinates of the corner of my monitor and set the file's name at the end. It seems the macro works in game but it's not able to stop scrolli...