AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 29 matches
AutoHotkey Community Forum Index
Author Message
  Topic: holding a key down?
nvus

Replies: 17
Views: 298

PostForum: Ask for Help   Posted: Mon Jul 21, 2008 8:32 pm   Subject: holding a key down?
"]*XButton1::
If !GetKeyState("XButton1","p")
return
SendInput, {blind}{F12}
SetTimer, *XButton1, -500
return....?....
you are so helpf ...
  Topic: holding a key down?
nvus

Replies: 17
Views: 298

PostForum: Ask for Help   Posted: Mon Jul 21, 2008 7:48 pm   Subject: holding a key down?
When I tested it I was alt tabbing and typing in notepad with the Left mouse button held down.
i was testing it with the game i play and i was holding onto the spam button and hold control and F1 at ...
  Topic: holding a key down?
nvus

Replies: 17
Views: 298

PostForum: Ask for Help   Posted: Mon Jul 21, 2008 7:17 pm   Subject: holding a key down?
Just change the Send {F12} to SendInput {F12}. That should solve the problem.
does the same thing... i wish i had saved my script Sad
  Topic: holding a key down?
nvus

Replies: 17
Views: 298

PostForum: Ask for Help   Posted: Mon Jul 21, 2008 6:51 pm   Subject: holding a key down?
LButton::
Loop
{
GetKeyState, state, Lbutton, P
if state=U
{
return
}
{
Send {F12}
Sleep 500
}
}
return


Change the number after sleep ...
  Topic: holding a key down?
nvus

Replies: 17
Views: 298

PostForum: Ask for Help   Posted: Mon Jul 21, 2008 6:07 pm   Subject: holding a key down?
Double spam is probably because of the low Sleep time, the script still has the mouse held down when it starts at the top, increase the Sleep a bit and mod it. It was just a rough version anyway.
ca ...
  Topic: holding a key down?
nvus

Replies: 17
Views: 298

PostForum: Ask for Help   Posted: Mon Jul 21, 2008 6:04 pm   Subject: holding a key down?
xbutton1::
GetKeyState, state, xbutton1, P
if state=D
{
Sendinput {F12}
Sleep 200
}


this is what i have so far but it doesnt spam F12 at an interval of 200ms. it only clicks F12 once
  Topic: holding a key down?
nvus

Replies: 17
Views: 298

PostForum: Ask for Help   Posted: Mon Jul 21, 2008 5:18 pm   Subject: holding a key down?
i lost my script somewhere but i had it so that it remapped one of my mousebuttons to F12 and when i held down that mousebutton, it would spam F12 at a certain interval. when i let go of the mousebut ...
  Topic: suspend depending on pixel?
nvus

Replies: 11
Views: 257

PostForum: Ask for Help   Posted: Wed May 21, 2008 6:09 pm   Subject: suspend depending on pixel?
is it possible to do something like

if GetPixelColor [at] MousePos 55,787 != 0x101010
Suspend, On
else
Suspend, Off

i know [at] isnt useable but i donno how else to explain what i ...
  Topic: suspend depending on pixel?
nvus

Replies: 11
Views: 257

PostForum: Ask for Help   Posted: Wed May 21, 2008 4:45 am   Subject: suspend depending on pixel?
@sinkfaze

doesnt work, the script just pauses. i tried changing pause to suspend but it just suspends.
  Topic: suspend depending on pixel?
nvus

Replies: 11
Views: 257

PostForum: Ask for Help   Posted: Wed May 21, 2008 2:29 am   Subject: suspend depending on pixel?
doesnt work
  Topic: suspend depending on pixel?
nvus

Replies: 11
Views: 257

PostForum: Ask for Help   Posted: Wed May 21, 2008 1:36 am   Subject: suspend depending on pixel?
thanks PurloinedHeart but i decided to use

z::
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
MsgBox The color at the current cursor position is %color%.
return

x::
M ...
  Topic: suspend depending on pixel?
nvus

Replies: 11
Views: 257

PostForum: Ask for Help   Posted: Wed May 21, 2008 1:27 am   Subject: suspend depending on pixel?
ok so i have my pixel hexcode, how do i retreive the X,Y position of the pixel?
  Topic: suspend depending on pixel?
nvus

Replies: 11
Views: 257

PostForum: Ask for Help   Posted: Tue May 20, 2008 10:38 pm   Subject: suspend depending on pixel?
What about
actually, i'm looking at those now.

how do i retreive a certain pixel color and position? how do i know the the hexcode is for the color and the x,y
  Topic: suspend depending on pixel?
nvus

Replies: 11
Views: 257

PostForum: Ask for Help   Posted: Tue May 20, 2008 10:28 pm   Subject: suspend depending on pixel?
is it possible to suspend and unsuspend a script depending on what color pixel is being shown at a certain area/coordinate?

example:
i choose coordinates 21,40 on the window. if the pixel at 21,4 ...
  Topic: [help] how to toggle a key on/off
nvus

Replies: 14
Views: 439

PostForum: Ask for Help   Posted: Wed May 14, 2008 2:41 pm   Subject: [help] how to toggle a key on/off
wow thanks alot. thats MUCH better.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group