Jump to content

abraXas

Members
  • Posts

    5
  • Joined

  • Last visited

abraXas's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Wow, thanks both of you. That's what exactly what I needed.
  2. Hi, i want to change the font size of my console app everytime i start it. this works by hand with rightclick, properties, font, size. however i want to have this done automatically. the only idea i have at this moment is with mousemove/mouseclick, which kinda sucks for a solution. is there any other way? thanks in advance abraxas
  3. Thnks, yes this helped me.
  4. Right, that's what I want. I know that I need a While-WEnd loop, the code is only a snippet.
  5. Ok, I wanted a script to test a guitarhero-like game that sends the right key for a note at the right time and for the right duration. I've tried it like this: $yellow = PixelSearch (left, top, right, bottom, color , shade-variation) If Not @error Then Send("{1 down}") Sleep($sleep) $i = 0 ElseIf @error Then Send("{1 up}") $i = 1 EndIf If $i = 1 Then Sleep($sleep2) EndIf So it searches the colour in the defined area and when found, it sends and holds 1 until the colour is no more found in this area. $i should lower the cpu usage. And the problem is, that when i send 1 he doesn't release it after the colour is long out of the area. The moment it releases the key appears rather random to me. And also if i press any other key not in the script, the key is hold and only released when the script quits or pauses. I've tried this also with multiple notes and the script only hits about 50% and the duration seems totally random. Whereas with this script: $yellow = PixelSearch (left, top, right, bottom, color , shade-variation) If Not @error Then Send("{1}") Sleep($sleep) $i = 0 ElseIf @error Then $i = 1 EndIf If $i = 1 Then Sleep($sleep2) EndIf it hits 100% but (ofcourse) it doesnt hold them for the right duration. I'm gratefull for help. Regards
×
×
  • Create New...