Advertisement
Guest User

v2 install first script

a guest
Aug 27th, 2021
1,011
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. ;AHKv2
  2. f1::
  3. {
  4. vartest := "Hello World"
  5. msgbox vartest
  6. result := MsgBox("Another " vartest " I guess") ;make sure on spacing
  7. }
  8.  
  9. f2::
  10. {
  11. send "hello world"
  12. send "{Tab 5}"
  13. Click "Right"
  14. }
  15.  
  16. f3::
  17. {
  18. startover:
  19. age := InputBox("What is your age?", "Age", "w100 h100") ;hw order
  20. if age.Result = "Cancel"
  21. {
  22. MsgBox "Nah Son you need to tell me your age"
  23. goto startover
  24. }
  25. else
  26. {
  27. MsgBox "You entered '" age.Value "'."
  28. }
  29. }
  30.  
  31. f4::
  32. {
  33. msgbox "closing script"
  34. Exitapp
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement