返回列表 回复 发帖

Au3简单CS菜单


  1. #NoTrayIcon
  2. If FileExists(@ScriptDir&"\bxwl.ini") = 0 Then
  3. MsgBox(4096,"提示","配置文件不存在,程序即将退出.请联系管理员!")
  4. Exit
  5. EndIf
  6. dim $1,$2,$3,$4,$5,$6,$7,$8,$9,$11,$12,$13,$14
  7. $1 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","程序名字","")
  8. $2 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","图片","")
  9. $3 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称1","")
  10. $4 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称2","")
  11. $5 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称3","")
  12. $6 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称4","")
  13. $7 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称5","")
  14. $8 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称6","")
  15. $9 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称7","")
  16. $10 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称8","")
  17. $11 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称9","")
  18. $12 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称10","")
  19. $13 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称11","")
  20. $14 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","游戏名称12","")
  21. dim $15,$16,$17,$18,$19,$20,$21,$22,$23,$24,$25,$26,$27
  22. $15 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件1","")
  23. $16 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件2","")
  24. $17 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件3","")
  25. $18 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件4","")
  26. $19 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件5","")
  27. $20 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件6","")
  28. $21 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件7","")
  29. $22 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件8","")
  30. $23 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件9","")
  31. $24 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件10","")
  32. $25 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件11","")
  33. $26 = IniRead(@ScriptDir &"\bxwl.ini","冰心痴","执行文件12","")
  34. #include <GUIConstants.au3>
  35. $Form1_1 = GUICreate($1, 633, 579, 193, 115, -1, $WS_EX_ACCEPTFILES)
  36. $Pic1 = GUICtrlCreatePic($2, 40, 32, 545, 257, BitOR($SS_NOTIFY,$WS_GROUP))
  37. $Button2 = GUICtrlCreateButton($3, 40, 336, 107, 41, 0)
  38. $Button3 = GUICtrlCreateButton($4, 176, 336, 107, 41, 0)
  39. $Button4 = GUICtrlCreateButton($5, 320, 336, 107, 41, 0)
  40. $Button5 = GUICtrlCreateButton($6, 456, 336, 107, 41, 0)
  41. $Button6 = GUICtrlCreateButton($7, 40, 402, 107, 41, 0)
  42. $Button7 = GUICtrlCreateButton($8, 178, 401, 107, 41, 0)
  43. $Button8 = GUICtrlCreateButton($9, 319, 399, 107, 41, 0)
  44. $Button9 = GUICtrlCreateButton($10, 460, 403, 107, 41, 0)
  45. $Button10 = GUICtrlCreateButton($11, 41, 477, 107, 41, 0)
  46. $Button11 = GUICtrlCreateButton($12, 180, 474, 107, 41, 0)
  47. $Button12 = GUICtrlCreateButton($13, 323, 475, 107, 41, 0)
  48. $Button13 = GUICtrlCreateButton($14, 460, 472, 107, 41, 0)
  49. GUISetState(@SW_SHOW)
  50. #EndRegion ### END Koda GUI section ###
  51. While 1
  52. $nMsg = GUIGetMsg()
  53. Select
  54.   Case $nMsg = $GUI_EVENT_CLOSE
  55.    Exit
  56.   Case $nMsg = $Button2
  57.    run($15)
  58.   Case $nMsg = $Button3
  59.    run($16)
  60.   Case $nMsg = $Button4
  61.    run($17)
  62.   Case $nMsg = $Button5
  63.    run($18)
  64.   Case $nMsg = $Button6
  65.    run($19)
  66.   Case $nMsg = $Button7
  67.    run($20)
  68.   Case $nMsg = $Button8
  69.    run($21)
  70.   Case $nMsg = $Button9
  71.    run($22)
  72.   Case $nMsg = $Button10
  73.    run($23)
  74.   Case $nMsg = $Button11
  75.    run($24)
  76.   Case $nMsg = $Button12
  77.    run($25)
  78.   Case $nMsg = $Button13
  79.    run($26)
  80. EndSelect
  81. WEnd
复制代码
By冰心痴
感谢Baidu,Google,Dreams8给我这次机会!
还要感谢我的爸爸妈妈!
HOHO
返回列表