so this is my script bellow, it works almost good, the problem is with this one, that the first time at day i turn on this script and use hotkey to copy 3 numbers and write hotstring command the first my war isnt writen, but if i f.x cory the first number 2 times all 3 wars ar writen with hotstring command, or if i write that hotstring the time i tun the script on and then i copy 3 numbers with hotkey it also works just fine it writes all 3, and i have noooo idea what in the heaven is wrong in this scrip, could u pls help me with that? If You ofc. understood what i have in mind Thank you in advance.
Code: Select all
!x::
Clipboard =
Send, ^c
ClipWait, 2
if errorlevel
{ MsgBox, The attempt to copy text onto the clipboard failed.
return
}
MyVar%count% := Clipboard
count ++
Return
::brug::
WinWaitActive, tbp0 - Micro Focus Rumba
send, Har brugt info fra police nr. %MyVar1% %MyVar2% %MyVar3% til at udstede ny
MyVar1 :=
MyVar2 :=
MyVar3 :=
sleep, 200
;Clipboard =
Sleep, 200
count = 1
return