Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- Gui +LastFound +AlwaysOnTop +ToolWindow -Theme -Border
- test:="C:\Users\benne\Documents\scripts\config.ini"
- Gui, Margin, 5, 5 ; must have margin to be moveable
- Gui,Add,Button,w100 h20 x200 y1 gknapp1 vknapp1,Ladda
- Gui,Add,Button,w100 h20 x200 y20 gknapp2 vknapp2,Spara
- Gui,Add,Button,w100 h20 x400 y2 gknapp3 vknapp3,stäng
- Gui,Add,Edit,w200 h30 x10 y10 vedit ,enter hotkey
- Gui,Add,Edit,w200 h60 x10 y10 vedit2 ,enter hotkey
- #Include ListSections.ahk
- var6:=% sections "`n" ;
- msgbox ,"var6=".%var6%
- msgbox, % sections "`n" ;
- gui,show, w500 h500
- OnMessage(0x201, "WM_LBUTTONDOWN")
- filepath:="C:\Users\benne\Documents\scripts\config.ini"
- var5:="z"
- Hotkey,%var5%, MyLabel
- return
- MyLabel:
- MsgBox You pressed %A_ThisHotkey%.
- return
- WM_LBUTTONDOWN() {
- PostMessage, 0xA1, 2
- }
- write(topic,vname,output,filepath)
- {
- IniWrite,%output%,%filepath%,%topic%,%vname%
- return
- }
- read(topic,vname,output,filepath)
- {
- IniRead,%output%,%filepath%,%topic%,%vname%
- }
- knapp3:
- ExitApp
- Exit
- return
- r::
- IniRead,output,C:\Users\benne\Documents\scripts\config.ini,slot1,test
- return
- knapp1:
- gui,Submit,nohide
- GuiControl,,edit,% output
- return
- knapp2:
- gui,submit,nohide
- IniWrite,%edit%,C:\Users\benne\Documents\scripts\config.ini,slot3,test2
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement