It's the only v var & there is only 1 GUI.
It works once but when I use it again (press #µ) I get the error.
Reload helps so it seems it remembers that I used the var before, is there a way to make it forget besides reloading the script (sorry for the crappy English)?
Code:
#NoTrayIcon
#c::
Process, priority, ntvdm.exe, Low
return
; -------------------------------------------
#O::
IfWinActive, ahk_class ConsoleWindowClass
{
Sleep, 500
SetKeyDelay, 5
Send, BETALING NETTO CONTANT OP REKENING
Send, {ENTER}
Sleep, 100
Send, ING 320-0683206-08
Send, {ENTER 2}
Sleep, 100
Send, PDW
Send, {ENTER}
Send, {Esc 2}{ENTER 8}
}
return
; -------------------------------------------
#B::
IfWinActive, ahk_class ConsoleWindowClass
{
Sleep, 500
SetKeyDelay, 5
Send, ONTVANGEN BC
Send, {ENTER 2}
Send, PDW
Send, {ENTER}
Send, {Esc 2}{ENTER 8}
}
return
; -------------------------------------------
#K::
IfWinActive, ahk_class ConsoleWindowClass
{
Sleep, 500
SetKeyDelay, 5
Send, ONTVANGEN CASH
Send, {ENTER 2}
Send, PDW
Send, {ENTER}
Send, {Esc 2}{ENTER 8}
}
return
; -------------------------------------------
!O::
IfWinActive, ahk_class ConsoleWindowClass
{
Sleep, 500
SetKeyDelay, 5
Send, BETALING NETTO CONTANT OP REKENING
Send, {ENTER}
Sleep, 100
Send, ING 320-0683206-08
Send, {ENTER 2}
Sleep, 100
Send, DO
Send, {ENTER}
Send, {Esc 2}{ENTER 8}
}
return
; -------------------------------------------
!B::
IfWinActive, ahk_class ConsoleWindowClass
{
Sleep, 500
SetKeyDelay, 5
Send, ONTVANGEN BC
Send, {ENTER 2}
Send, DO
Send, {ENTER}
Send, {Esc 2}{ENTER 8}
}
return
; -------------------------------------------
!K::
IfWinActive, ahk_class ConsoleWindowClass
{
Sleep, 500
SetKeyDelay, 5
Send, ONTVANGEN CASH
Send, {ENTER 2}
Send, DO
Send, {ENTER}
Send, {Esc 2}{ENTER 8}
}
return
; -------------------------------------------
#i::
IfWinActive, ahk_class ConsoleWindowClass
{
; Send, {ENTER}
Send, IMEI:
Send {Space}
}
return
; -------------------------------------------
#n::
IfWinActive ahk_class ConsoleWindowClass
{
Send, DIV
Send, {ENTER}
Send, GSM NOKIA
Send {Space}
KeyWait, ENTER, D
Send, 705110
Send, {ENTER}
}
return
; -------------------------------------------
#r::
IfWinActive ahk_class ConsoleWindowClass
{
Send, REC GSM
; Send, {ENTER 2}
; KeyWait, ENTER, D
; Send, 0.17
Send, {ENTER}
}
return
; -------------------------------------------
#s::
IfWinActive ahk_class ConsoleWindowClass
{
Send, DIV
Send, {ENTER}
Send, GSM SAMSUNG
Send {Space}
KeyWait, ENTER, D
Send, 705113
Send, {ENTER}
}
return
; -------------------------------------------
^µ::
IfWinActive, Microsoft Excel - Herstellingen 2007.xls
{
Send {Home}{LEFT}
Send ^c
Sleep, 500
ClipSaved := ClipboardAll
Sleep, 500
Send ^m
Sleep, 250
Send ^p
WinWaitActive, Afdrukken
Send {SHIFT Down}{TAB 3}{SHIFT Up}
Send, 1
Send {TAB}
Send, 1
Send {TAB 2}{UP}
WinWaitClose, Afdrukken
Sleep, 500
WinWaitActive, Afdrukken
WinWaitClose, Afdrukken
Sleep, 500
Send ^l
Sleep, 500
Send ^g
Sleep, 500
Send, A
Sleep, 500
Clipboard := ClipSaved
Send ^v
Send {Enter}
Send {Down 5}{WheelDown 2}
}
return
; -------------------------------------------
#µ::
IfWinActive, Microsoft Excel - Herstellingen 2007.xls
{
Gui, Add, Text, x15 y15 w100 h20 center, Hoeveel rijen?
Gui, Add, Edit, x15 y40 w100 h20 center vtel Number Limit2,
Gui, Add, UpDown, Range1-10, 2
Gui, Add, GroupBox, x6 y-3 w117 h102,
Gui, Add, Button, x40 y70 w50 h20 default, Ok
Gui, Show, h105 w128, Printen
Return
GuiClose:
GuiEscape:
Gui, Destroy
return
ButtonOk:
Gui, Submit
Loop, %tel%
{
Send {Home}{LEFT}
Send ^c
Sleep, 500
ClipSaved := ClipboardAll
Sleep, 500
Send ^m
Sleep, 250
Send ^p
WinWaitActive, Afdrukken
Send {SHIFT Down}{TAB 3}{SHIFT Up}
Send, 1
Send {TAB}
Send, 1
Sleep, 250
Send {ENTER}
WinWaitClose, Afdrukken
Sleep, 500
WinWaitActive, Afdrukken
WinWaitClose, Afdrukken
Sleep, 500
Send ^l
Sleep, 500
Send ^g
Sleep, 500
Send, A
Sleep, 500
Clipboard := ClipSaved
Send ^v
Send {Enter}
Sleep, 250
Send {Down 5}{WheelDown 2}
Sleep, 2000
}
return
}
return
; -------------------------------------------
#p::
IfWinActive, Microsoft Excel - Herstellingen 2007.xls
{
FormatTime, DateTime, , dd-MM-yy
Send, % DateTime
Send {Right}
Send, Peter
Send {Right}
}
return
; -------------------------------------------
#d::
IfWinActive, Microsoft Excel - Herstellingen 2007.xls
{
FormatTime, DateTime, , dd-MM-yy
Send, % DateTime
Send {Home}
}
return
; -------------------------------------------
^!r::Reload
Tnx