
Noob
Active Members-
Posts
103 -
Joined
-
Last visited
Everything posted by Noob
-
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).
-
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.
-
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.
-
Would GuiSetState(@SW_HIDE, ... do it for you?
-
start on boot, no confirmation windows
Noob replied to cmattb's topic in AutoIt General Help and Support
Remove the checkmark in front of "Always ask before opening this file" -
Thanks!
-
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?
-
SetParent: Not repainting the window properly
Noob replied to NELyon's topic in AutoIt General Help and Support
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 -
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.
-
Script works first time, doesnt afterwards.
Noob replied to schnarkle's topic in AutoIt General Help and Support
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 -
ShellExecute error and work anyway...
Noob replied to hdrolet's topic in AutoIt General Help and Support
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) -
ShellExecute error and work anyway...
Noob replied to hdrolet's topic in AutoIt General Help and Support
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 :-) -
I don't think this can be done, but can it?
Noob replied to Noob's topic in AutoIt General Help and Support
Thanks evilertoaster and Zedna. A couple of the UDF's seem like they could do the trick :-) -
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.
-
Share how u remember all those autoIT functions etc....
Noob replied to jimmyjmmy's topic in AutoIt General Help and Support
Agree! And don't forget that books don't support Ctrl+C function, either! -
Share how u remember all those autoIT functions etc....
Noob replied to jimmyjmmy's topic in AutoIt General Help and Support
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. -
I'd like my Button not to steal focus when pressed.
Noob replied to Noob's topic in AutoIt General Help and Support
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. -
Zedna, it works You've help me big! Thanks VERY much! EDIT: PsalyDS, thanks!
-
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.
-
ListView: I need the lines & font 3 times taller
Noob replied to Noob's topic in AutoIt General Help and Support
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! -
How to prevent a Tab to receive a focus when I click on it
Noob replied to Noob's topic in AutoIt GUI Help and Support
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.