Jump to content
Sign in to follow this  
Bert

F5 key in Internet explorer

Recommended Posts

Bert

I'm having a small problem, and I can't quite figure it out. I run a application in Internet explorer called Service Desk. (This code works great, if I use the F4 key.) If I use F5, it will open the search window in IE. If I change it to use F4, the F5 key will refresh the entire screen. Since F5 is usually used to refresh things, I wanted to use F5 to refresh my list in the app. Is this concidered a bug?

here is my code:

dim $key5
$key5 = HotKeySet ("{F5}", "key5");Refresh ticket or refresh list in main window

   Func key5();refresh list or screen
      If WinExists ("Microsoft Internet Explorer", "[239] Sorry, your session has timed out.")Then
         WinActivate ("Microsoft Internet Explorer", "[239] Sorry, your session has timed out.")
      else
         if WinActive("Request Detail - Unicenter ServicePlus Service Desk", "")== 1 then
         BlockInput (1)
         send ("^v")
         send ("^f")
         BlockInput (0)
         endif
         if WinActive("Incident Detail - Unicenter ServicePlus Service Desk", "")== 1 then
         BlockInput (1)
         send ("^v")
         send ("^f")
         BlockInput (0)
         endif
         if WinActive("Problem Detail - Unicenter ServicePlus Service Desk", "")== 1 then
         BlockInput (1)
         send ("^v")
         send ("^f")
         BlockInput (0)
         endif
         if WinActive("Unicenter ServicePlus Service Desk - Request List" , "http://usdp/CAisd/pdmweb.exe")== 1 then
         BlockInput (1)
         send ("^v")
         send ("^e")
         BlockInput (0)
         endif
         if WinActive("Unicenter ServicePlus Service Desk - Incident List" , "http://usdp/CAisd/pdmweb.exe")== 1 then
         BlockInput (1)
         send ("^v")
         send ("^e")
         BlockInput (0)
         endif
         if WinActive("Unicenter ServicePlus Service Desk - Problem List" , "http://usdp/CAisd/pdmweb.exe")== 1 then
         BlockInput (1)
         send ("^v")
         send ("^e")
         BlockInput (0)
         endif
      endif
   EndFunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.