Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: MrColossal on Sat 24/05/2003 04:38:47

Title: cntrl z and ags script editing window
Post by: MrColossal on Sat 24/05/2003 04:38:47
just a little note, if you hit cntrl z as your first key stroke going into the script editor is erases everything

scared me first time i did it
Title: Re:cntrl z and ags script editing window
Post by: evilspacefart on Sat 24/05/2003 09:27:28
maybe it might have something to do with ctrl + z being the keyboard shortcut for "undo" but i'm just guessing.
Title: Re:cntrl z and ags script editing window
Post by: Scorpiorus on Sat 24/05/2003 11:00:28
Quotemaybe it might have something to do with ctrl + z being the keyboard shortcut for "undo" but i'm just guessing.
Yep, that is. Just when the script editor is opened having no text inside it save that state. Then AGS loads script file so when you pressing Ctrl-Z it processes the undo command and erases the whole script.

There are also some useful hotkeys:

Ctrl - A: select all
Ctrl - T: swap two lines
Ctrl - L: delete current line
Ctrl - J: return (enter key)
Ctrl - M (or Shift - Enter): return but to the 1st column
Ctrl - Backspace: delete the word before the cursor
Ctrl - Delete: delete the word after the cursor
Ctrl - +, /, - (gray): change font size
Ctrl - End: goto last line
Ctrl - Home: goto first line

there are also useful shortcuts like Ctrl - Right/Left/Up/Down, Alt - Right/Left, Shift - Right/Left/Up/Down/Home/End

-Cheers
Title: Re:cntrl z and ags script editing window
Post by: Pumaman on Sun 25/05/2003 16:57:47
Hehe yeah, Scorpiorus has got why this happens - a bit unnerving I agree, but I'm not sure if it's worth the time to fix.
Title: Re:cntrl z and ags script editing window
Post by: MrColossal on Mon 26/05/2003 06:22:09
ah but you did....

but you did...

check mate Christopher Jones......
Title: Re:cntrl z and ags script editing window
Post by: Pumaman on Mon 26/05/2003 16:18:06
Hehe, my apologies Sir Eric.
Title: Re: cntrl z and ags script editing window
Post by: notsleeping on Wed 23/01/2013 00:34:58
why isn't there an undo on things like GUI edits/ moves? lol or why isn't my ags ctrl-z not work in GUI layout/data fields :)
Title: Re: cntrl z and ags script editing window
Post by: Crimson Wizard on Wed 23/01/2013 07:44:05
.... aaaand the first prize for necromancy goes to notsleeping! :D

@Nonsleeping, you may add your suggestion regarding improving the editor in this subforum: http://www.adventuregamestudio.co.uk/forums/index.php?board=18.0

Also, there's an issue tracker for the same purpose: http://www.adventuregamestudio.co.uk/forums/index.php?project=5;area=issues

BTW I am supporting you on this issue. :)
Title: Re: cntrl z and ags script editing window
Post by: Radiant on Wed 23/01/2013 10:27:50
interesting, so this is where that control-t shortcut comes from! I still wonder whatever is the point of that, though.