 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
mikolajek
Joined: 02 May 2008 Posts: 7 Location: Warsaw, POLAND
|
Posted: Fri May 02, 2008 8:38 am Post subject: No action for script if CANCEL / ESC pressed? |
|
|
Hello,
I am a complete newbie to AHK but trying hard to get some results
Can you help me with my first "bigger" script? It is meant to perform Google search using Firefox Portable.
I've managed to get the wanted action to perform (e.g. search) but I would also like this script to do nothing if I press Cancel or Escape - i.e. when I press my shortcut by mistake. Somehow I cannot do that...
Can you please look at the script and correct me?
| Code: | #g::
InputBox,UserInput,Wyszukiwanie w Google,Wpisz poszukiwaną frazę,T,300,120
if ErrorLevel 1
Run X:\Firefox\FirefoxPortable.exe http://www.google.pl/search?hl=pl&q=%UserInput%
else
GuiClose:
ExitApp |
|
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Fri May 02, 2008 8:56 am Post subject: |
|
|
| Code: | #g::
InputBox,UserInput,Wyszukiwanie w Google,Wpisz poszukiwaną frazę,T,300,120
if ErrorLevel = 0
Run X:\Firefox\FirefoxPortable.exe http://www.google.pl/search?hl=pl&q=%UserInput%
return |
|
|
| Back to top |
|
 |
mikolajek
Joined: 02 May 2008 Posts: 7 Location: Warsaw, POLAND
|
Posted: Fri May 02, 2008 9:00 am Post subject: |
|
|
Too simple to believe...
Thanks a lot! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|