santaryan Posted October 19, 2011 Share Posted October 19, 2011 Is there any way to use the macro MakeIntAtom in AutoIt? Link to comment Share on other sites More sharing options...
JohnOne Posted October 19, 2011 Share Posted October 19, 2011 Autoit3 does not have a type "ATOM" as far as I know. Maybe if you put your question into context someone might be able to help. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
santaryan Posted October 19, 2011 Author Share Posted October 19, 2011 (edited) Example: FindWindowEx(Null, Null, MAKEINTATOM(0xC017, TEXT("Start")) converted to AutoIt using a dll call (Which I assume is correct), $NULL = ""; null-terminated string $hWnd = _WinAPI_FindWindow("Shell_TrayWnd", "") $Atom = "" ;MAKEINTATOM(0xC017) - How would I do this in AutoIt? $StartMenu = DllCall("user32.dll", "HWND", "FindWindowEx", "HWND", $hWnd, "HWND", $Null, "str", $Atom, "str", "Start") I'm extremely new to using DllCall and I know very little C. The overall effect that I am trying to achieve is to hide the Windows 7 Start Orb. I have already hidden the taskbar. That's extremely easy. Just put in _WinAPI_ShowWindow($hWnd, @SW_HIDE) in the above code. Edited October 19, 2011 by santaryan Link to comment Share on other sites More sharing options...
JohnOne Posted October 19, 2011 Share Posted October 19, 2011 I don't know much about it myself, is ATOM a struct? perhaps if it is, you could use DllStructCreate. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bogQ Posted October 19, 2011 Share Posted October 19, 2011 (edited) Parameters $sClassName A string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of the $sClassName string and the high-order word must be zero. dllcall func for GlobalAddAtom Edited October 19, 2011 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
rover Posted October 20, 2011 Share Posted October 20, 2011 Instead of using the undocumented hex value, you could get the button by text/class/instance or class/instance. Local $hStartOrb = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", 0, "hwnd", 0, "int_ptr", 0xC017, "ptr", 0);_WinAPI_MakeQWord(0xC017, 0) If @error Then Exit $hStartOrb = $hStartOrb[0] ;or $hStartOrb = ControlGetHandle(_WinAPI_GetDesktopWindow(), "", "[TEXT:Start; CLASS:Button; INSTANCE:1]") How do I cover the taskbar with a fullscreen window? I see fascists... Link to comment Share on other sites More sharing options...
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