msgbox

Untitled

Apr 29th, 2011
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoTrayIcon
  2. #SingleInstance force
  3. WinGetActiveTitle, LastWindow
  4. Gui, Color, FFFFFF
  5. Gui, Font, s7 normal, Tahoma
  6. Gui +ToolWindow -border -caption +AlwaysOnTop
  7. SysGet, MonitorWorkArea, MonitorWorkArea, %A_Index%
  8. MonitorWidth := MonitorWorkAreaRight
  9. MonitorHeight := MonitorWorkAreaBottom
  10. Gui_Show := "0"
  11. UISet_Sleep := "500"
  12.  
  13.  
  14. GraffityUI_Width := "632"
  15. GraffityUI_Height := "510"
  16. GraffityUI_OffsetX := "9"
  17. GraffityUI_OffsetY := "1"
  18. SetPosX := Ceil(((MonitorWidth-GraffityUI_Width)/2)-GraffityUI_OffsetX)
  19. SetPosY := Ceil(((MonitorHeight-GraffityUI_Height)/2)+GraffityUI_OffsetY)
  20. if Gui_Show!=0
  21. Gui, Add, GroupBox, x%SetPosX% y%SetPosY% w%GraffityUI_Width% h%GraffityUI_Height% cRed BackgorundTrans, window
  22.  
  23.  
  24.  
  25. GraffityUI_RefreshText_StartPosX := SetPosX + 22
  26. GraffityUI_RefreshText_StartPosY := SetPosY + 54
  27. GraffityUI_RefreshText_Width := "89"
  28. GraffityUI_RefreshText_Height := "21"
  29. if Gui_Show!=0
  30. Gui, Add, GroupBox, x%GraffityUI_RefreshText_StartPosX% y%GraffityUI_RefreshText_StartPosY% w%GraffityUI_RefreshText_Width% h%GraffityUI_RefreshText_Height% cRed BackgorundTrans, reload
  31.  
  32.  
  33.  
  34. GrafittyUI_UndoText_StartPosX := GraffityUI_RefreshText_StartPosX + GraffityUI_RefreshText_Width + 4
  35. GrafittyUI_UndoText_StartPosY := GraffityUI_RefreshText_StartPosY
  36. GrafittyUI_UndoText_Width := "165"
  37. GrafittyUI_UndoText_Height := "21"
  38. if Gui_Show!=0
  39. Gui, Add, GroupBox, x%GrafittyUI_UndoText_StartPosX% y%GrafittyUI_UndoText_StartPosY% w%GrafittyUI_UndoText_Width% h%GrafittyUI_UndoText_Height% cRed BackgorundTrans, undo
  40.  
  41.  
  42.  
  43. GrafittyUI_WorkArea_StartPosX := SetPosX + 23
  44. GrafittyUI_WorkArea_StartPosY := SetPosY + 80
  45. GrafittyUI_WorkArea_Width := "588"
  46. GrafittyUI_WorkArea_Height := "301"
  47. if Gui_Show!=0
  48. Gui, Add, GroupBox, x%GrafittyUI_WorkArea_StartPosX% y%GrafittyUI_WorkArea_StartPosY% w%GrafittyUI_WorkArea_Width% h%GrafittyUI_WorkArea_Height% cRed BackgorundTrans, workarea
  49.  
  50.  
  51.  
  52. GraffittyUI_WidthSlider_StartPosX := SetPosX + 292
  53. GraffittyUI_WidthSlider_StartPosY := SetPosY + 413
  54. GraffittyUI_WidthSlider_Width := "103"
  55. GraffittyUI_WidthSlider_Height := "13"
  56. if Gui_Show!=0
  57. Gui, Add, GroupBox, x%GraffittyUI_WidthSlider_StartPosX% y%GraffittyUI_WidthSlider_StartPosY% w%GraffittyUI_WidthSlider_Width% h%GraffittyUI_WidthSlider_Height% cRed BackgorundTrans, width slider
  58.  
  59.  
  60.  
  61. GrafittyUI_TransSlider_StartPosX := GraffittyUI_WidthSlider_StartPosY + GraffittyUI_WidthSlider_Width + 63
  62. GrafittyUI_TransSlider_StartPosY := GraffittyUI_WidthSlider_StartPosY
  63. GrafittyUI_TransSlider_Width := "103"
  64. GrafittyUI_TransSlider_Height := "13"
  65. if Gui_Show!=0
  66. Gui, Add, GroupBox, x%GrafittyUI_TransSlider_StartPosX% y%GrafittyUI_TransSlider_StartPosY% w%GrafittyUI_TransSlider_Width% h%GrafittyUI_TransSlider_Height% cRed BackgorundTrans, transp slider
  67.  
  68.  
  69. GraffittyUI_SelectThereColorBox_StartPosX := SetPosX + 173
  70. GraffittyUI_SelectThereColorBox_StartPosY := SetPosY + 409
  71. GraffittyUI_SelectThereColorBox_Width := "14"
  72. GraffittyUI_SelectThereColorBox_Height := "20"
  73. GraffittyUI_SelectColorBox_StartPosX := SetPosX + 173
  74. GraffittyUI_SelectColorBox_StartPosY := SetPosY + 409
  75. GraffittyUI_SelectColorBox_Width := "14"
  76. GraffittyUI_SelectColorBox_Height := "20"
  77. if Gui_Show!=0
  78. Gui, Add, GroupBox, x%GraffittyUI_SelectColorBox_StartPosX% y%GraffittyUI_SelectColorBox_StartPosY% w%GraffittyUI_SelectColorBox_Width% h%GraffittyUI_SelectColorBox_Height% cRed BackgorundTrans,
  79.  
  80.  
  81.  
  82.     SetColorStartX := "96"
  83.     SetColorStartY := "201"
  84.     SetColorStartX2 := "96"
  85.     SetColorStartY2 := "201"
  86.    
  87.     Loop, 12
  88.     {
  89.     lines ++
  90.     boxes ++
  91.         Loop, 18
  92.         {
  93.         GraffittyUI_SelectColorBox_StartPosX := SetPosX + SetColorStartX
  94.         GraffittyUI_SelectColorBox_StartPosY := SetPosY + SetColorStartY
  95.         GraffittyUI_SelectColorBox_Width := "16"
  96.         GraffittyUI_SelectColorBox_Height := "20"
  97.         ColorBox%boxes%_PosX := GraffittyUI_SelectColorBox_StartPosX
  98.         ColorBox%boxes%_PosY := GraffittyUI_SelectColorBox_StartPosY
  99.         ColorBox%boxes%_Width := "16"
  100.         ColorBox%boxes%_Height := "20"
  101.         if Gui_Show!=0
  102.         Gui, Add, GroupBox, x%GraffittyUI_SelectColorBox_StartPosX% y%GraffittyUI_SelectColorBox_StartPosY% w%GraffittyUI_SelectColorBox_Width% h%GraffittyUI_SelectColorBox_Height% cRed BackgorundTrans,
  103.         SetColorStartX := SetColorStartX + GraffittyUI_SelectColorBox_Width -2
  104.         boxes ++
  105.         }
  106.     SetColorStartX := SetColorStartX2
  107.     SetColorStartY := SetColorStartY2 + GraffittyUI_SelectColorBox_Height*lines - 6*lines
  108.     }
  109.  
  110.  
  111. Gui, Show, x0 y0, Graffity Detect
  112. Gui +LastFound
  113. WinSet, TransColor, FFFFFF, Graffity Detect
  114. MousePosX := GrafittyUI_WorkArea_StartPosX + 2 + SetPosX
  115. MousePosY := GrafittyUI_WorkArea_StartPosY + 6 + SetPosY
  116.  
  117. Loop, 10
  118.     {
  119.     MouseMove, %MousePosX%, %MousePosY%
  120.     Random, Color, 1, 216
  121.     Random, SliderTransparent, 1, 100
  122.     Random, SliderWidth, 1, 100
  123.  
  124.     Random, X2, 1, %GrafittyUI_WorkArea_Width%
  125.     Random, X1, %X2%, %GrafittyUI_WorkArea_Width%
  126.     Random, Y2, 1, %GrafittyUI_WorkArea_Height%
  127.     Random, Y1, %Y2%, %GrafittyUI_WorkArea_Height%
  128.  
  129.     UISet_SliderTransparent(SliderTransparent)
  130.     UISet_SliderWidth(SliderWidth)
  131.     UISet_Color(Color)
  132.     MouseClickDrag, Left, %X1%, %X2%, %Y1%, %Y2%
  133.     }
  134.  
  135.    
  136.  
  137. return
  138.  
  139.  
  140.  
  141. UISet_Color(ColorNumber) {
  142. global GraffittyUI_SelectThereColorBox_StartPosX, GraffittyUI_SelectThereColorBox_StartPosY, GraffittyUI_SelectThereColorBox_Width, GraffittyUI_SelectThereColorBox_Height, ColorBox1_PosX, ColorBox1_PosY, ColorBox1_Width, ColorBox1_Height, ColorBox2_PosX, ColorBox2_PosY, ColorBox2_Width, ColorBox2_Height, ColorBox3_PosX, ColorBox3_PosY, ColorBox3_Width, ColorBox3_Height, ColorBox4_PosX, ColorBox4_PosY, ColorBox4_Width, ColorBox4_Height, ColorBox5_PosX, ColorBox5_PosY, ColorBox5_Width, ColorBox5_Height, ColorBox6_PosX, ColorBox6_PosY, ColorBox6_Width, ColorBox6_Height, ColorBox7_PosX, ColorBox7_PosY, ColorBox7_Width, ColorBox7_Height, ColorBox8_PosX, ColorBox8_PosY, ColorBox8_Width, ColorBox8_Height, ColorBox9_PosX, ColorBox9_PosY, ColorBox9_Width, ColorBox9_Height, ColorBox10_PosX, ColorBox10_PosY, ColorBox10_Width, ColorBox10_Height, ColorBox11_PosX, ColorBox11_PosY, ColorBox11_Width, ColorBox11_Height, ColorBox12_PosX, ColorBox12_PosY, ColorBox12_Width, ColorBox12_Height, ColorBox13_PosX, ColorBox13_PosY, ColorBox13_Width, ColorBox13_Height, ColorBox14_PosX, ColorBox14_PosY, ColorBox14_Width, ColorBox14_Height, ColorBox15_PosX, ColorBox15_PosY, ColorBox15_Width, ColorBox15_Height, ColorBox16_PosX, ColorBox16_PosY, ColorBox16_Width, ColorBox16_Height, ColorBox17_PosX, ColorBox17_PosY, ColorBox17_Width, ColorBox17_Height, ColorBox18_PosX, ColorBox18_PosY, ColorBox18_Width, ColorBox18_Height, ColorBox19_PosX, ColorBox19_PosY, ColorBox19_Width, ColorBox19_Height, ColorBox20_PosX, ColorBox20_PosY, ColorBox20_Width, ColorBox20_Height, ColorBox21_PosX, ColorBox21_PosY, ColorBox21_Width, ColorBox21_Height, ColorBox22_PosX, ColorBox22_PosY, ColorBox22_Width, ColorBox22_Height, ColorBox23_PosX, ColorBox23_PosY, ColorBox23_Width, ColorBox23_Height, ColorBox24_PosX, ColorBox24_PosY, ColorBox24_Width, ColorBox24_Height, ColorBox25_PosX, ColorBox25_PosY, ColorBox25_Width, ColorBox25_Height, ColorBox26_PosX, ColorBox26_PosY, ColorBox26_Width, ColorBox26_Height, ColorBox27_PosX, ColorBox27_PosY, ColorBox27_Width, ColorBox27_Height, ColorBox28_PosX, ColorBox28_PosY, ColorBox28_Width, ColorBox28_Height, ColorBox29_PosX, ColorBox29_PosY, ColorBox29_Width, ColorBox29_Height, ColorBox30_PosX, ColorBox30_PosY, ColorBox30_Width, ColorBox30_Height, ColorBox31_PosX, ColorBox31_PosY, ColorBox31_Width, ColorBox31_Height, ColorBox32_PosX, ColorBox32_PosY, ColorBox32_Width, ColorBox32_Height, ColorBox33_PosX, ColorBox33_PosY, ColorBox33_Width, ColorBox33_Height, ColorBox34_PosX, ColorBox34_PosY, ColorBox34_Width, ColorBox34_Height, ColorBox35_PosX, ColorBox35_PosY, ColorBox35_Width, ColorBox35_Height, ColorBox36_PosX, ColorBox36_PosY, ColorBox36_Width, ColorBox36_Height, ColorBox37_PosX, ColorBox37_PosY, ColorBox37_Width, ColorBox37_Height, ColorBox38_PosX, ColorBox38_PosY, ColorBox38_Width, ColorBox38_Height, ColorBox39_PosX, ColorBox39_PosY, ColorBox39_Width, ColorBox39_Height, ColorBox40_PosX, ColorBox40_PosY, ColorBox40_Width, ColorBox40_Height, ColorBox41_PosX, ColorBox41_PosY, ColorBox41_Width, ColorBox41_Height, ColorBox42_PosX, ColorBox42_PosY, ColorBox42_Width, ColorBox42_Height, ColorBox43_PosX, ColorBox43_PosY, ColorBox43_Width, ColorBox43_Height, ColorBox44_PosX, ColorBox44_PosY, ColorBox44_Width, ColorBox44_Height, ColorBox45_PosX, ColorBox45_PosY, ColorBox45_Width, ColorBox45_Height, ColorBox46_PosX, ColorBox46_PosY, ColorBox46_Width, ColorBox46_Height, ColorBox47_PosX, ColorBox47_PosY, ColorBox47_Width, ColorBox47_Height, ColorBox48_PosX, ColorBox48_PosY, ColorBox48_Width, ColorBox48_Height, ColorBox49_PosX, ColorBox49_PosY, ColorBox49_Width, ColorBox49_Height, ColorBox50_PosX, ColorBox50_PosY, ColorBox50_Width, ColorBox50_Height, ColorBox51_PosX, ColorBox51_PosY, ColorBox51_Width, ColorBox51_Height, ColorBox52_PosX, ColorBox52_PosY, ColorBox52_Width, ColorBox52_Height, ColorBox53_PosX, ColorBox53_PosY, ColorBox53_Width, ColorBox53_Height, ColorBox54_PosX, ColorBox54_PosY, ColorBox54_Width, ColorBox54_Height, ColorBox55_PosX, ColorBox55_PosY, ColorBox55_Width, ColorBox55_Height, ColorBox56_PosX, ColorBox56_PosY, ColorBox56_Width, ColorBox56_Height, ColorBox57_PosX, ColorBox57_PosY, ColorBox57_Width, ColorBox57_Height, ColorBox58_PosX, ColorBox58_PosY, ColorBox58_Width, ColorBox58_Height, ColorBox59_PosX, ColorBox59_PosY, ColorBox59_Width, ColorBox59_Height, ColorBox60_PosX, ColorBox60_PosY, ColorBox60_Width, ColorBox60_Height, ColorBox61_PosX, ColorBox61_PosY, ColorBox61_Width, ColorBox61_Height, ColorBox62_PosX, ColorBox62_PosY, ColorBox62_Width, ColorBox62_Height, ColorBox63_PosX, ColorBox63_PosY, ColorBox63_Width, ColorBox63_Height, ColorBox64_PosX, ColorBox64_PosY, ColorBox64_Width, ColorBox64_Height, ColorBox65_PosX, ColorBox65_PosY, ColorBox65_Width, ColorBox65_Height, ColorBox66_PosX, ColorBox66_PosY, ColorBox66_Width, ColorBox66_Height, ColorBox67_PosX, ColorBox67_PosY, ColorBox67_Width, ColorBox67_Height, ColorBox68_PosX, ColorBox68_PosY, ColorBox68_Width, ColorBox68_Height, ColorBox69_PosX, ColorBox69_PosY, ColorBox69_Width, ColorBox69_Height, ColorBox70_PosX, ColorBox70_PosY, ColorBox70_Width, ColorBox70_Height, ColorBox71_PosX, ColorBox71_PosY, ColorBox71_Width, ColorBox71_Height, ColorBox72_PosX, ColorBox72_PosY, ColorBox72_Width, ColorBox72_Height, ColorBox73_PosX, ColorBox73_PosY, ColorBox73_Width, ColorBox73_Height, ColorBox74_PosX, ColorBox74_PosY, ColorBox74_Width, ColorBox74_Height, ColorBox75_PosX, ColorBox75_PosY, ColorBox75_Width, ColorBox75_Height, ColorBox76_PosX, ColorBox76_PosY, ColorBox76_Width, ColorBox76_Height, ColorBox77_PosX, ColorBox77_PosY, ColorBox77_Width, ColorBox77_Height, ColorBox78_PosX, ColorBox78_PosY, ColorBox78_Width, ColorBox78_Height, ColorBox79_PosX, ColorBox79_PosY, ColorBox79_Width, ColorBox79_Height, ColorBox80_PosX, ColorBox80_PosY, ColorBox80_Width, ColorBox80_Height, ColorBox81_PosX, ColorBox81_PosY, ColorBox81_Width, ColorBox81_Height, ColorBox82_PosX, ColorBox82_PosY, ColorBox82_Width, ColorBox82_Height, ColorBox83_PosX, ColorBox83_PosY, ColorBox83_Width, ColorBox83_Height, ColorBox84_PosX, ColorBox84_PosY, ColorBox84_Width, ColorBox84_Height, ColorBox85_PosX, ColorBox85_PosY, ColorBox85_Width, ColorBox85_Height, ColorBox86_PosX, ColorBox86_PosY, ColorBox86_Width, ColorBox86_Height, ColorBox87_PosX, ColorBox87_PosY, ColorBox87_Width, ColorBox87_Height, ColorBox88_PosX, ColorBox88_PosY, ColorBox88_Width, ColorBox88_Height, ColorBox89_PosX, ColorBox89_PosY, ColorBox89_Width, ColorBox89_Height, ColorBox90_PosX, ColorBox90_PosY, ColorBox90_Width, ColorBox90_Height, ColorBox91_PosX, ColorBox91_PosY, ColorBox91_Width, ColorBox91_Height, ColorBox92_PosX, ColorBox92_PosY, ColorBox92_Width, ColorBox92_Height, ColorBox93_PosX, ColorBox93_PosY, ColorBox93_Width, ColorBox93_Height, ColorBox94_PosX, ColorBox94_PosY, ColorBox94_Width, ColorBox94_Height, ColorBox95_PosX, ColorBox95_PosY, ColorBox95_Width, ColorBox95_Height, ColorBox96_PosX, ColorBox96_PosY, ColorBox96_Width, ColorBox96_Height, ColorBox97_PosX, ColorBox97_PosY, ColorBox97_Width, ColorBox97_Height, ColorBox98_PosX, ColorBox98_PosY, ColorBox98_Width, ColorBox98_Height, ColorBox99_PosX, ColorBox99_PosY, ColorBox99_Width, ColorBox99_Height, ColorBox100_PosX, ColorBox100_PosY, ColorBox100_Width, ColorBox100_Height, ColorBox101_PosX, ColorBox101_PosY, ColorBox101_Width, ColorBox101_Height, ColorBox102_PosX, ColorBox102_PosY, ColorBox102_Width, ColorBox102_Height, ColorBox103_PosX, ColorBox103_PosY, ColorBox103_Width, ColorBox103_Height, ColorBox104_PosX, ColorBox104_PosY, ColorBox104_Width, ColorBox104_Height, ColorBox105_PosX, ColorBox105_PosY, ColorBox105_Width, ColorBox105_Height, ColorBox106_PosX, ColorBox106_PosY, ColorBox106_Width, ColorBox106_Height, ColorBox107_PosX, ColorBox107_PosY, ColorBox107_Width, ColorBox107_Height, ColorBox108_PosX, ColorBox108_PosY, ColorBox108_Width, ColorBox108_Height, ColorBox109_PosX, ColorBox109_PosY, ColorBox109_Width, ColorBox109_Height, ColorBox110_PosX, ColorBox110_PosY, ColorBox110_Width, ColorBox110_Height, ColorBox111_PosX, ColorBox111_PosY, ColorBox111_Width, ColorBox111_Height, ColorBox112_PosX, ColorBox112_PosY, ColorBox112_Width, ColorBox112_Height, ColorBox113_PosX, ColorBox113_PosY, ColorBox113_Width, ColorBox113_Height, ColorBox114_PosX, ColorBox114_PosY, ColorBox114_Width, ColorBox114_Height, ColorBox115_PosX, ColorBox115_PosY, ColorBox115_Width, ColorBox115_Height, ColorBox116_PosX, ColorBox116_PosY, ColorBox116_Width, ColorBox116_Height, ColorBox117_PosX, ColorBox117_PosY, ColorBox117_Width, ColorBox117_Height, ColorBox118_PosX, ColorBox118_PosY, ColorBox118_Width, ColorBox118_Height, ColorBox119_PosX, ColorBox119_PosY, ColorBox119_Width, ColorBox119_Height, ColorBox120_PosX, ColorBox120_PosY, ColorBox120_Width, ColorBox120_Height, ColorBox121_PosX, ColorBox121_PosY, ColorBox121_Width, ColorBox121_Height, ColorBox122_PosX, ColorBox122_PosY, ColorBox122_Width, ColorBox122_Height, ColorBox123_PosX, ColorBox123_PosY, ColorBox123_Width, ColorBox123_Height, ColorBox124_PosX, ColorBox124_PosY, ColorBox124_Width, ColorBox124_Height, ColorBox125_PosX, ColorBox125_PosY, ColorBox125_Width, ColorBox125_Height, ColorBox126_PosX, ColorBox126_PosY, ColorBox126_Width, ColorBox126_Height, ColorBox127_PosX, ColorBox127_PosY, ColorBox127_Width, ColorBox127_Height, ColorBox128_PosX, ColorBox128_PosY, ColorBox128_Width, ColorBox128_Height, ColorBox129_PosX, ColorBox129_PosY, ColorBox129_Width, ColorBox129_Height, ColorBox130_PosX, ColorBox130_PosY, ColorBox130_Width, ColorBox130_Height, ColorBox131_PosX, ColorBox131_PosY, ColorBox131_Width, ColorBox131_Height, ColorBox132_PosX, ColorBox132_PosY, ColorBox132_Width, ColorBox132_Height, ColorBox133_PosX, ColorBox133_PosY, ColorBox133_Width, ColorBox133_Height, ColorBox134_PosX, ColorBox134_PosY, ColorBox134_Width, ColorBox134_Height, ColorBox135_PosX, ColorBox135_PosY, ColorBox135_Width, ColorBox135_Height, ColorBox136_PosX, ColorBox136_PosY, ColorBox136_Width, ColorBox136_Height, ColorBox137_PosX, ColorBox137_PosY, ColorBox137_Width, ColorBox137_Height, ColorBox138_PosX, ColorBox138_PosY, ColorBox138_Width, ColorBox138_Height, ColorBox139_PosX, ColorBox139_PosY, ColorBox139_Width, ColorBox139_Height, ColorBox140_PosX, ColorBox140_PosY, ColorBox140_Width, ColorBox140_Height, ColorBox141_PosX, ColorBox141_PosY, ColorBox141_Width, ColorBox141_Height, ColorBox142_PosX, ColorBox142_PosY, ColorBox142_Width, ColorBox142_Height, ColorBox143_PosX, ColorBox143_PosY, ColorBox143_Width, ColorBox143_Height, ColorBox144_PosX, ColorBox144_PosY, ColorBox144_Width, ColorBox144_Height, ColorBox145_PosX, ColorBox145_PosY, ColorBox145_Width, ColorBox145_Height, ColorBox146_PosX, ColorBox146_PosY, ColorBox146_Width, ColorBox146_Height, ColorBox147_PosX, ColorBox147_PosY, ColorBox147_Width, ColorBox147_Height, ColorBox148_PosX, ColorBox148_PosY, ColorBox148_Width, ColorBox148_Height, ColorBox149_PosX, ColorBox149_PosY, ColorBox149_Width, ColorBox149_Height, ColorBox150_PosX, ColorBox150_PosY, ColorBox150_Width, ColorBox150_Height, ColorBox151_PosX, ColorBox151_PosY, ColorBox151_Width, ColorBox151_Height, ColorBox152_PosX, ColorBox152_PosY, ColorBox152_Width, ColorBox152_Height, ColorBox153_PosX, ColorBox153_PosY, ColorBox153_Width, ColorBox153_Height, ColorBox154_PosX, ColorBox154_PosY, ColorBox154_Width, ColorBox154_Height, ColorBox155_PosX, ColorBox155_PosY, ColorBox155_Width, ColorBox155_Height, ColorBox156_PosX, ColorBox156_PosY, ColorBox156_Width, ColorBox156_Height, ColorBox157_PosX, ColorBox157_PosY, ColorBox157_Width, ColorBox157_Height, ColorBox158_PosX, ColorBox158_PosY, ColorBox158_Width, ColorBox158_Height, ColorBox159_PosX, ColorBox159_PosY, ColorBox159_Width, ColorBox159_Height, ColorBox160_PosX, ColorBox160_PosY, ColorBox160_Width, ColorBox160_Height, ColorBox161_PosX, ColorBox161_PosY, ColorBox161_Width, ColorBox161_Height, ColorBox162_PosX, ColorBox162_PosY, ColorBox162_Width, ColorBox162_Height, ColorBox163_PosX, ColorBox163_PosY, ColorBox163_Width, ColorBox163_Height, ColorBox164_PosX, ColorBox164_PosY, ColorBox164_Width, ColorBox164_Height, ColorBox165_PosX, ColorBox165_PosY, ColorBox165_Width, ColorBox165_Height, ColorBox166_PosX, ColorBox166_PosY, ColorBox166_Width, ColorBox166_Height, ColorBox167_PosX, ColorBox167_PosY, ColorBox167_Width, ColorBox167_Height, ColorBox168_PosX, ColorBox168_PosY, ColorBox168_Width, ColorBox168_Height, ColorBox169_PosX, ColorBox169_PosY, ColorBox169_Width, ColorBox169_Height, ColorBox170_PosX, ColorBox170_PosY, ColorBox170_Width, ColorBox170_Height, ColorBox171_PosX, ColorBox171_PosY, ColorBox171_Width, ColorBox171_Height, ColorBox172_PosX, ColorBox172_PosY, ColorBox172_Width, ColorBox172_Height, ColorBox173_PosX, ColorBox173_PosY, ColorBox173_Width, ColorBox173_Height, ColorBox174_PosX, ColorBox174_PosY, ColorBox174_Width, ColorBox174_Height, ColorBox175_PosX, ColorBox175_PosY, ColorBox175_Width, ColorBox175_Height, ColorBox176_PosX, ColorBox176_PosY, ColorBox176_Width, ColorBox176_Height, ColorBox177_PosX, ColorBox177_PosY, ColorBox177_Width, ColorBox177_Height, ColorBox178_PosX, ColorBox178_PosY, ColorBox178_Width, ColorBox178_Height, ColorBox179_PosX, ColorBox179_PosY, ColorBox179_Width, ColorBox179_Height, ColorBox180_PosX, ColorBox180_PosY, ColorBox180_Width, ColorBox180_Height, ColorBox181_PosX, ColorBox181_PosY, ColorBox181_Width, ColorBox181_Height, ColorBox182_PosX, ColorBox182_PosY, ColorBox182_Width, ColorBox182_Height, ColorBox183_PosX, ColorBox183_PosY, ColorBox183_Width, ColorBox183_Height, ColorBox184_PosX, ColorBox184_PosY, ColorBox184_Width, ColorBox184_Height, ColorBox185_PosX, ColorBox185_PosY, ColorBox185_Width, ColorBox185_Height, ColorBox186_PosX, ColorBox186_PosY, ColorBox186_Width, ColorBox186_Height, ColorBox187_PosX, ColorBox187_PosY, ColorBox187_Width, ColorBox187_Height, ColorBox188_PosX, ColorBox188_PosY, ColorBox188_Width, ColorBox188_Height, ColorBox189_PosX, ColorBox189_PosY, ColorBox189_Width, ColorBox189_Height, ColorBox190_PosX, ColorBox190_PosY, ColorBox190_Width, ColorBox190_Height, ColorBox191_PosX, ColorBox191_PosY, ColorBox191_Width, ColorBox191_Height, ColorBox192_PosX, ColorBox192_PosY, ColorBox192_Width, ColorBox192_Height, ColorBox193_PosX, ColorBox193_PosY, ColorBox193_Width, ColorBox193_Height, ColorBox194_PosX, ColorBox194_PosY, ColorBox194_Width, ColorBox194_Height, ColorBox195_PosX, ColorBox195_PosY, ColorBox195_Width, ColorBox195_Height, ColorBox196_PosX, ColorBox196_PosY, ColorBox196_Width, ColorBox196_Height, ColorBox197_PosX, ColorBox197_PosY, ColorBox197_Width, ColorBox197_Height, ColorBox198_PosX, ColorBox198_PosY, ColorBox198_Width, ColorBox198_Height, ColorBox199_PosX, ColorBox199_PosY, ColorBox199_Width, ColorBox199_Height, ColorBox200_PosX, ColorBox200_PosY, ColorBox200_Width, ColorBox200_Height, ColorBox201_PosX, ColorBox201_PosY, ColorBox201_Width, ColorBox201_Height, ColorBox202_PosX, ColorBox202_PosY, ColorBox202_Width, ColorBox202_Height, ColorBox203_PosX, ColorBox203_PosY, ColorBox203_Width, ColorBox203_Height, ColorBox204_PosX, ColorBox204_PosY, ColorBox204_Width, ColorBox204_Height, ColorBox205_PosX, ColorBox205_PosY, ColorBox205_Width, ColorBox205_Height, ColorBox206_PosX, ColorBox206_PosY, ColorBox206_Width, ColorBox206_Height, ColorBox207_PosX, ColorBox207_PosY, ColorBox207_Width, ColorBox207_Height, ColorBox208_PosX, ColorBox208_PosY, ColorBox208_Width, ColorBox208_Height, ColorBox209_PosX, ColorBox209_PosY, ColorBox209_Width, ColorBox209_Height, ColorBox210_PosX, ColorBox210_PosY, ColorBox210_Width, ColorBox210_Height, ColorBox211_PosX, ColorBox211_PosY, ColorBox211_Width, ColorBox211_Height, ColorBox212_PosX, ColorBox212_PosY, ColorBox212_Width, ColorBox212_Height, ColorBox213_PosX, ColorBox213_PosY, ColorBox213_Width, ColorBox213_Height, ColorBox214_PosX, ColorBox214_PosY, ColorBox214_Width, ColorBox214_Height, ColorBox215_PosX, ColorBox215_PosY, ColorBox215_Width, ColorBox215_Height, ColorBox216_PosX, ColorBox216_PosY, ColorBox216_Width, ColorBox216_Height
  143.  
  144.     NewPosX := GraffittyUI_SelectThereColorBox_StartPosX + (GraffittyUI_SelectThereColorBox_Width/2)
  145.     NewPosY := GraffittyUI_SelectThereColorBox_StartPosY + (GraffittyUI_SelectThereColorBox_Height/2)
  146.     MouseMove, %NewPosX%, %NewPosY%
  147.     sleep, 250
  148.     MouseClick, Left , %NewPosX%, %NewPosY%
  149.     CurrentPosX = % ColorBox%ColorNumber%_PosX
  150.     CurrentPosY = % ColorBox%ColorNumber%_PosY
  151.     CurrentWidth = % ColorBox%ColorNumber%_Width
  152.     CurrentHeight = % ColorBox%ColorNumber%_Height
  153.     NewPosX := CurrentPosX + (CurrentWidth/2) + 2
  154.     NewPosY := CurrentPosY + (CurrentHeight/2) + 2
  155.     MouseMove, %NewPosX%, %NewPosY%
  156.     MouseClick, Left, %NewPosX%, %NewPosY%
  157. return
  158. }
  159.  
  160.  
  161.  
  162.  
  163.  
  164. UISet_SliderTransparent(Percent) {
  165. global GrafittyUI_TransSlider_StartPosX, GrafittyUI_TransSlider_StartPosY, GrafittyUI_TransSlider_Width, GrafittyUI_TransSlider_Height
  166. MouseMove, %GrafittyUI_TransSlider_StartPosX%, %GrafittyUI_TransSlider_StartPosY%
  167. Percent := GrafittyUI_TransSlider_Width/100*Percent
  168. NewPosX := Ceil(GrafittyUI_TransSlider_StartPosX + Percent)
  169. NewPosY := Ceil(GrafittyUI_TransSlider_StartPosY + (GrafittyUI_TransSlider_Height/2))
  170. MouseMove, %NewPosX%, %NewPosY%
  171. MouseClick, Left , %NewPosX%, %NewPosY%
  172. return
  173. }
  174.  
  175.  
  176.  
  177.  
  178. UISet_SliderWidth(Percent) {
  179. global GraffittyUI_WidthSlider_StartPosX, GraffittyUI_WidthSlider_StartPosY, GraffittyUI_WidthSlider_Width, GraffittyUI_WidthSlider_Height
  180. MouseMove, %GraffittyUI_WidthSlider_StartPosX%, %GraffittyUI_WidthSlider_StartPosY%
  181. Percent := GraffittyUI_WidthSlider_Width/100*Percent
  182. NewPosX := Ceil(GraffittyUI_WidthSlider_StartPosX + Percent)
  183. NewPosY := Ceil(GraffittyUI_WidthSlider_StartPosY + (GraffittyUI_WidthSlider_Height/2))
  184. MouseMove, %NewPosX%, %NewPosY%
  185. MouseClick, Left , %NewPosX%, %NewPosY%
  186. return
  187. }
  188.  
  189. #Esc::
  190. GuiClose:
  191. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment