Jump to content

Recommended Posts

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...