set #LPC 100
gosub showEUOMenu1
set %update_rate 5
set %timer #SCNT2 + %update_rate
set %MODE CAPTURE
repeat
if #SCNT2 > %timer && %MODE = CAPTURE
{
menu set EUOEditMenu #CONTNAME
menu set EUOEditSize #CONTSIZE
menu set EUOEditX #CONTPOSX
menu set EUOEditY #CONTPOSY
set %tempx #CURSORX - #CONTPOSX
set %tempy #CURSORY - #CONTPOSY
set %string gosub , #SPC , OffsetClick , #SPC , %tempx , #SPC , %tempy
menu set EUOEditString %string
set %timer #SCNT2 + %update_rate
}
onhotkey F1 ALT
{
if %MODE = CAPTURE
{
set %MODE HOLD
menu delete EUOLabel6
}
else
{
set %MODE CAPTURE
menu Text EUOLabel6 4 136 ALT-F1 to capture
}
wait 10
}
until #FALSE
;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title TM's Offset Click Generator
menu Window Color BtnFace
menu Window Size 236 147
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style
menu Font Color WindowText
menu Font Transparent #false
menu Font Align Left
menu Text EUOLabel1 128 8 Current Menu
menu Text EUOLabel2 128 32 Current Size
menu Text EUOLabel3 60 60 X Coord
menu Text EUOLabel4 60 84 X Coord
menu Text EUOLabel5 176 112 String
menu Text EUOLabel6 4 136 ALT-F1 to capture
menu Font BGColor Window
menu Edit EUOEditMenu 0 4 121
menu Edit EUOEditSize 0 28 121
menu Edit EUOEditX 0 56 53
menu Edit EUOEditY 0 80 53
menu Edit EUOEditString 0 108 169
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------