12 posts in this topic
2 writes and how returning?
$var1 = "1.variable" $var2 = "2.variable" $var3 = "3.variable" For $i = 1 To 3 Step 1 MsgBox(0,"test Message header",$var1) Next For $i = 1 To 3 Step 1 MsgBox(0,"test Message header",$var2) Next If ($var2 = 2) Then Return $var1 For $i = 1 To 3 Step 1 MsgBox(0,"test Message header",$var3) Next
For a model railway project only. Using multiple rfid readers. These readers have no PID or VID or serial numbers.
Only difference is the hub/port number allocated.
Using Win7 32 bit.
The only information I need to obtain from the HID devices is:
last string transmitted. (14 character string of the rfid tag number)
timestamp of the latest reading.
The tag data will be moved to excel immediately after received by usb ready for the next read. Timestamp and data would be overwritten by next set of data.
the GUI would have single line for each reader (by hub/port #) with 3 headings. Timestamp, 14 character data, and hub/port # .
Is it possible for Autoitscript to have a GUI to do this ?
$Combo1 = GUICtrlCreateCombo("", 72, 96, 113, 25) GUICtrlSetData(-1, "Test1|Test2") $1 = GUICtrlRead($combo1)
So if someone selected Test 1 on the GUI, what value is $1? How about if they selected Test 2?
#Region ### START Koda GUI section ### Form=c:\users\paulo\documents\gui.kxf Global $Form1_1 = GUICreate("Test", 499, 196, -1127, 323) Global $Amount = GUICtrlCreateLabel("Amount", 176, 80, 40, 17) Global $AmountInput = GUICtrlCreateInput("", 224, 80, 57, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $x = This one is just a test, but I want the value of $x to be whatever numbers the user types in.
I am having issues with Windows SmartScreen blocking my compiled scripts. They run fine on my computer, but when I move them over to a different one, either by USB or a file hosting site, they get blocked by Windows SmartScreen. I have tested it on a number of computers, and it happens on all of them. I have also done this with scripts that do and don't require Admin, and it always happens.
Is that related to this? I was thinking it might be, but I am not so sure since the only antivirus I have is Windows Defender. I wouldn't mind this happening since I realize you can click More info and then click run anyway, but I am planning on distributing my program, and normal users probably wouldn't know this. I don't really want to have to deal with all the users complaining that my program has viruses.