Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6.  
  7. if WinExist("AION")
  8. {
  9. WinActivate
  10. }
  11. ,Else
  12. {
  13. MsgBox, "Aion Client doesn't exist"
  14. ExitApp
  15. }
  16.  
  17.  
  18. Run, C:\Capture2Text\Capture2Text_CLI.exe --screen-rect "805 191 920 221" --clipboard ,,Hide
  19. price := Regexreplace(Clipboard, "i)^L", "1")
  20. price := Regexreplace(price, "[^0-9]", "")
  21.  
  22. No :=1
  23. While(No){
  24. InputBox, Input, Enter price limit,Input 500000-> Buying at 499999 or lower,,,,,,,,350000
  25. if ErrorLevel{
  26.     MsgBox, CANCEL was pressed.
  27.     No := 1
  28.     }
  29. else{
  30.     MsgBox, You entered %Input%
  31.     No := 0
  32.     }
  33.     }
  34.    
  35.    
  36. Error :=1
  37. While(Error){
  38.  
  39.  
  40. Run, C:\Capture2Text\Capture2Text_CLI.exe --screen-rect "805 191 920 221" --clipboard ,,Hide
  41. price := Regexreplace(Clipboard, "i)^L", "1")
  42. price := Regexreplace(price, "[^0-9]", "")
  43.  
  44.  
  45. MsgBox, 4,, Does the price match? `n UnitPrice: %price% Kinah
  46. IfMsgBox Yes
  47. {
  48.     MsgBox Price does match. Refresh will start on LeftArrow.
  49.     Error:=0
  50. }
  51. else
  52. {
  53.     MsgBox Price doesn't match. Try again
  54. }
  55. }
  56.    
  57. looping := false
  58.  
  59. Left::
  60. looping :=true
  61.  
  62.     while(looping = true)
  63.     {
  64. Run, C:\Capture2Text\Capture2Text_CLI.exe --screen-rect "805 191 920 221" --clipboard ,,Hide
  65. price := Regexreplace(Clipboard, "i)^L", "1")
  66. price := Regexreplace(price, "[^0-9]", "")
  67.  
  68. Tooltip %price% `n %Input%
  69.  
  70. Sleep, 300
  71.  
  72. if (price < Input && price > 0){
  73. Tooltip, "KAUFEN" `n %price% `n %Input%
  74. SoundBeep
  75. break
  76. }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement