You say hopefully when mentioning something that you hope will happen. Some careful speakers of English think that this use of hopefully is not correct, but it is very frequently used.
双语例句
例: Hopefully, you won't have any problems after reading this.
但愿你读完这个后就不会有什么问题了。