Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;First Script
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- #SingleInstance,Force
- SendMode,input
- 1:=1
- Gui,+AlwaysOnTop
- Gui,Add,Button,x10 y10 w180 h30 gAdd_1,Add 1 to other script
- Gui,Add,Button,x10 y50 w180 h30 gSub_1,Subtract 1 from other script
- Gui,Add,Button,x10 y90 w180 h30 gAdd_5,Add 5 to other script
- Gui,Add,Button,x10 y130 w180 h30 gSub_5,Subtract 5 from other script
- Gui,Show,x200 w200 h170
- return
- GuiClose:
- ExitApp
- Add_1:
- SendLevel,1
- Send,2AI{Space}
- return
- Add_5:
- SendLevel,1
- Send,5AI{Space}
- return
- Sub_1:
- SendLevel,1
- Send,1AI{Space}
- return
- Sub_5:
- SendLevel,1
- Send,6AI{Space}
- return
- ;~ numpad1::
- ;~ i++
- ;~ Tooltip,% i
- ;~ objShell := ComObjCreate("WScript.Shell")
- ;~ objEnv := objShell.Environment("Volatile")
- ;~ objEnv.Item("Test") := i ;stores text in "volitile" variable that can be accessed from other scripts
- ;~ return
- esc::ExitApp
- ; Second Script
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- #SingleInstance,Force
- Var:= 0
- SendMode,input
- Gui,+AlwaysOnTop
- Gui,Add,Edit,x10 y10 w180 h20 center vedit1 ,%Var%
- Gui,Show,x500 w200 h170
- ;SetTimer,Window_Something,3000
- return
- GuiClose:
- ExitApp
- ;~ Window_Something:
- ;~ objShell := ComObjCreate("WScript.Shell")
- ;~ objEnv := objShell.Environment("Volatile")
- ;~ GuiControl,,Edit1,% objEnv.Item("Test")
- ;~ return
- ::2AI::
- Var++
- GuiControl,,Edit1,%Var%
- return
- ::5AI::
- Var+=5
- GuiControl,,Edit1,%Var%
- return
- ::1AI::
- Var--
- GuiControl,,Edit1,%Var%
- return
- ::6AI::
- Var-=5
- GuiControl,,Edit1,%Var%
- return
- esc::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement