jimanny Posted October 4, 2005 Posted October 4, 2005 I'm looking for a way to have a small icon or image popup on the screen in a specified location from a keystroke or mouse pick. Do you know if AutoIt can do this somehow? I've used AutoIt in the past mostly for automating software installation so I know some but I'm no expert. Currently, I'm putting together some video tutorials and I need something to visually show when a keyboard or mouse button is pressed. The image or icon would popup into the video during recording. Thanks
Valuater Posted October 4, 2005 Posted October 4, 2005 i did it like this...$pos = "" $pos=GUIGetCursorInfo() If $pos[4] = 5 Then GUIctrlSetState($prog_1_pic, $GUI_SHOW) GUIctrlSetState($prog_1_label, $GUI_SHOW) Do $msg1 = GUIGetMsg() If $msg1 = $Prog_1 Then MsgBox(64, " Item Creater"," Item Creater Program will now Run "); call the function $pos1=GUIGetCursorInfo() Sleep(100) Until $pos1[4] <> 5 GUIctrlSetState($prog_1_label, $GUI_HIDE) GUIctrlSetState($prog_1_pic, $GUI_HIDE) EndIf If $pos[4] = 6 Then GUIctrlSetState($prog_2_pic, $GUI_SHOW) GUIctrlSetState($prog_2_label, $GUI_SHOW) Do $msg1 = GUIGetMsg() If $msg1 = $Prog_2 Then MsgBox(64, " That Program"," That Program will now Run "); call the function $pos1=GUIGetCursorInfo() Sleep(100) Until $pos1[4] <> 6 GUIctrlSetState($prog_2_label, $GUI_HIDE) GUIctrlSetState($prog_2_pic, $GUI_HIDE) EndIfi used a picture with words over it
jimanny Posted October 4, 2005 Author Posted October 4, 2005 Thanks a lot for the quick reply! I was just look through the GUI functionality for the first time realizing the answer was probably in there somewhere. I tried to lauch your code, but nothing happened except for a blip of the mouse cursor. I'm going study it to see if I can follow. Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now