
aria
Active Members-
Posts
27 -
Joined
-
Last visited
aria's Achievements

Seeker (1/7)
0
Reputation
-
copy contents of array into clipboard
aria replied to aria's topic in AutoIt General Help and Support
Thanks for the reply, yes I figured that one would have to manually fill the clipboard this way. But it would seem intuitive if there was at least a UDF which would have a single line function call to use If there is a function for things like "read array from file" & vice-versa, this would be on those lines. -
This should seem obvious, but it isnt working. I have an array of 900 lines, and I used, Dim $clipArray $replaced = <<text file>> _FileReadToArray ($replaced, $clipArray) ClipPut ($clipArray) I check the clipboard and it shows - "$clipArray" What am I doing wrong? Or is this not possible? I did search the forums and the help file, but no answers :| Any advice would be appreciated! Thanks
-
Perhaps you are right, this is the APC UPS software (APC Powerchute personal edition). Its a poor shoddy piece of work - one cant even navigate in their application with the keyboard (as in tabs, etc). I am using windows 2000 (yeah, old-timer If you could possibly tell me how to find the icon position using _SysTrayIconPos() , that would be wonderful! Thanks for replying!
-
Nice UDF, I just installed a UPS and its very cumbersome to catch the signal from the UPS software and thus script a graceful exit of running programs. Incredible as it sounds, the stupid UPS software simply shows balloon tips (aka tool tips) in the system tray (the manual claims to display dialog boxes, but there are no dialog boxes) So I am using this udf to check the tooltip message every few minutes. It works nicely, except that if the tooltip message changes - the old message continues to be captured, unless the mouse is physically moved over the icon in the tray :| I can manually write code to move the mouse to update the tooltip, but is there a better way to detect the updated tooltip message? If I must manually move the mouse, can someone please write example code using _SysTrayIconPos() in this UDF. Sorry, I dont know how to create a struct which will hold the (x,y) return value for this function. Thanks!
-
Making a search box that gives query suggestions?
aria replied to Herb191's topic in AutoIt GUI Help and Support
Loved this! I was trying to incorporate a keyboard shortcut but there's some weird behavior that I dont get. After typing something in the edit control, I transfer focus to the first line of the list in the suggestions box by pressing the down arrow key on the keyboard. Focus works ok, but I need to send yet another "down" keystroke, so that next time I press it, then it will go the next item. Otherwise down needs to be physically pressed twice. Why?? Here is what I tried - putting this code inside the main While loop ; this is a global flag for the very first "down", dont put inside while $listIndex == -1 ;the below is inside While If _IsPressed("28", $dll) AND $listIndex == -1 Then _GUICtrlListView_SetItemSelected($LV_1, 0) GUICtrlSetState($LV_1, $GUI_FOCUS) Send ("{DOWN}") ;why??? $listIndex = $listIndex +1 EndIf Would appreciate any help. Thanks! -
Selecting an entry from Windows context menu
aria replied to Rishav's topic in AutoIt General Help and Support
Little confused - how do I get the %1% value (which is the file/folder path) of the selected object ?? (I see similar command strings in the registry) If this is possible, then I would love to write a keyboard shortcut which will copy the selected file/folder path to clipboard! - without having to open the context menu. -
Is it possible to make a keyboard shortcut which will invoke the "copy path to clipboard" for a selected file/folder ? I dont like using the mouse, plus I really dislike going through multiple steps of right-clicking the context menu and then hitting the arrow keys to get to this action. I saw your registry entry - and if only I could get that %1% information from the selected object (which I selected using the arrow keys on the keyboard). then it should be doable. I dont know autoit very well, hence the question. So the course of action - 1. I select a file/folder. 2. I use some keyboard shortcut which will copy the path to clipboard. (thus I do not even need the context menu entry at all) Thanks,
-
cant seem to select "options" on the application window ? So how do I uninstall? I downloaded the latest version and am running on windows 2000.
-
thanks a lot for updating!!!
-
hmm not working --------------------------- AutoIt Error --------------------------- Line 109 (File "...Desktop\test\comics.au3"): func shellexecute($file, $verb, $wait) Error: Badly formatted "Func" statement. --------------------------- OK ---------------------------
-
I dont know if this is open or resolved in a beta. I am using the latest stable version on windows 2000 professional edition. Basically using "false" (with the quotes) as a return type from a logical expression does not work, while "true" works. Please note that both true/false without the quotes work fine. All 4 cases are present below :-) This works --- $x = 1 $y = -2 Switch ($x == $y) Case True MsgBox(0,"","true") Case False MsgBox(0,"","false") EndSwitch ---------------------- This works --- $x = 1 $y = -2 Switch ($x <> $y) Case True MsgBox(0,"","true") Case False MsgBox(0,"","false") EndSwitch ---------------------- this works only for "true", $x = 1 $y = -2 Switch ($x <> $y) Case "True" MsgBox(0,"","true") Case "False" MsgBox(0,"","false") EndSwitch-------------- it does not work for "false" --- $x = 1 $y = -2 Switch ($x == $y) Case "True" MsgBox(0,"","true") Case "False" MsgBox(0,"","false") EndSwitch
-
Nice clock! Here are some suggestions for features - 1. add an option (for each task) to let the task run either daily or only once (which I think is the default right now). 2. definable shortcut key to show/hide it. 3. There should also be an option for the task to self-delete itself or not if it is of the kind "run once only". (currently it deletes itself once its finished) This would be useful if I want to reuse the task but simply change its time in the future. If and when I think of more things, I'll let you know. p.s. Its nice to see it have the system colors instead of some exotic colors. That's the way I like it - no frills and minimal UI :-) Thanks!
-
opening known file extensions with custom applications
aria replied to aria's topic in AutoIt General Help and Support
hahahaha, I dont doubleclick with the mouse, I have it mapped to the keyboard But yes, I use the enter key on the keyboard for opening a file. That's a given I got the explorer part to work, but the desktop is a problem because it does not show as the active window in the window list if I use WIN+D to go to the desktop. The active window is the previous window that was selected before pressing Win+D I'll clean up the stuff I got running & post it in example scripts in a little while. -
Sounds simple, but I did not find a function for this. I need to check the class of a window & I only have the handle to it. How do I do this? WinGetClassList() gives the list of classes inside the window, but I need to get the class of the window itself. I got the active window's handle via - WinGetHandle("") Now I need to find the name of the class! Thanks for reading!
-
opening known file extensions with custom applications
aria replied to aria's topic in AutoIt General Help and Support
>And how do you define what text is?? Is your script going to hard code it, > or are you going to use the PersistentHandler --- never mind, you said no > registry That was just an example. I'll have a config file which defines the mapping of what extensions must open with what applications. Thus what I meant with the scite example is - the config file will have a mapping entry of - "open with scite" mapped to ".txt, .ini, etc" I can then add or delete extensions in this config file & thus use what application I need to, without touching the registry at all. Makes sense? If not, please ask! And thanks for the tip about googling for hooking event handlers - I'll see what I can find : - ) >Just leave Scite open and drag the file to the Scite > window. That seems the easiest solution to me. Good thought, except I hate using the mouse...I'm a keyboard fanatic