Thread: beginner scripting do scripts
ok, when used windows liked incredibly autohotkey www.autohotkey.com
coding incredibly simple , powerful, had script in startup went this
1 read settings.txt , store in variable %state%
2 if %state% = 1
2.1 msgbox timeout=10s "aborting /n run=cancel"
2.2 if buttonpress=ok or buttonpress=timeout
2.2.1 exitapp
3 else
3.1 msgbox timeout=10s "running /n run=wait,ok"
3.2 if buttonpress=cancel
3.2.1 exitapp
4 loop files in folder of script
4.1 if filename<>scriptname , filename<>settings.txt
4.1.1 run file
5 exitapp
(note code in ahk not above, made easy understand coders)
if have project make, put shortcuts in script folder, notes, app use(or project , when runs uses app), editor project , stuff that
soo here worries, how create script in ubuntu? tried make files run in terminal or ask run in terminal , no matter extension gave them sit there , wait edited txt editor... found in of ubuntu folders file asked run, when want create script copy file, delete inside , copy in want run (also change name of script)
q1 how create script asks run in terminal?
q2 can create above? message boxes , other
variables?
ohh yeah, forgot in script save new state in settings.txt xd
soo if last time started computer worked, script start working apps, , if last time started computer did not work not start apps
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk beginner scripting do scripts
Ubuntu
Comments
Post a Comment