Code: Select all
IniRead,keyVID,C:\Users\Anfly\Desktop\checkingthis.ini, Keyboard, vid
IniRead,keyPID,C:\Users\Anfly\Desktop\checkingthis.ini, Keyboard, pid
Gui Add, Button, gUpdate x8 y56 w94 h23, Update
Gui Add, Edit, vVID_var x248 y312 w53 h21, %keyVID%
Gui Add, Edit, vPID_var x328 y312 w53 h21, %keyPID%
Gui Show, w730 h368, checker
return
Update:
Gui, Submit, Nohide
GuiControlGet,CurrentVID,1:,VID_var
GuiControlGet,CurrentPID,1:,PID_var
VID := 0x03F0
if VID = CurrentVID
tooltip, the same
else
tooltip, not the same
Return