Jump to content

Noob

Active Members
  • Posts

    103
  • Joined

  • Last visited

Noob's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. zfisherdrums, thanks, that would normally work, but not in my specific case. My app also lets users select the path to their own (3rd party) OSK program and I wouldn't know the name of the window of that program. So at this point I'm giving up on this for the time being, and I decided to drop one feature from my application for Vista users. I may revisit this issue at some later date (if users ask for the missing feature).
  2. Thanks, but I don't want users to have to enter user name and posword each time the application wants to start OSK :-( This is a freeware used by many :-( It worked OK under XP, but now I'm trying to make it work under Vista - this is my last issue.
  3. In Windows XP the following worked just fine: run("osk.exe") However, in Windows Vista I receive the following AutoIt Error: Line 3 (File "C:\Users\Marvin\Desktop\osk.au3"): run("osk.exe") Error: Unable to execute the external program. The requested operation requires elevation. When I use ShellExecute("osk.exe") instead of Run("osk.exe"), the application (Windows On Screen Keyboard) starts, but I also need the PID, that's why I need the Run() function. Any help would be grately appreciated.
  4. Would GuiSetState(@SW_HIDE, ... do it for you?
  5. Remove the checkmark in front of "Always ask before opening this file"
  6. http://www.autoitscript.com/autoit3/files/beta/autoit/ contains only some quite old Beta, but I see people in the Bug Report forum section referring to 3.2.5.0. Where can I download it?
  7. I tried your code and I it really doesn't work properly. I don't know why, but since I also need the SetParent function, so I've played with it a little bit. The following code seems to work, but I do not think if this is the correct way to do it. I only added the line WinActivate($Form1) after the DLLCall. #include <GUIConstants.au3> Run("notepad.exe") WinWait("Untitled - Notepad") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 691, 515, 193, 123) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### DLLCall("user32.dll", "str", "SetParent", "hwnd", WinGetHandle("Untitled - Notepad"), "hwnd", WinGetHandle("AForm1")) WinActivate($Form1) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
  8. Thanks much for trying to help, but looking at your code I realized I should have been clearer about the fact that the voice direction prompts are coming from the 3rd party GPS navigation software (not from my application). So I need to detect when Text-To-Speech is "talking".
  9. This may not be possible, or it may just be way too complicated for an amateur like me. I looked at the sound-related functions in the Help file. As far as I understand them they can be used (only) in relation to actual sound files. My problem is I have a need to detect if the sound being played by the computer is generated by the text-to-speech function of Windows. A little bit of background: This is related to my freeware application which controls a third-party GPS navigation program. A user requested a feature which would mute his music (CD, MP3, etc) for the duration of the voice direction prompts given by the GPS navigation program (e.g. "Turn right in 1 mile"). Perhaps I could figure out how to mute the music, but I have no idea how to detect when the Windows Text-To-Speech engine (e.g. Microsoft Anna) is talking. Any feedback/help/suggestions will be greatly appreciated.
  10. This is a noob trying to help another noob, so it may not necessarily be the best solution, but you may give it a try While 1 If WinActive("FreedomLINK : doug") Then WinClose("FreedomLINK : doug") If WinActive("Logoff Warning") Then Send("{SPACE}") Sleep(100) Wend
  11. Thanks much. I should have done this long ago, but since this occurs infrequently I never bothered :-) I'm assuming it's okay to implement it in my function in the following way: Opt('RunErrorsFatal', 0) ShellExecute("http://www..............") Opt('RunErrorsFatal', 1)
  12. I experience the same problem. ShellExecute("http://www..............") ShellExecute() does it's job of opening my webpage, but occasionally I also receive "File cannot be found....." error (while the page opens just fine). I would just need to know how to set @error properly so I never receive the error message :-)
  13. Thanks evilertoaster and Zedna. A couple of the UDF's seem like they could do the trick :-)
×
×
  • Create New...