WOW did that make my script short!!! and faster reaction!!
Well, I have tested it on the bench… now for application…
Use at will… nothing more than servo positioning…
; GUI Generated using SmartGUI Creator 4.0
; WRITTEN BY CTRL+1
; 01 values are start position, 100 percent is 100 percent action
;
; IN config
; 100 is the full OUT position, and 01 is the IN position
;
; OUT config
; 100 is the full IN position, and 01 is the OUT position
; servo 0 unused
; servo 1 Left servos
; servo 2 Half Left servos
; servo 3 Motor
; servo 4 Half Right servos
; servo 5 Right servos
; servo 6 - 11 unused
;------------------------------vALUES
;Motor Stop 6000
;Motor 25 6500
;Motor 50 7000
;Motor 75 7500
;Motor Full 8000
Gui, Add, Edit, readonly x532 y160 w80 h20 vM100 , 8000
Gui, Add, Edit, readonly x532 y180 w80 h20 vM75 , 7500
Gui, Add, Edit, readonly x532 y200 w80 h20 vM50 , 7000
Gui, Add, Edit, readonly x532 y220 w80 h20 vM25 , 6500
Gui, Add, Edit, readonly x532 y240 w80 h20 vM01 , 6000
;Left half IN 8000
;Left half i25 7500
;Left half i50 7000
;Left half i75 6500
;Left half pos 6000
;Left half o75 5500
;Left half o50 5000
;Left half o25 4500
;Left half OUT 4000
Gui, Add, Edit, readonly x462 y280 w70 h20 vLH100 , 6000
Gui, Add, Edit, readonly x462 y300 w70 h20 vLH75 , 6500
Gui, Add, Edit, readonly x462 y320 w70 h20 vLH50 , 7000
Gui, Add, Edit, readonly x462 y340 w70 h20 vLH25 , 7500
Gui, Add, Edit, readonly x462 y360 w70 h20 vLH01 , 8000
;Right half IN 4000
;Right half i25 4500
;Right half i50 5000
;Right half i75 5500
;Right half pos 6000
;Right half o75 6500
;Right half o50 7000
;Right half o25 7500
;Right half OUT 8000
Gui, Add, Edit, readonly x612 y280 w70 h20 vRH100 , 6000
Gui, Add, Edit, readonly x612 y300 w70 h20 vRH75 , 5500
Gui, Add, Edit, readonly x612 y320 w70 h20 vRH50 , 5000
Gui, Add, Edit, readonly x612 y340 w70 h20 vRH25 , 4500
Gui, Add, Edit, readonly x612 y360 w70 h20 vRH01 , 4000
;Left in 8000
;Left 25 7000
;Left 50 6000
;Left 75 5000
;Left out 4000
Gui, Add, Edit, readonly x462 y160 w70 h20 vLP100 , 4000
Gui, Add, Edit, readonly x462 y180 w70 h20 vLP75 , 5000
Gui, Add, Edit, readonly x462 y200 w70 h20 vLP50 , 6000
Gui, Add, Edit, readonly x462 y220 w70 h20 vLP25 , 7000
Gui, Add, Edit, readonly x462 y240 w70 h20 vLP01 , 8000
;Right in 4000
;Right 25 5000
;Right 50 6000
;Right 75 7000
;Right out 8000
Gui, Add, Edit, readonly x612 y160 w70 h20 vRP100 , 8000
Gui, Add, Edit, readonly x612 y180 w70 h20 vRP75 , 7000
Gui, Add, Edit, readonly x612 y200 w70 h20 vRP50 , 6000
Gui, Add, Edit, readonly x612 y220 w70 h20 vRP25 , 5000
Gui, Add, Edit, readonly x612 y240 w70 h20 vRP01 , 4000
;------------------------------BUTTONS
Gui, Add, Button, x2 y0 w120 h100 , L100
Gui, Add, Button, x2 y100 w120 h100 , L75
Gui, Add, Button, x2 y200 w120 h100 , L50
Gui, Add, Button, x2 y300 w120 h100 , L25
Gui, Add, Button, x2 y400 w120 h100 , L00
Gui, Add, Button, x152 y0 w120 h100 , F100
Gui, Add, Button, x152 y100 w120 h100 , F75
Gui, Add, Button, x152 y200 w120 h100 , F50
Gui, Add, Button, x152 y300 w120 h100 , F25
Gui, Add, Button, x302 y0 w120 h100 , R100
Gui, Add, Button, x302 y100 w120 h100 , R75
Gui, Add, Button, x302 y200 w120 h100 , R50
Gui, Add, Button, x302 y300 w120 h100 , R25
Gui, Add, Button, x302 y400 w120 h100 , R00
Gui, Add, Button, x722 y0 w120 h100 , M100
Gui, Add, Button, x722 y100 w120 h100 , M75
Gui, Add, Button, x722 y200 w120 h100 , M50
Gui, Add, Button, x722 y300 w120 h100 , M25
Gui, Add, Button, x722 y400 w120 h100 , M00
Gui, Add, Button, x462 y0 w220 h140 , CENTER
Gui, Add, Button, x462 y390 w220 h130 , PARK
Gui, Add, Button, x892 y390 w60 h60 , Windows
Gui, Add, Button, x872 y0 w60 h60 , FAST
Gui, Add, Button, x872 y60 w60 h60 , DEFAULT
Gui, Add, Button, x872 y120 w60 h60 , SLOW
Gui, Add, Button, x872 y180 w60 h60 , SLOWEST
;------------------------------TEXT
Gui, Add, Text, x462 y140 w70 h20 +Center, L Pushers
Gui, Add, Text, x462 y260 w70 h20 +Center, L Halfs
Gui, Add, Text, x532 y140 w90 h20 +Center, Motors
Gui, Add, Text, x622 y140 w60 h20 +Center, R Pushers
Gui, Add, Text, x532 y260 w80 h20 +Center, Speed
Gui, Add, Text, x612 y260 w70 h20 +Center, R Halfs
Gui, Show, x399 y131 h534 w950, Rali Control
Return
;------------------------------Speeds
buttonFAST:
Gui, Submit
RunWait usccmd --speed 1`,0,,Hide
RunWait usccmd --speed 2`,0,,Hide
RunWait usccmd --speed 3`,4,,Hide
RunWait usccmd --speed 4`,0,,Hide
Run usccmd --speed 5`,0,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonDEFAULT:
Gui, Submit
RunWait usccmd --speed 1`,4,,Hide
RunWait usccmd --speed 2`,4,,Hide
RunWait usccmd --speed 3`,4,,Hide
RunWait usccmd --speed 4`,4,,Hide
Run usccmd --speed 5`,4,,Hide
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonSLOW:
Gui, Submit
RunWait usccmd --speed 1`,2,,Hide
RunWait usccmd --speed 2`,2,,Hide
RunWait usccmd --speed 3`,4,,Hide
RunWait usccmd --speed 4`,2,,Hide
Run usccmd --speed 5`,2,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonSLOWEST:
Gui, Submit
RunWait usccmd --speed 1`,1,,Hide
RunWait usccmd --speed 2`,1,,Hide
RunWait usccmd --speed 3`,4,,Hide
RunWait usccmd --speed 4`,1,,Hide
Run usccmd --speed 5`,1,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
;------------------------------movements
; 1 Left, 2 Half Left, 4 Half Right, 5 Right
;------------------LEFTS
buttonL00:
Gui, Submit
RunWait usccmd --servo 1`,%LP01%,,Hide
Run usccmd --servo 2`,%LH01%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonL25:
Gui, Submit
RunWait usccmd --servo 1`,%LP25%,,Hide
Run usccmd --servo 2`,%LH25%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonL50:
Gui, Submit
RunWait usccmd --servo 1`,%LP50%,,Hide
Run usccmd --servo 2`,%LH50%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonL75:
Gui, Submit
RunWait usccmd --servo 1`,%LP75%,,Hide
Run usccmd --servo 2`,%LH75%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonL100:
Gui, Submit
RunWait usccmd --servo 1`,%LP100%,,Hide
Run usccmd --servo 2`,%LPH00%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
sleep 500
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
; 1 Left, 2 Half Left, 4 Half Right, 5 Right
;------------------RIGHTS
buttonR00:
Gui, Submit
RunWait usccmd --servo 5`,%RP01%,,Hide
Run usccmd --servo 4`,%RH01%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonR25:
Gui, Submit
RunWait usccmd --servo 5`,%RP25%,,Hide
Run usccmd --servo 4`,%RH25%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonR50:
Gui, Submit
RunWait usccmd --servo 5`,%RP50%,,Hide
Run usccmd --servo 4`,%RH50%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonR75:
Gui, Submit
RunWait usccmd --servo 5`,%RP75%,,Hide
Run usccmd --servo 4`,%RH75%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonR100:
Gui, Submit
RunWait usccmd --servo 5`,%RP100%,,Hide
Run usccmd --servo 4`,%RH100%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
sleep 500
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
; 1 Left, 2 Half Left, 4 Half Right, 5 Right
;------------------forwards
buttonF25:
Gui, Submit
RunWait usccmd --servo 1`,%LP25%,,Hide
RunWait usccmd --servo 5`,%RP25%,,Hide
RunWait usccmd --servo 2`,%LH25%,,Hide
Run usccmd --servo 4`,%RH25%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonF50:
Gui, Submit
RunWait usccmd --servo 1`,%LP50%,,Hide
RunWait usccmd --servo 5`,%RP50%,,Hide
RunWait usccmd --servo 2`,%LH50%,,Hide
Run usccmd --servo 4`,%RH50%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonF75:
Gui, Submit
RunWait usccmd --servo 1`,%LP75%,,Hide
RunWait usccmd --servo 5`,%RP75%,,Hide
RunWait usccmd --servo 2`,%LH75%,,Hide
Run usccmd --servo 4`,%RH75%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonF100:
Gui, Submit
RunWait usccmd --servo 1`,%LP100%,,Hide
RunWait usccmd --servo 5`,%RP100%,,Hide
RunWait usccmd --servo 2`,%LH100%,,Hide
Run usccmd --servo 4`,%RH100%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
sleep 500
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
;------------------------------CENTER
buttonCENTER:
Gui, Submit
RunWait usccmd --servo 1`,%LP01%,,Hide
RunWait usccmd --servo 5`,%RP01%,,Hide
RunWait usccmd --servo 2`,%LH01%,,Hide
Run usccmd --servo 4`,%RH01%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
sleep 500
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
;------------------------------PARK
buttonPARK:
Gui, Submit
RunWait usccmd --speed 3`,0,,Hide
RunWait usccmd --servo 3`,%M01%,,Hide
RunWait usccmd --servo 1`,%LP01%,,Hide
RunWait usccmd --servo 5`,%RP01%,,Hide
RunWait usccmd --servo 2`,%LH01%,,Hide
RunWait usccmd --servo 4`,%RH01%,,Hide
sleep 1000
Run usccmd --speed 3`,4,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
sleep 500
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
sleep 500
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
;------------------------------Motor Speeds
buttonM00:
Gui, Submit
RunWait usccmd --servo 3`,%M01%,,Hide
sleep 500
Run usccmd --servo 3`,%M01%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
sleep 500
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonM25:
Gui, Submit
RunWait usccmd --servo 3`,%M25%,,Hide
sleep 500
Run usccmd --servo 3`,%M25%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonM50:
Gui, Submit
RunWait usccmd --servo 3`,%M50%,,Hide
sleep 500
Run usccmd --servo 3`,%M50%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonM75:
Gui, Submit
RunWait usccmd --servo 3`,%M75%,,Hide
sleep 500
Run usccmd --servo 3`,%M75%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonM100:
Gui, Submit
RunWait usccmd --servo 3`,%M100%,,Hide
sleep 500
Run usccmd --servo 3`,%M100%,,Hide
Gui, Show,, Rali Control
SoundBeep, 750, 500 ; Play a higher pitch for half a second.
return
buttonWindows:
send {LWin}
return
GuiClose:
ExitApp
Thanks again Ryan!!