I have a rented program that I use for online Shop business. I have a problem at the packing station (where the packages are sent).
Information before: I tried Autokey Spy and the SAME ahk_class and ahk_exe are ALWAYS displayed (no matter in which window I am in this program and what I do). the code never changes.
no my Problem:
At the packing station my worker scan the barcode from the order.
A Member of this forum created me an autohotkey that automatically enters a word after 3 seconds after a barcode scan. "{#}AllesVerpacken{#}{Enter}"
After this the label with the adress from the client will be printet
This works in 95 % very very good
In a few cases( when we have shipping to an other country) a message box appears after 1 second (with the same ahk as everything). This information field says: "Ausland - WIEGEN"
because HERE we have to weight the parcel AFTER this the label with the adress from the client will be printet
BUT HERE the hotkey "{#}AllesVerpacken{#}{Enter}" makes problems for me. Because here it has to stop. And it will print the label without a right weight. Or a new window will get open with a button to push.
NOW I need ideas: what can I do?
1. Deactivate hotkey now?
or
2. Open an extra field where, for example, a button is pressed to confirm this manually (in the meantime the 3 seconds from the 1st hotkey have also run through and nothing has happened.
Then I need the hotkey like always.
I have no idea in which direction I should program something. What is even possible.
I hope you can somehow understand this.
THANK YOU Fiona
Here ist he hotkey a member maked for me
Code: Select all
#Requires AutoHotkey v2.0
#SingleInstance
MaxMilliseconds := 150
code_Entered := 0
:*CB0:UP:: {
global
code_Entered := 1
SetTimer () => code_Entered := 0, -MaxMilliseconds
return
}
; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ; ------------------------- ;
#HotIf (code_Entered)
~Enter:: {
global
Sleep(3000)
Send("Hello{Enter}")
return
}
[Mod edit: Moved the Codebox tags to be around the code. Please learn to correctly apply [code][/code] tags when posting code!]