that's not the point, I also like to use the mouse but what if you want to set for ex. 2 clicks per loop and a waiting time of 211 milli sec... how would you do that if numpad 2 and 1 are disabled ? use the others 1 and 2 keys ?
I'm a numpad guy and I like to use the numpad to enter values like tons of other users and if a first user can't enter a value like "1221" in notepad, he'll think your script is a harmful script .
suggestions:
- Single Pixel Search Area.
this is not how it should be, the tpx and tpy positions of the chosen color must be retained as global values.
These values will then be used to define the 1x1 region.
first define tpx and tpy as global valuesthen replaces the function SetPixel() with this oneCode: Select all
global tpx, tpy, HB_Button:=[],Selected_Color:="610094",Color_Edit:="0x610094",Stop:=1,X_Pos:="",Y_Pos:="",W_Pos:="",H_Pos:="",cx2:="",cy2:="",cx:="",cy:="",Variation:=0,RTimes:=1,CMove:=1,CTimes:=1,XOff:=10,YOff:=10,TypeC:="Left",Send_Stuff:="",M_Delay:=30,Key_Delay:=30,Delay:=500
Code: Select all
SetPixel(){ if (!tpx) { msgbox,262144,, Please set a color first return } X_Pos:=tpx, Y_pos:=tpy GuiControl,1:,X_Pos, % tpx GuiControl,1:,Y_Pos, % tpy cx2:=X_Pos,cy2:=Y_Pos GuiControl,1:,W_Pos,1 GuiControl,1:,H_Pos,1 }
For my personal use I had created a second GUI for the settings (not very nice but it does the job)
example of key to show the second gui
Code: Select all
f2::QuickSettings()
Code: Select all
gui 2: +AlwaysOnTop -SysMenu
Gui, 2:Add,Checkbox, x10 y10 vRtimes Checked%Rtimes%, Search Loop
Gui, 2:Add,Checkbox, x10 y+3 vCMove Checked%CMove%, Want Click
Gui, 2:Add,edit, x10 y+3 w50 h20 -WantReturn cblack 0x201 vCTimes, 1
gui, 2:add, updown, Range1-1000, 1
Gui, 2:Add,text, x+3 yp h20 -border 0x201, Number of Clicks Per Loop
Gui, 2:Add,edit, x10 y+3 w50 h20 -WantReturn cblack 0x201 vXOff, 0
gui, 2:add, updown, Range0-10000, 0
Gui, 2:Add,text, x+3 yp h20 -border 0x201, X-Offset (Click & Move)
Gui, 2:Add,edit, x10 y+3 w50 h20 cblack -WantReturn 0x201 vYOff, 0
gui, 2:add, updown, Range0-10000, 0
Gui, 2:Add,text, x+3 yp h20 -border 0x201, Y-Offset (Click & Move)
mbuttons:=["L","M","R"]
Gui, 2:Add,edit, x10 y+3 w35 h20 cblack -WantReturn center vTypeC, % mbuttons[1]
Gui, 2:Add,text, x+15 yp w0 h20 -border 0x201,
gui, 2:add, updown, Range1-3 vMBtxt gMB,
Gui, 2:Add,text, x+3 yp h20 -border 0x201, Which Mouse Button to use (Values: L, M, R)
Gui, 2:Add,edit, x10 y+3 w50 h20 cblack -WantReturn vM_Delay,
gui, 2:add, updown, Range0-10000, 30
Gui, 2:Add,text, x+3 yp h20 -border 0x201, Amount of time a click is held (in ms)
Gui, 2:Add,edit, x10 y+3 w50 h20 cblack -WantReturn vKey_Delay,
gui, 2:add, updown, Range0-10000, 30
Gui, 2:Add,text, x+3 yp h20 -border 0x201 , Amount of time between key strokes (in ms)
Gui, 2:Add,edit, x10 y+3 w50 h20 -WantReturn vDelay, 500
gui, 2:add, updown, Range0-100000, 500
Gui, 2:Add,text, x+3 yp h20 -border 0x201, Loop Delay (Delay between Search Loops (in ms)
Gui, 2:Add,text, x10 y+3 h20 -border 0x201, Commands to "send" (e.g. {Enter} r)
Gui, 2:Add,edit, x10 y+3 w300 h50 cblack cblack -WantReturn vSend_Stuff,
Gui, 2:font
Gui, 2:Add,button, x10 y+3 gapply, Apply
QuickSettings(){
gui 2: show
}
apply() {
gui 2: submit
GuiControl,1:,Commands,% ComLDel RTimes ComLDel CMove ComLDel CTimes ComLDel XOff ComLDel YOff ComLDel TypeC ComLDel M_Delay ComLDel Key_Delay ComLDel Delay ComLDel Send_Stuff
return
}
MB() {
global
gui, 2: submit, nohide
guicontrol,, TypeC, % mbuttons[MBtxt]
}
Cheers.