Results 1 to 4 of 4

Thread: AutoIT related, in regards to grabbing iGuidance window name

  1. #1
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    101

    AutoIT related, in regards to grabbing iGuidance window name

    Hi,

    I'm having a bit of a trouble where I'm trying to use my Logitech Nulooq navigator with Road Runner and iGuidance.

    Since iGuidance runs on top of RR, and this Logitech control is dependent on active window. If I was to control RR while iGuidance is active, it doesn't work.

    I've been trying to use AutoIT to automate a few things via mouse clicks, seems to work for the most part. But if it's not set to active window, the mose clicks on other window and it's screwing things up.

    I'm trying to find the active window for iGuidance but no luck. Maybe I'm not doing the right thing. Basically, I'm thinking of in the coding I should have the following check:

    to control iGuidance, first check if iGuidance is running, else exit. If iGuidance is running, then bring it in focus, then execute mouse clicks.

    Any help would be greatly appreciated.

  2. #2
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    101
    Hmm, I'm making a little progress, got stuck with this one though:

    $state = WinGetState("iGuidance","")

    If BitAnd($state, 0) Then
    Run("iGuidance.exe")
    EndIf

    If BitAnd($state, 1) Then
    WinSetState("iGuidnace","", @SW_MAXIMIZE)
    EndIf

    The first EndIf doesn't work as I guess the value of $state does not equal to 0?

    Thanks.

  3. #3
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    use this to test, to see if is running, adjust to your needs.

    Code:
    Opt("wintitlematchmode", 4)
    Opt("winsearchchildren", 1)
    
    
    
    if WinExists("classname=IntellinavWCls") Then
    	MsgBox(4096, "", "iGuidance Is Running")
    Else
    	$open=MsgBox(4, "", "i Guidance Is Not Running Would You Like To Open Now?")
    	if $open = 6 then 
    		run ("C:\Program Files\iNav\iGuidance\iGuidanceUMPC.exe", "C:\Program Files\iNav\iGuidance")
    	Else
    		exit
    	EndIf
    	EndIf

  4. #4
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    101
    Thank you so much, WinExists should be what I'm using. I'm making good progress.

Similar Threads

  1. Onscreen keyboard
    By gti in forum Map Monkey
    Replies: 40
    Last Post: 06-14-2008, 11:00 PM
  2. GPS window names
    By veetid in forum CF FAQs
    Replies: 70
    Last Post: 03-12-2008, 02:18 PM
  3. Launching iGuidance under Media Engine
    By StationRocket in forum GPS
    Replies: 4
    Last Post: 11-29-2004, 01:56 PM
  4. iGuidance splash/disclaimer window
    By UncleGeek in forum GPS
    Replies: 8
    Last Post: 09-20-2004, 11:12 PM
  5. Embedded iGuidance Window Size?
    By All4Sky in forum MediaCar
    Replies: 3
    Last Post: 08-27-2004, 09:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •