Jump to content

Noob

Active Members
  • Posts

    103
  • Joined

  • Last visited

Everything posted by Noob

  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 :-)
  14. I don't think this can be done at all, but if anyone thinks this may be doable would you please point me to the functions I should look at. 1. Can AutoIt detect if a running (3rd party) program has an icon in system tray. I will only know the path to the programs .EXE (it will be various programs), and I'd like to be able to find out if the program has a tray icon. 2. How would I be able to send a click to the tray icon? I don't think either of the two tasks is doable. But if they are I think that could help me greatly. Any opinion will be very much appreciated. Thanks.
  15. Agree! And don't forget that books don't support Ctrl+C function, either!
  16. Notice the "Favorites" Tab in the Help file. When you find in the Help file something you will need in the future, just click the "Favorites" Tab, and then click the 'Add" button on the bottom.
  17. Thanks VERY much! I just tested it with a Label. That's exactly the behavior I've been searching for! Now only if I could make it look like a button. I'll try the Picture control you also suggested.
  18. I looked at Styles and Extended Styles, but this may not exist. I would like to have a button which would not steal focus when pressed, not even for a fraction of a second. Is this possible?
  19. Zedna, it works You've help me big! Thanks VERY much! EDIT: PsalyDS, thanks!
  20. In my ListView I only need one column. I'd like this column to be quite wide (340 pixels, or as close as I can get to 340px, if possible). However, I don't even know how to stretch it to a half of the width I need. This is from the Help: You can control initial column size by padding blanks to the column heading definition. The column can be extend during the GUICtrlCreateListViewItem according to item size. Size of a column will be up to around 25 characters. No resizing will be done during an update by GUICtrlSetData. The column doesn't seem to automatically extend when an item is added. I looked thru Styles and Extended Styles of GUICtrlCreateListView, but I found nothing of relevance. I must be looking in the wrong places. Could someone suggest what to do? Thanks much in advance.
  21. Thanks to both of you! For some reason I was searching for some other, more complex way of achieving it. I didn't know the increasing of the font size would automatically increase the hight of the "line". How silly of me!
  22. I'd like my ListView lines to be approximately 3 times their "normal" hight. Also I'd like the font inside the ListViewItems to be much larger. If the font is now # 9, I'd like it to be perhaps # 20. Is this possible? Is there an easy way (a noob can do)? Thanks in advance.
  23. Yes, I posted it here first, though. After one day of no reply I re-posted it to the "General" forum section (where you replied). The (correct) solution provided by you I don't think can be used in my case unfortunately because the tab control has to be the first control created in my GUI.
×
×
  • Create New...