Sign in to follow this  
Followers 0
santaryan

MakeIntAtom

6 posts in this topic

Is there any way to use the macro MakeIntAtom in AutoIt?

Share this post


Link to post
Share on other sites



#3 ·  Posted (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 by santaryan

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0