jeudi 3 septembre 2015

How can i improve my random programm AHK Script

I am a beginner in programming. I need a program that generate a random number between 1 - 100 in each second. This is the code I wrote with simple AHK Script.

Loop
{
 Random, rand_num, 1, 100
ToolTip, Random number:`n%rand_num%`n`nPress ESC to close
Sleep, 1000
}

ESC::ExitApp

The result is okay. But i think their are way better options to solve this task. the program don't run smooth. so when i move the mouse, the field with the number is lagging. or lagging is maybe the wrong word. it doesn't move real time with the mouse. and a second think is the => press escape to close text. is their a easy way to remove this? so that the field with the numbers gets a little bit smaller? i have some experience in java and python,maybe its easier to create a program with these languages. but i am beginner. hope someone can help me either with my AHK script or with tips how can i solve the task in another language. thanks for each helping comment




Aucun commentaire:

Enregistrer un commentaire