jor123 Posted July 17, 2017 Posted July 17, 2017 Hello people. I have a code in AHK and wanted the same code to work on AU3. The code is simple and to help here in the transport company to know which city to order. Someone could convert this code to me because I have little knowledge in AU3, already thank you for the help. The code in AHK is as follows: #NoTrayIcon Gui , + ToolWindow #Persistent OnClipboardChange: city := Clipboard if RegExMatch(city, "i)^[0-9-A-Z]{12}$") { region := SubStr(city, 1, 1) if (region = "1") { Clipboard := "south" } else if (region = "2") { Clipboard := "north" } else if (region = "3") { Clipboard := "east" } else if (region = "4") { Clipboard := "west" } } if RegExMatch(city, "i)^[0-9-A-Z]{16}$") { region := SubStr(city, 1, 1) if (region = "T") { Clipboard := "Mexico" } else if (region = "K") { Clipboard := "Uruguay" } } return
jor123 Posted July 17, 2017 Author Posted July 17, 2017 Hello people. I have a code in AHK and wanted the same code to work on AU3. The code is simple and to help here in the transport company to know which city to order. Someone could convert this code to me because I have little knowledge in AU3, already thank you for the help. The code in AHK is as follows: #NoTrayIcon Gui , + ToolWindow #Persistent OnClipboardChange: city := Clipboard if RegExMatch(city, "i)^[0-9-A-Z]{12}$") { region := SubStr(city, 1, 1) if (region = "1") { Clipboard := "south" } else if (region = "2") { Clipboard := "north" } else if (region = "3") { Clipboard := "east" } else if (region = "4") { Clipboard := "west" } } if RegExMatch(city, "i)^[0-9-A-Z]{16}$") { region := SubStr(city, 1, 1) if (region = "T") { Clipboard := "Mexico" } else if (region = "K") { Clipboard := "Uruguay" } } return
MattHiggs Posted July 17, 2017 Posted July 17, 2017 Ok, so in order for anyone to help you, you will need to clearly explain what you want the code to do. What you have posted by itself makes no sense. What are you specifically trying to have the application do, lets start there.
MattHiggs Posted July 17, 2017 Posted July 17, 2017 (edited) This is a double post. Will a moderator please take appropriate action.... Exact same post in Developer general discussion. Edited July 17, 2017 by MattHiggs
Moderators JLogan3o13 Posted July 17, 2017 Moderators Posted July 17, 2017 (edited) @jor123 stick to one thread from now on. @MattHiggs that is why we have a report button, so you can let us know these things instead of waiting for us to stumble upon them. Edited July 17, 2017 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now